/usr/lib/rads/venv/lib/python3.13/site-packages/dns/__pycache__
Edit: /usr/lib/rads/venv/lib/python3.13/site-packages/dns/__pycache__/renderer.cpython-313.pyc (15945B)
j+ S r SSKrSSKrSSKrSSKrSSKrSSKrSSKrSr Sr
SrSr\R S 5 r " S S5 rg) z*Help for building DNS wire format messages N c # # U R SU- 5 U R 5 nS v U R 5 nX2-
nUS: aI U R X!-
5 U R UR US5 5 U R U5 g g ! [ a [
R R ef = f! U R U5 f = f7f)N r big)writetellseekto_bytes
OverflowErrordns exception FormError)output
length_lengthstartendlengths ?/usr/lib/rads/venv/lib/python3.13/site-packages/dns/renderer.pyprefixed_lengthr # s
LL-'(KKME
++-C
[F
z KK-.
.V__]EBC
KK
!
.mm---
.
KKs0 AC
B7 !B <C
%B44B7 7C
C
c ` \ rS rSrSrSS jrS rS r\R S 5 r
\R S 5 r\R R 4S jrS
rS rSS jrSS
jr\R( R* 4S jr\R( R* 4S jrS rS rS rS\SS4S jrSS jrSrg)Renderer5 a& Helper class for building DNS wire-format messages.
Most applications can use the higher-level L{dns.message.Message}
class and its to_wire() method to generate wire-format messages.
This class is for those applications which need finer control
over the generation of messages.
Typical use::
r = dns.renderer.Renderer(id=1, flags=0x80, max_size=512)
r.add_question(qname, qtype, qclass)
r.add_rrset(dns.renderer.ANSWER, rrset_1)
r.add_rrset(dns.renderer.ANSWER, rrset_2)
r.add_rrset(dns.renderer.AUTHORITY, ns_rrset)
r.add_rrset(dns.renderer.ADDITIONAL, ad_rrset_1)
r.add_rrset(dns.renderer.ADDITIONAL, ad_rrset_2)
r.add_edns(0, 0, 4096)
r.write_header()
r.add_tsig(keyname, secret, 300, 1, 0, '', request_mac)
wire = r.get_wire()
If padding is going to be used, then the OPT record MUST be
written after everything else in the additional section except for
the TSIG (if any).
output, an io.BytesIO, where rendering is written
id: the message id
flags: the message flags
max_size: the maximum size of the message
origin: the origin to use when rendering relative names
compress: the compression table
section: an int, the section currently being rendered
counts: list of the number of RRs in each section
mac: the MAC of the rendered message (if TSIG was used)
Nc > [ R " 5 U l Uc [ R " SS5 U l OXl X l X0l X@l 0 U l [ U l / SQU l U R R S5 SU l SU l SU l g)zInitialize a new renderer.Nr )r r r r s F)ioBytesIOr randomrandintidflagsmax_sizeorigincompressQUESTIONsectioncountsr macreserved
was_padded)selfr" r# r$ r% s r __init__Renderer.__init__b sx jjl
:nnQ.DGG
",'
c U R R U5 U R R 5 / nU R R 5 H u p4XA: d M UR U5 M U H nU R U M g)zTruncate the output buffer at offset *where*, and remove any
compression table entries that pointed beyond the truncation
point.
N)r r truncater&