Home | Trees | Index | Help |
|
---|
Package dns :: Module message :: Class Message |
|
object
--+
|
Message
Update
Method Summary | |
---|---|
__init__(self)
| |
bool |
Two messages are equal if they have the same content in the header, question, answer, and authority sections. |
bool |
Are two messages not equal? |
a new object with type S, a subtype of T |
|
__repr__(self)
| |
__str__(self)
| |
dns.node.Node object |
Find the node named namein the specified section. |
Read the next qcountrecords from the wire data and add them to the question section. | |
Read the next countrecords from the wire data and add them to the specified section. | |
bool |
Is other a response to self? |
rcode(self)
| |
string |
Return a string containing the message in DNS compressed wire format. |
Configure EDNS behavior. | |
When sending, a TSIG signature using the specified keyring and keyname should be added. |
Instance Variable Summary | |
---|---|
list of dns.node.Node objects | additional
- The additional data section. |
list of dns.node.Node objects | answer
- The answer section. |
list of dns.node.Node objects | authority
- The authority section. |
int | current
- When building a message object from wire format, this variable
contains the offset from the beginning of wire of the next octet to be
read. |
int | edns
- The EDNS level to use. |
int | ednsflags
- The EDNS flags |
int | flags
- The DNS flags of the message. |
int | fudge
- TSIG time fudge; default is 300 seconds. |
bool | had_tsig
- Did the message decoded from wire format have a TSIG signature? |
int | id
- The query id; the default is a randomly chosen id. |
dns.name.Name object | keyname
- The TSIG keyname to use. |
dict | keyring
- The TSIG keyring to use. |
dns.name.Name object | last_name
- The most recently read name when building a message object from text
format. |
string | mac
- The TSIG MAC for this message. |
bool | multi
- Is this message part of a multi-message sequence? The default is
false. |
dns.name.Name object | origin
- The origin of the zone in messages which are used for zone transfers
or for DNS dynamic updates. |
string | other_data
- TSIG other data. |
int | payload
- The EDNS payload size. |
list of dns.node.Node objects | question
- The question section. |
string | request_mac
- The TSIG MAC of the request message associated with this message; used
when validating TSIG signatures. |
hmac.HMAC object | tsig_ctx
- The TSIG signature context associated with this message. |
int | tsig_error
- TSIG error code; default is 0. |
string | wire
- When building a message object from wire format, this variable
contains the wire-format message. |
bool | xfr
- Is the message being used to contain the results of a DNS zone
transfer? The default is False. |
int | zone_rdclass
- The class of the zone in messages which are used for zone transfers or
for DNS dynamic updates. |
Method Details |
---|
__eq__(self,
other)
Two messages are equal if they have the same content in the header,
question, answer, and authority sections.
|
__ne__(self, other)Are two messages not equal?
|
__new__(S, ...)
|
find_node(self, section, name, create=False, force_unique=False)Find the node named name in the specified section.
|
get_question(self, qcount)Read the next qcount records from the wire data and add them to the question section.
|
get_section(self, section, count)Read the next count records from the wire data and add them to the specified section.
|
is_response(self, other)Is other a response to self?
|
to_wire(self, origin=None)Return a string containing the message in DNS compressed wire format.
|
use_edns(self, edns, ednsflags, payload)Configure EDNS behavior.
|
use_tsig(self, keyring, keyname=None)When sending, a TSIG signature using the specified keyring and keyname should be added.
|
Instance Variable Details |
---|
additionalThe additional data section.
|
answerThe answer section.
|
authorityThe authority section.
|
currentWhen building a message object from wire format, this variable contains the offset from the beginning of wire of the next octet to be read.
|
ednsThe EDNS level to use. The default is -1, no Edns.
|
ednsflagsThe EDNS flags
|
flagsThe DNS flags of the message. @see: RFC 1035 for an explanation of these flags.
|
fudgeTSIG time fudge; default is 300 seconds.
|
had_tsigDid the message decoded from wire format have a TSIG signature?
|
idThe query id; the default is a randomly chosen id.
|
keynameThe TSIG keyname to use. The default is None.
|
keyringThe TSIG keyring to use. The default is None.
|
last_nameThe most recently read name when building a message object from text format.
|
macThe TSIG MAC for this message.
|
multiIs this message part of a multi-message sequence? The default is false. This variable is used when validating TSIG signatures on messages which are part of a zone transfer.
|
originThe origin of the zone in messages which are used for zone transfers or for DNS dynamic updates. The default is None.
|
other_dataTSIG other data.
|
payloadThe EDNS payload size. The default is 0.
|
questionThe question section.
|
request_macThe TSIG MAC of the request message associated with this message; used when validating TSIG signatures. @see: RFC 2845 for more information on TSIG fields.
|
tsig_ctxThe TSIG signature context associated with this message. The default is None.
|
tsig_errorTSIG error code; default is 0.
|
wireWhen building a message object from wire format, this variable contains the wire-format message.
|
xfrIs the message being used to contain the results of a DNS zone transfer? The default is False.
|
zone_rdclassThe class of the zone in messages which are used for zone transfers or for DNS dynamic updates.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 1.1 on Mon Jun 30 15:54:08 2003 | http://epydoc.sf.net |