dnspython

ModuleNotFoundError: No module named 'dnspython'

ModuleNotFoundError: No module named 'dnspython' Question: I am trying to import the module dnspython in a python 3.6 script using import dnspython. pip3 freeze shows that the package is installed but I keep getting the error ModuleNotFoundError: No module named ‘dnspython’ I have tried: pip3 install dnspython uninstalling and reinstalling with pip3 pip3 install git+https://github.com/rthalley/dnspython …

Total answers: 3

Python DNS resolver and original TTL

Python DNS resolver and original TTL Question: I need to get original TTL for dns record on each query. DNS resolver shows original ttl only at first query. It shows time to reset cache on each next query. >>> answer = dns.resolver.query(‘www.stackoverflow.com’) >>> print answer.rrset.ttl 300 >>> answer = dns.resolver.query(‘www.stackoverflow.com’) >>> print answer.rrset.ttl 292 How …

Total answers: 2