How do I do dig TXT +short o-o.myaddr.l.google.com @8.8.4.4 in Python?
(That line resolves the hostname o-o.myaddr.l.google.com through the DNS server 8.8.4.4.)
How do I do dig TXT +short o-o.myaddr.l.google.com @8.8.4.4 in Python?
(That line resolves the hostname o-o.myaddr.l.google.com through the DNS server 8.8.4.4.)
Copyright © 2021 Jogjafile Inc.
You can use
dnspython, which is a DNS toolkit for Python. This can be installed viapip.You can then use
dns.resolver.Resolverclass from this module to query the DNS records.