dnspython. Python DNS toolkit—seems like the kind of thing that should be in the standard library.
Tagged dns, python