simple dig question
Michael Banta
mbanta at bantacomputers.com
Wed Aug 31 01:15:37 UTC 2005
Hello all.
So the format for the dig command is:
dig @<dns server> <hostname> <record type>
If I invoke dig against my dns server to yahoo.com with a record type of
NS, like:
dig @bantacomputers.com yahoo.com NS
it shows an answer section of:
; QUESTION SECTION:
;yahoo.com. IN NS
;; ANSWER SECTION:
yahoo.com. 172707 IN NS ns4.yahoo.com.
yahoo.com. 172707 IN NS ns5.yahoo.com.
yahoo.com. 172707 IN NS ns1.yahoo.com.
yahoo.com. 172707 IN NS ns2.yahoo.com.
yahoo.com. 172707 IN NS ns3.yahoo.com.
But if I run it against yahoo's dns server, like:
dig @ns4.yahoo.com yahoo.com NS, i get an additional answer of:
; ANSWER SECTION:
yahoo.com. 172800 IN NS ns4.yahoo.com.
yahoo.com. 172800 IN NS ns5.yahoo.com.
yahoo.com. 172800 IN NS ns1.yahoo.com.
yahoo.com. 172800 IN NS ns2.yahoo.com.
yahoo.com. 172800 IN NS ns3.yahoo.com.
;; ADDITIONAL SECTION:
ns4.yahoo.com. 172800 IN A 63.250.206.138
ns5.yahoo.com. 172800 IN A 216.109.116.17
ns1.yahoo.com. 172800 IN A 66.218.71.63
ns2.yahoo.com. 172800 IN A 66.163.169.170
ns3.yahoo.com. 172800 IN A 217.12.4.104
So why does the latter also show A records by default? I assume since I
am querying yahoo's server directly.
Thanks
Mike
More information about the bind-users
mailing list