Files
pyGoEdge-UserPanel/.venv/Lib/site-packages/dns/__pycache__/rrset.cpython-312.pyc

157 lines
12 KiB
Plaintext
Raw Normal View History

2025-11-18 03:36:49 +08:00
<EFBFBD>
g<> i<>#<00><00>|<00>dZddlmZmZmZmZddlZddlZddl Zddl
Zddl Zddl ZGd<04>dejj<00>Z ddej j"ezdedej(j*ezd ej,j.ezd
eed ej j0dzd ej j"dzd edej j"dzdefd<10>Zdej j"ezdedej(j*ezd ej,j.ezd
edef d<11>Z ddej j"ezdedeej8j:d ej j0dzdef
d<13>Zdej j"ezdededefd<14>Zy)z)DNS RRsets (an RRset is a named rdataset)<29>)<04>Any<6E>
Collection<EFBFBD>Dict<63>castNc <00><><00><00>eZdZdZddgZej jdfdejjdejjdej jdej jdejjdzf
<EFBFBD>fd<08> Z <0A>fd <09>Zd
<EFBFBD>Zd <0B>Z<10>fd <0C>Zd ededef<06>fd<10> Z ddejjdejjdej jdej jdejjdzdef <0C>fd<11> Z ddejjdzdedeeefdef<08>fd<15> Z ddedejj2dzdejjdzdeeefdef
<EFBFBD>fd<18> Zdej8j:fd<19>Z<1E>xZS)<1D>RRseta6A DNS RRset (named rdataset).
RRset inherits from Rdataset, and RRsets can be treated as
Rdatasets in most cases. There are, however, a few notable
exceptions. RRsets have different to_wire() and to_text() method
arguments, reflecting the fact that RRsets always have an owner
name.
<20>name<6D>deletingN<67>rdclass<73>rdtype<70>coversc<00>D<00><01>t<00>|<00>|||<04>||_||_y)zCreate a new RRset.N)<04>super<65>__init__r r
<00><07>selfr r r r r
<00> __class__s <20><>8E:\Project\pygoedge\.venv\Lib\site-packages\dns/rrset.pyrzRRset.__init__*s$<00><><00> <0E><07><18><17>&<26>&<26>1<><18><04> <09> <20><04> <0A>c<00><><00><01>ttt<00>|<00> <00><00>}|j|_|j
|_|S<00>N)rrr<00>_cloner r
)r<00>objrs <20>rrz RRset._clone8s1<00><><00><12>5<EFBFBD>%<25>'<27>.<2E>*<2A>+<2B><03><17>9<EFBFBD>9<EFBFBD><03><08><1B>}<7D>}<7D><03> <0C><12>
rc<00><00>|jdk(rd}n/dtjj|j<00>zdz}|j<00>-dtj
j|j<00>z}nd}dt |j<00>zdztj
j|j<00>zdztjj|j<00>z|z|zdz|j<00>zd zS)
Nr<00><00>(<28>)z delete=z<DNS <20> z RRset: <20>>) r <00>dns<6E> rdatatype<70>to_textr
<00>
rdataclass<EFBFBD>strr r r <00> _rdata_repr)r<00>ctext<78>dtexts r<00>__repr__zRRset.__repr__>s<00><00> <0F>;<3B>;<3B>!<21> <1B><16>E<EFBFBD><17>#<23>-<2D>-<2D>/<2F>/<2F><04> <0B> <0B><<3C><<3C>s<EFBFBD>B<>E<EFBFBD> <0F>=<3D>=<3D> $<24><1E><13><1E><1E>!7<>!7<><04> <0A> <0A>!F<>F<>E<EFBFBD><16>E<EFBFBD> <13><11>$<24>)<29>)<29>n<EFBFBD> <1D><11> <12><12>n<EFBFBD>n<EFBFBD>$<24>$<24>T<EFBFBD>\<5C>\<5C>2<> 3<><12>  <12>
<12>m<EFBFBD>m<EFBFBD>#<23>#<23>D<EFBFBD>K<EFBFBD>K<EFBFBD>0<>  1<> <14>  <14><14> <14><19> <19><13><1E><1E> <20> !<21><12>
<12>
rc<00>"<00>|j<00>Sr)r"<00>rs r<00>__str__z RRset.__str__Us<00><00><13>|<7C>|<7C>~<7E>rc<00><><00><01>t|t<00>r|j|jk7r&yt|tjj
<00>syt <00>|<00>|<01>S)NF)<08>
isinstancerr r <00>rdataset<65>Rdatasetr<00>__eq__)r<00>otherrs <20>rr0z RRset.__eq__XsF<00><><00> <15>e<EFBFBD>U<EFBFBD> #<23><13>y<EFBFBD>y<EFBFBD>E<EFBFBD>J<EFBFBD>J<EFBFBD>&<26><1C><1B>E<EFBFBD>3<EFBFBD><<3C><<3C>#8<>#8<>9<><18><14>w<EFBFBD>~<7E>e<EFBFBD>$<24>$r<00>args<67>kwargs<67>returnc<00><><00><01>t|dtjj<00>r|j|i|<02><01>St <00>|<00>|i|<02><01>S)a<>Does this rrset match the specified attributes?
Behaves as :py:func:`full_match()` if the first argument is a
``dns.name.Name``, and as :py:func:`dns.rdataset.Rdataset.match()`
otherwise.
(This behavior fixes a design mistake where the signature of this
method became incompatible with that of its superclass. The fix
makes RRsets matchable as Rdatasets while preserving backwards
compatibility.)
r)r-r r <00>Name<6D>
full_matchr<00>match)rr2r3rs <20>rr8z RRset.match`sE<00><><00> <16>d<EFBFBD>1<EFBFBD>g<EFBFBD>s<EFBFBD>x<EFBFBD>x<EFBFBD>}<7D>}<7D> -<2D>"<22>4<EFBFBD>?<3F>?<3F>D<EFBFBD>3<>F<EFBFBD>3<> 3<><18>7<EFBFBD>=<3D>$<24>1<>&<26>1<> 1rc<00>h<00><01>t<00>|<00>|||<04>sy|j|k7s|j|k7ryy)ztReturns ``True`` if this rrset matches the specified name, class,
type, covers, and deletion state.
FT)rr8r r
rs <20>rr7zRRset.full_matchqs5<00><><00><15>w<EFBFBD>}<7D>W<EFBFBD>f<EFBFBD>f<EFBFBD>5<><18> <0F>9<EFBFBD>9<EFBFBD><04> <1C><04> <0A> <0A><18> 9<><18>r<00>origin<69>
relativize<EFBFBD>kwc <00>R<00><01>t<00>|<00>|j|||jfi|<03><01>S)a<>Convert the RRset into DNS zone file format.
See ``dns.name.Name.choose_relativity`` for more information
on how *origin* and *relativize* determine the way names
are emitted.
Any additional keyword arguments are passed on to the rdata
``to_text()`` method.
*origin*, a ``dns.name.Name`` or ``None``, the origin for relative
names.
*relativize*, a ``bool``. If ``True``, names will be relativized
to *origin*.
)rr"r r
)rr:r;r<rs <20>rr"z RRset.to_text<78>s/<00><><00>,<15>w<EFBFBD><EFBFBD> <10>I<EFBFBD>I<EFBFBD>v<EFBFBD>z<EFBFBD>4<EFBFBD>=<3D>=<3D>
<EFBFBD><><3E>
<EFBFBD>
r<00>file<6C>compressc <00>T<00><01>t<00>|<00>|j||||jfi|<04><01>S)z<>Convert the RRset to wire format.
All keyword arguments are passed to ``dns.rdataset.to_wire()``; see
that function for details.
Returns an ``int``, the number of records emitted.
)r<00>to_wirer r
)rr>r?r:r<rs <20>rrAz RRset.to_wire<72>s1<00><><00><15>w<EFBFBD><EFBFBD> <10>I<EFBFBD>I<EFBFBD>t<EFBFBD>X<EFBFBD>v<EFBFBD>t<EFBFBD>}<7D>}<7D>
<EFBFBD>@B<>
<EFBFBD>
rc<00>h<00>tjj|jt |<00><00>S)zYConvert an RRset into an Rdataset.
Returns a ``dns.rdataset.Rdataset``.
)r r.<00>from_rdata_list<73>ttl<74>listr*s r<00> to_rdatasetzRRset.to_rdataset<65>s#<00><00>
<13>|<7C>|<7C>+<2B>+<2B>D<EFBFBD>H<EFBFBD>H<EFBFBD>d<EFBFBD>4<EFBFBD>j<EFBFBD>A<>Arr)NT)NN) <20>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__<5F> __slots__r r!<00>NONEr r6r#<00>
RdataClass<EFBFBD> RdataTyperrr(r+r0r<00>boolr8r7rr$r"<00> CompressType<70>intrAr.r/rF<00> __classcell__)rs@rrrs<><00><><00><08><18><1A>$<24>I<EFBFBD>+.<2E>-<2D>-<2D>*<<3C>*<<3C>59<35> !<21><11>h<EFBFBD>h<EFBFBD>m<EFBFBD>m<EFBFBD> !<21><15><1E><1E>*<2A>*<2A> !<21><14> <0A> <0A>'<27>'<27> !<21>
<14> <0A> <0A>'<27>'<27> !<21> <16>.<2E>.<2E>+<2B>+<2B>d<EFBFBD>2<> !<21><13> 
<EFBFBD>.<1E>%<25>2<>3<EFBFBD>2<>#<23>2<>$<24>2<>.6:<3A> <14><11>h<EFBFBD>h<EFBFBD>m<EFBFBD>m<EFBFBD><14><15><1E><1E>*<2A>*<2A><14><14> <0A> <0A>'<27>'<27> <14>
<14> <0A> <0A>'<27>'<27> <14> <16>.<2E>.<2E>+<2B>+<2B>d<EFBFBD>2<> <14>
<0E><14>*(,<2C><1F>
<EFBFBD><13><08><08> <0A> <0A><04>$<24>
<EFBFBD><19>
<EFBFBD><13>3<EFBFBD><03>8<EFBFBD>n<EFBFBD> 
<EFBFBD>
<0A> 
<EFBFBD>:26<32>'+<2B> 
<EFBFBD><11>
<EFBFBD><16>(<28>(<28>'<27>'<27>$<24>.<2E>
<EFBFBD><14><08><08> <0A> <0A><04>$<24> 
<EFBFBD>
<13>3<EFBFBD><03>8<EFBFBD>n<EFBFBD> 
<EFBFBD>
<0A> 
<EFBFBD>*B<01>S<EFBFBD>\<5C>\<5C>2<>2<>Brrr rDr r <00> text_rdatas<61>
idna_codecr:r;<00> relativize_tor4c
<00><><00>t|t<00>r"tjj |d|<05><02>}tj
j j|<02>}tjjj|<03>}t|||<03>} | j|<01>|D]L}
tjj | j| j|
||||<05>} | j| <0B><00>N| S)ayCreate an RRset with the specified name, TTL, class, and type, and with
the specified list of rdatas in text format.
*idna_codec*, a ``dns.name.IDNACodec``, specifies the IDNA
encoder/decoder to use; if ``None``, the default IDNA 2003
encoder/decoder is used.
*origin*, a ``dns.name.Name`` (or ``None``), the
origin to use for relative names.
*relativize*, a ``bool``. If true, name will be relativized.
*relativize_to*, a ``dns.name.Name`` (or ``None``), the origin to use
when relativizing names. If not set, the *origin* value will be used.
Returns a ``dns.rrset.RRset`` object.
N<>rT)r-r$r r <00> from_textr#rM<00>maker!rNr<00>
update_ttl<EFBFBD>rdatar r <00>add) r rDr r rSrTr:r;rU<00>r<>t<>rds r<00>from_text_listr`<00>s<><00><00>:<12>$<24><03><1C><12>x<EFBFBD>x<EFBFBD>!<21>!<21>$<24><04><1A>!<21>D<><04><11>n<EFBFBD>n<EFBFBD>'<27>'<27>,<2C>,<2C>W<EFBFBD>5<>G<EFBFBD> <10>]<5D>]<5D> $<24> $<24> )<29> )<29>&<26> 1<>F<EFBFBD> <0A>d<EFBFBD>G<EFBFBD>V<EFBFBD>$<24>A<EFBFBD><05>L<EFBFBD>L<EFBFBD><13><15> <18><01> <10>Y<EFBFBD>Y<EFBFBD> <20> <20> <0A>I<EFBFBD>I<EFBFBD>q<EFBFBD>x<EFBFBD>x<EFBFBD><11>F<EFBFBD>J<EFBFBD> <0A>z<EFBFBD>
<EFBFBD><02>
<EFBFBD><05><05>b<EFBFBD> <09> <19>
<0A>Hrc
<00>J<00>t||||ttt|<04><00>S)z<>Create an RRset with the specified name, TTL, class, and type and with
the specified rdatas in text format.
Returns a ``dns.rrset.RRset`` object.
)r`rrr$)r rDr r rSs rrXrX<00>s'<00><00> <1A> <0C>c<EFBFBD>7<EFBFBD>F<EFBFBD>D<EFBFBD><1A>C<EFBFBD><1F>+<2B>$F<> <06>r<00>rdatasc<00>@<00>t|t<00>r"tjj |d|<03><02>}t |<02>dk(r t d<04><00>d}|D]G}|<04>2t||j|j<00>}|j|<01>|j|<05><00>I|<04>J<00>|S)a/Create an RRset with the specified name and TTL, and with
the specified list of rdata objects.
*idna_codec*, a ``dns.name.IDNACodec``, specifies the IDNA
encoder/decoder to use; if ``None``, the default IDNA 2003
encoder/decoder is used.
Returns a ``dns.rrset.RRset`` object.
NrWrzrdata list must not be empty) r-r$r r rX<00>len<65>
ValueErrorrr r rZr\)r rDrbrTr]r_s rrCrC<00>s<><00><00>"<12>$<24><03><1C><12>x<EFBFBD>x<EFBFBD>!<21>!<21>$<24><04><1A>!<21>D<><04>
<EFBFBD>6<EFBFBD>{<7B>a<EFBFBD><17><18>7<>8<>8<> <0C>A<EFBFBD><14><02> <0C>9<EFBFBD><15>d<EFBFBD>B<EFBFBD>J<EFBFBD>J<EFBFBD><02> <09> <09>2<>A<EFBFBD> <0A>L<EFBFBD>L<EFBFBD><13> <1D> <09><05><05>b<EFBFBD> <09> <15>
<0A>=<3D><18>=<3D> <0C>Hrc<00>n<00>t||tttjj
|<02><00>S)z<>Create an RRset with the specified name and TTL, and with
the specified rdata objects.
Returns a ``dns.rrset.RRset`` object.
)rCrrr r[<00>Rdata)r rDrbs r<00>
from_rdatarhs'<00><00> <1B>4<EFBFBD><13>d<EFBFBD>:<3A>c<EFBFBD>i<EFBFBD>i<EFBFBD>o<EFBFBD>o<EFBFBD>+F<><06>&O<> P<>Pr)NNTNr) rJ<00>typingrrrr<00>dns.namer <00> dns.rdata<74>dns.rdataclass<73> dns.rdataset<65> dns.rdatatype<70> dns.rendererr.r/rr r6r$rQr#rMr!rN<00> IDNACodecrOr`rXr[rgrCrh<00>rr<00><module>rrs<00><01>$0<>.<2E>.<2E><0F><10><15><13><14><13>ZB<01>C<EFBFBD>L<EFBFBD>L<EFBFBD> !<21> !<21>ZB<01>F-1<>#'<27><1B>*.<2E>( <0A>
<0A>(<28>(<28>-<2D>-<2D>#<23>
<1D>( <0A> <0C>( <0A><11>^<5E>^<5E> &<26> &<26><13> ,<2C>( <0A> <10>M<EFBFBD>M<EFBFBD> #<23> #<23>c<EFBFBD> )<29> ( <0A>
<1C>C<EFBFBD><1F> ( <0A> <14><08><08>"<22>"<22>T<EFBFBD>)<29> ( <0A> <10>H<EFBFBD>H<EFBFBD>M<EFBFBD>M<EFBFBD>D<EFBFBD> <20>( <0A><15>( <0A><17>8<EFBFBD>8<EFBFBD>=<3D>=<3D>4<EFBFBD>'<27>( <0A> <0B>( <0A>V<06>
<0A>(<28>(<28>-<2D>-<2D>#<23>
<1D><06> <0C><06><11>^<5E>^<5E> &<26> &<26><13> ,<2C><06> <10>M<EFBFBD>M<EFBFBD> #<23> #<23>c<EFBFBD> )<29> <06>
<16> <06>  <0B> <06>,-1<>  <0A>
<0A>(<28>(<28>-<2D>-<2D>#<23>
<1D> <0A> <0C> <0A> <17>s<EFBFBD>y<EFBFBD>y<EFBFBD><EFBFBD><EFBFBD> '<27> <0A><14><08><08>"<22>"<22>T<EFBFBD>)<29>  <0A>
 <0B>  <0A>@Q<01>S<EFBFBD>X<EFBFBD>X<EFBFBD>]<5D>]<5D>S<EFBFBD>(<28>Q<01>s<EFBFBD>Q<01>S<EFBFBD>Q<01>U<EFBFBD>Qr