Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (14 sloc) 0.466 kb
import DNSLG
import sys
resolver = DNSLG.Resolver.Resolver(["", ""], maximum=2)
for name in sys.argv[1:]:
result = resolver.query(name, "ANY")
print result.answer
print "From %s: " % result.nameserver
rrsets = result.answer # There is also additional, authority, etc
for rrset in rrsets:
print "%s/%s ->" % (, rrset.rdtype)
for rr in rrset:
print "\t%s" % rr
print ""
Jump to Line
Something went wrong with that request. Please try again.