Which nameservers am I using?

Michael Hipp Michael
Sat May 28 22:09:37 PDT 2005


Net Llama! wrote:
> errr?  they both tell me quite clearly. I use 204.60.203.190 as my 
> 
> [netllama at hal ~]$ nslookup yahoo.com; dig yahoo.com

I must be really confused. Try to follow this:

####### Here's my resolv.conf
# cat resolv.conf
#nameserver 192.168.0.1
nameserver 207.191.50.10
nameserver 206.222.97.82
nameserver 192.168.0.1

####### Try nslookup (no workie!)
# nslookup google.com
Server:         207.191.50.10
Address:        207.191.50.10#53

Non-authoritative answer:
*** Can't find google.com: No answer

####### Try ping just to be sure (no workie either!)
# ping google.com
ping: unknown host google.com

####### Edit resolv.conf to uncomment the first line and try again
# vi resolv.conf
# cat resolv.conf
nameserver 192.168.0.1
nameserver 207.191.50.10
nameserver 206.222.97.82
nameserver 192.168.0.1
# nslookup google.com
Server:         192.168.0.1
Address:        192.168.0.1#53

Non-authoritative answer:
Name:   google.com
Address: 216.239.37.99
Name:   google.com
Address: 216.239.39.99
Name:   google.com
Address: 216.239.57.99

###### Try ping to make sure it really works
# ping google.com
PING google.com (216.239.37.99) 56(84) bytes of data.
64 bytes from 216.239.37.99: icmp_seq=1 ttl=240 time=70.3 ms
64 bytes from 216.239.37.99: icmp_seq=2 ttl=240 time=68.9 ms
64 bytes from 216.239.37.99: icmp_seq=3 ttl=240 time=67.3 ms

What am I missing? What is the point of having multiple nameservers listed if 
it only tries the first one and quits?

Feeling tired, dumb and confused,
Michael


More information about the Linux-users mailing list