Ken Price wrote: > DIG tells you which server returned the results. Look for the SERVER > line, should be third from the bottom. If you want to query specific > nameservers directly, use dig like this: > > dig @ns1.myserver domainname.com > dig @ns2.myserver domainname.com > > etc, etc. > > -Ken > > > > ----- Message from Rudi at SoftDux.com --------- > Date: Mon, 07 Jul 2008 17:25:58 +0200 > From: Rudi Ahlers <Rudi at SoftDux.com> > Reply-To: CentOS mailing list <centos at centos.org> > Subject: [CentOS] how do I find out which nameserver returns a DNS > query? > To: CentOS mailing list <centos at centos.org> > > >> Hi all >> >> If I do a "dig mydomain.co.za" from a Linux server, how do I know which >> DNS nameserver returns the queries? >> >> I seem to have a faulty DNS server, but can't see which one, so I want >> to find out which nameserver (if there's 4 - ns1.myserver, >> ns2.myserver, ns3.myserver & ns4.myserver) returns the queries? >> >> -- >> >> Kind Regards >> Rudi Ahlers >> CEO, SoftDux >> >> > 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