Dnspython is a DNS toolkit for Python. It can be used for queries, zone transfers, dynamic updates, nameserver testing, and many other things.
Dnspython provides both high and low level access to the DNS. The high level classes perform queries for data of a given name, type, and class, and return an answer set. The low level classes allow direct manipulation of DNS zones, messages, names, and records. Almost all RR types are supported.
Python 2.x support ended with the release of 1.16.0. dnspython 2.0.0 and later only support Python 3.6 and later.
dnspython originated at Nominum where it was developed for testing DNS nameservers.
Source Code
Dnspython’s source is hosted at github.
Mailing Lists
New releases are announced on dnspython-announce.
The dnspython user’s forum is dnspython-users.
Legacy
The legacy dnspython web site contains the documentation for version 1.