Re: how do I find out which nameserver returns a DNS query?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



This line ...

;; SERVER: 4.2.2.1#53(4.2.2.1)

... tells you the DNS server which returned the result, which in this case, is more than likely a caching (recursive) DNS server. If verbose enough logging is enabled on that caching server, it should tell you which primary DNS server returned a particular query result. The "@ns1.myserver" feature in DIG allows you to do that test directly from your workstation to the primary DNS server(s). Is there any particular reason this won't work for you? Perhaps if you explained your problem in more detail, someone on this list could offer alternative methods of troubleshooting.

Regards,
Ken




----- Message from Rudi@xxxxxxxxxxx ---------
    Date: Mon, 07 Jul 2008 17:38:22 +0200
    From: Rudi Ahlers <Rudi@xxxxxxxxxxx>
Reply-To: CentOS mailing list <centos@xxxxxxxxxx>
 Subject: Re:  how do I find out which nameserver returns a DNS query?
      To: CentOS mailing list <centos@xxxxxxxxxx>





Hi Ken

I thought dig would return it, but it doesn't.

Look at this:


dig hfserver1.hostfactor.co.za

; <<>> DiG 9.3.3rc2 <<>> hfserver1.hostfactor.co.za
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17016
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;hfserver1.hostfactor.co.za.    IN      A

;; ANSWER SECTION:
hfserver1.hostfactor.co.za. 6000 IN     A       196.34.136.50

;; Query time: 287 msec
;; SERVER: 4.2.2.1#53(4.2.2.1)
;; WHEN: Mon Jul  7 17:36:45 2008
;; MSG SIZE  rcvd: 60



I know I can dig @server - but I want to know which is the active
server that returns a result at the moment

--

Kind Regards
Rudi Ahlers
CEO, SoftDux

Web:   http://www.SoftDux.com
Check out my technical blog, http://blog.softdux.com for Linux or other
technical stuff, or visit http://www.WebHostingTalk.co.za for Web
Hosting stuff

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


----- End message from Rudi@xxxxxxxxxxx -----




_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux