A DNS message.
bool
|
__eq__(self,
other)
Two messages are equal if they have the same content in the header,
question, answer, and authority sections. |
source code
|
|
|
__init__(self,
id=None)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
bool
|
__ne__(self,
other)
Are two messages not equal? |
source code
|
|
|
|
|
|
dns.rrset.RRset object
|
find_rrset(self,
section,
name,
rdclass,
rdtype,
covers=0,
deleting=None,
create=False,
force_unique=False)
Find the RRset with the given attributes in the specified section. |
source code
|
|
dns.rrset.RRset object or None
|
get_rrset(self,
section,
name,
rdclass,
rdtype,
covers=0,
deleting=None,
create=False,
force_unique=False)
Get the RRset with the given attributes in the specified section. |
source code
|
|
bool
|
is_response(self,
other)
Is other a response to self? |
source code
|
|
int
|
|
int
|
|
|
|
|
|
|
|
string
|
to_text(self,
origin=None,
relativize=True,
**kw)
Convert the message to text. |
source code
|
|
string
|
to_wire(self,
origin=None,
max_size=0,
**kw)
Return a string containing the message in DNS compressed wire format. |
source code
|
|
|
use_edns(self,
edns=0,
ednsflags=0,
payload=1280,
request_payload=None,
options=None)
Configure EDNS behavior. |
source code
|
|
|
use_tsig(self,
keyring,
keyname=None,
fudge=300,
original_id=None,
tsig_error=0,
other_data='
' ,
algorithm=<DNS name HMAC-MD5.SIG-ALG.REG.INT.>)
When sending, a TSIG signature using the specified keyring and
keyname should be added. |
source code
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|
list of dns.rrset.RRset objects
|
additional
The additional data section.
|
list of dns.rrset.RRset objects
|
answer
The answer section.
|
list of dns.rrset.RRset objects
|
authority
The authority section.
|
int
|
edns
The EDNS level to use.
|
long
|
ednsflags
The EDNS flags
|
bool
|
first
Is this message standalone, or the first of a multi message sequence?
This variable is used when validating TSIG signatures on messages
which are part of a zone transfer.
|
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.
|
dict
|
index
An index of rrsets in the message.
|
string
|
keyalgorithm
The TSIG algorithm to use; defaults to dns.tsig.default_algorithm.
|
dns.name.Name object
|
keyname
The TSIG keyname to use.
|
dict
|
keyring
The TSIG keyring to use.
|
string
|
mac
The TSIG MAC for this message.
|
bool
|
multi
Is this message part of a multi-message sequence? The default is
false.
|
list of dns.edns.Option objects
|
options
The EDNS options
|
dns.name.Name object
|
origin
The origin of the zone in messages which are used for zone transfers
or for DNS dynamic updates.
|
int
|
original_id
TSIG original id; defaults to the message's id
|
string
|
other_data
TSIG other data.
|
int
|
payload
The EDNS payload size.
|
list of dns.rrset.RRset objects
|
question
The question section.
|
string
|
request_mac
The TSIG MAC of the request message associated with this message;
used when validating TSIG signatures.
|
int
|
request_payload
The associated request's EDNS payload size.
|
hmac.HMAC object
|
tsig_ctx
The TSIG signature context associated with this message.
|
int
|
tsig_error
TSIG error code; default is 0.
|
bool
|
xfr
Is the message being used to contain the results of a DNS zone
transfer? The default is False.
|