Home | Trees | Index | Help |
|
---|
Package DNS :: Module message |
|
Classes | |
---|---|
Message |
A DNS message. |
Exceptions | |
---|---|
BadEDNS |
Raised if an OPT record occurs somewhere other than the start of the additional data section. |
BadTSIG |
Raised if a TSIG record occurs somewhere other than the end of the additional data section. |
ShortHeader |
Raised if the DNS packet passed to from_wire() is too short. |
TrailingJunk |
Raised if the DNS packet passed to from_wire() has extra junk at the end of it. |
UnknownHeaderField |
Raised if a header field name is not recognized when converting from text into a message. |
Function Summary | |
---|---|
DNS.message.Message object |
Read the next text format message from the specified file. |
DNS.message.Message object |
Convert the text format message into a message object. |
DNS.message.Message object |
Convert a DNS wire format message into a message object. |
DNS.message.Message object |
Make a query message. |
Process one line from the text format header section. | |
Process one line from the text format question section. | |
Process one line from the text format answer, authority, or additional data sections. |
Function Details |
---|
from_file(f)Read the next text format message from the specified file.
|
from_text(text)Convert the text format message into a message object.
|
from_wire(wire, keyring=None, request_mac='', xfr=False, origin=None, tsig_ctx=None, multi=False)Convert a DNS wire format message into a message object.
|
make_query(qname, rdtype, rdclass=1)Make a query message. The query name, type, and class may all be specified either as objects of the appropriate type, or as strings. The query will have a randomly choosen query id, and its DNS flags will be set to DNS.flags.RD.
|
_header_line(m, tok, section)Process one line from the text format header section. |
_question_line(m, tok, section)Process one line from the text format question section. |
_rr_line(m, tok, section)Process one line from the text format answer, authority, or additional data sections. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 1.1 on Tue Jun 17 03:55:13 2003 | http://epydoc.sf.net |