Which nameservers am I using?

Net Llama! netllama
Sat May 28 20:25:10 PDT 2005


On 05/28/2005 05:13 PM, Collins Richey wrote:
> I'd be curious to know the answer, too. nslookup or dig don't seem to
> tell me the answer.

errr?  they both tell me quite clearly. I use 204.60.203.190 as my 
primary NS:
#########################
[netllama at hal ~]$ nslookup yahoo.com; dig yahoo.com
Server:         204.60.203.190
Address:        204.60.203.190#53

Non-authoritative answer:
Name:   yahoo.com
Address: 216.109.112.135
Name:   yahoo.com
Address: 66.94.234.13


; <<>> DiG 9.2.4 <<>> yahoo.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44577
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 5, ADDITIONAL: 5

;; QUESTION SECTION:
;yahoo.com.                     IN      A

;; ANSWER SECTION:
yahoo.com.              9       IN      A       216.109.112.135
yahoo.com.              9       IN      A       66.94.234.13

;; AUTHORITY SECTION:
yahoo.com.              40063   IN      NS      ns1.yahoo.com.
yahoo.com.              40063   IN      NS      ns2.yahoo.com.
yahoo.com.              40063   IN      NS      ns3.yahoo.com.
yahoo.com.              40063   IN      NS      ns4.yahoo.com.
yahoo.com.              40063   IN      NS      ns5.yahoo.com.

;; ADDITIONAL SECTION:
ns1.yahoo.com.          65446   IN      A       66.218.71.63
ns2.yahoo.com.          68171   IN      A       66.163.169.170
ns3.yahoo.com.          69197   IN      A       217.12.4.104
ns4.yahoo.com.          68245   IN      A       63.250.206.138
ns5.yahoo.com.          71618   IN      A       216.109.116.17

;; Query time: 131 msec
;; SERVER: 204.60.203.190#53(204.60.203.190)
;; WHEN: Sat May 28 18:23:11 2005
;; MSG SIZE  rcvd: 229
#######################################

Look for the SERVER entry in both the nslookup and dig output above.

> 
> I know that /etc/resolv.conf is overwritten by dhcp if you're not
> using a fixed ip address. In my case it points a destination and ip
> address on my router.

Is your router a nameserver?


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
L. Friedman                       	       netllama at linux-sxs.org
LlamaLand		 		http://netllama.linux-sxs.org

  18:20:01 up 47 days,  4:35,  1 user,  load average: 0.60, 0.56, 0.73


More information about the Linux-users mailing list