dig lists the server is uses at the end of a response.  For example:

$ dig example.com

; <<>> DiG 9.9.5-3ubuntu0.10-Ubuntu <<>> example.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57223
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;example.com.            IN    A

;; ANSWER SECTION:
example.com.        37457    IN    A    93.184.216.34

;; Query time: 4 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Sat Dec 31 00:30:07 EST 2016
;; MSG SIZE  rcvd: 56

Notice that the DNS server IP is 8.8.8.8.  On linux, this is specified
in the /etc/resolve.conf file:

$ grep nameserver /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4

A google for dig, resolv.conf, or DNS for more details.  dig is especially rich.

Good luck and let us know how things go.

Regards,
- Robert

On Fri, Dec 30, 2016 at 3:08 PM, rvaedex23 <[email protected]> wrote:
>
> how to check a server if its pointing to a DNS server.
>
> If I use dig or nslookup how would I know if  DNS is in place.
>
> --
> --
> You received this message because you are subscribed to the Linux Users
> Group.
> To post a message, send email to [email protected]
> To unsubscribe, send email to [email protected]
> For more options, visit our group at
> http://groups.google.com/group/linuxusersgroup
> References can be found at: http://goo.gl/anqri
> Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules)
> ---
> You received this message because you are subscribed to the Google Groups
> "Linux Users Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
-- 
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup
References can be found at: http://goo.gl/anqri
Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules)
--- 
You received this message because you are subscribed to the Google Groups 
"Linux Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to