DIG NS output order

Stephane Bortzmeyer bortzmeyer at nic.fr
Mon Mar 3 07:55:15 UTC 2008

On Fri, Feb 29, 2008 at 12:18:01PM -0800,
 ultradennis at comcast.net <ultradennis at comcast.net> wrote 
 a message of 9 lines which said:

> u do a dig @ any ww.abc.com 

Impossible. Invalid syntax.

> it comes back with 3 name servers can you assume the first NS record
> is where the answer came from.


> If not, is there a option in DIG when do a query to list what server
> it queried to get the authoritative answer?

dig +trace may be what you want. Example:

% dig +trace AAAA www.ietf.org
www.ietf.org.           1800    IN      AAAA    2001:1890:1112:1::20
ietf.org.               7200    IN      NS      ns1.ams1.afilias-nst.info.
ietf.org.               7200    IN      NS      ns1.sea1.afilias-nst.info.
ietf.org.               7200    IN      NS      ns0.amsl.com.
;; Received 231 bytes from in 159 ms

Otherwise, use tcpdump on the wire :-)

More information about the bind-users mailing list