Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get DNS records for a domain in python?

Tags:

python

dns

How do I get the DNS records for a zone in python? I'm looking for data similar to the output of dig.

like image 514
Dave Forgac Avatar asked Jul 21 '09 23:07

Dave Forgac


1 Answers

Try the dnspython library:

  • http://www.dnspython.org/

You can see some examples here:

  • https://www.dnspython.org/examples/
like image 133
ars Avatar answered Sep 16 '22 14:09

ars