(I guess there are many other ways to do this, even more elegant)
import dns.resolver
domain='lacnic.net'
domain = dns.name.from_text(domain)
request = dns.message.make_query(domain, dns.rdatatype.ANY)
response = dns.query.tcp(request,'8.8.8.8')
#print(response)
for item in str(response).splitlines( ):
if 'RRSIG' in item: print (item)
domain='lacnic.net'
domain = dns.name.from_text(domain)
request = dns.message.make_query(domain, dns.rdatatype.ANY)
response = dns.query.tcp(request,'8.8.8.8')
#print(response)
for item in str(response).splitlines( ):
if 'RRSIG' in item: print (item)
No comments:
Post a Comment