On Apr 13, 2012, at 4:37 AM, Pankaj Rawat wrote:
> Hi all ,
> I am currently using dnspython to query DNS.
> I am not able to figure out how to extract ttl from DNS using DNSPython
> Is there is any way to achieve it?
Use the TTL field of the rrset or rdataset object, e.g.:
import dns.resolver
answer = dns.resolver.query('www.dnspython.org')
print answer.rrset
print 'The TTL is', answer.rrset.ttl
_______________________________________________
dnspython-dev mailing list
[email protected]
http://howl.play-bow.org/mailman/listinfo/dnspython-dev