Hi,

I'm trying to query the root DNS servers for NS records on domains
etc.

When doing the following:

dig com. ns @a.root-servers.net
dig google.com. ns @a.root-servers.net

There are no answer sections in the message but rather it provides
a response with additional records. When querying '.' itself an
answer section appears with the corresponding NS records.

The following snippet displays the problem I'm having:

import dns.resolver
root_res = dns.resolver.Resolver(configure=False)
root_res = ["192.228.79.201"] # B.ROOT-SERVERS.NET
a = root_res.query('www.google.com.', 'ns')

When executing these statements the dns.resolver.NoAnswer exception is
raised. However there should be an additional section and I would like
to know how I can get the answer/response object so I can retrieve this
information.

Basically for my end result I'm trying to gatjher information using dnspython
in the fashion of dig +trace www.google.com so I can debug zones and perform
sanity checks. Basically a small script that maks it easy to find problems
domains at the registrar/parent, NS, and zone level.

Any assistance would be appreciated.

Thanks,
Naveen Nathan

_______________________________________________
dnspython-users mailing list
[email protected]
http://woof.play-bow.org/mailman/listinfo/dnspython-users

Reply via email to