DNS Messages

Objects of the dns.message.Message class and its subclasses represent a single DNS message, as defined by RFC 1035 and its many updates and extensions.

The module provides tools for constructing and manipulating messages. TSIG signatures and EDNS are also supported. Messages can be dumped to a textual form, and also read from that form.