Helper class for building DNS wire-format messages.
|
__init__(self,
id=None,
flags=0,
max_size=65535,
origin=None)
Initialize a new renderer. |
source code
|
|
|
_rollback(self,
where)
Truncate the output buffer at offset where, and remove any
compression table entries that pointed beyond the truncation point. |
source code
|
|
|
|
|
|
|
|
|
add_rdataset(self,
section,
name,
rdataset,
**kw)
Add the rdataset to the specified section, using the specified name
as the owner name. |
source code
|
|
|
add_edns(self,
edns,
ednsflags,
payload,
options=None)
Add an EDNS OPT record to the message. |
source code
|
|
|
add_tsig(self,
keyname,
secret,
fudge,
id,
tsig_error,
other_data,
request_mac,
algorithm=<DNS name HMAC-MD5.SIG-ALG.REG.INT.>)
Add a TSIG signature to the message. |
source code
|
|
|
|
string
|
get_wire(self)
Return the wire format message. |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|
dict
|
compress
the compression table
|
int list of length 4
|
counts
list of the number of RRs in each section
|
int
|
flags
the message flags
|
int
|
id
the message id
|
string
|
mac
the MAC of the rendered message (if TSIG was used)
|
int
|
max_size
the maximum size of the message
|
dns.name.Name object
|
origin
the origin to use when rendering relative names
|
BytesIO object
|
output
where rendering is written
|
int (dns.renderer.QUESTION, dns.renderer.ANSWER,
dns.renderer.AUTHORITY, or dns.renderer.ADDITIONAL)
|
section
the section currently being rendered
|