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

682 lines
86 KiB
Plaintext
Raw Normal View History

2025-11-18 03:36:49 +08:00
<EFBFBD>
g<> i<> <00><00>: <00>UdZddlZddlZddlZddlZddlZddlZddlZddlm Z m
Z
m Z m Z m Z mZmZddlmZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddl Zddl!Zddl"Zddl#Zddl$Zddl%ZejLdk(rddl'ZGd<06>dejPjR<00>Z*Gd<08>d ejPjR<00>Z+ee,dze-e.e/e,zej`jbdzfZ2d
e e2d e e,fd <0C>Z3Gd <0A>dejPjh<00>Z5e5Z4Gd<0F>dejPjR<00>Z6Gd<11>dejPjR<00>Z7Gd<13>dejPjR<00>Z8Gd<15>dejPjR<00>Z9Gd<17>dejPjR<00>Z:Gd<19>dejPjR<00>Z;Gd<1B>d<1C>Z<Gd<1D>de=<3D>Z>Gd<1F>d ejPjR<00>Z?Gd!<21>d"e><3E>Z@Gd#<23>d$<24>ZAGd%<25>d&<26>ZBeej<>j<>ej<>j<>ej<>j<>fZIGd'<27>d(eB<65>ZJGd)<29>d*<2A>ZKGd+<2B>d,eB<65>ZLGd-<2D>d.<2E>ZMGd/<2F>d0<64>ZNGd1<64>d2eN<65>ZOdaPeOdzeQd3<d eOfd4<64>ZRd]d5<64>ZSej<>j<>ej<>j<>d6dd7dddfd8ej<>j<>e,zd9ej<>j<>e,zd:ej<>j<>e,zd;e-d<e,dzd=e-d>e.d?eVdzd@e-dzd e<fdA<64>ZWej<>j<>ej<>j<>d6dd7ddfd8ej<>j<>e,zd9ej<>j<>e,zd:ej<>j<>e,zd;e-d<e,dzd=e-d>e.d?eVdzd e<fdB<64>ZXdCe,dDe dEe d e<fdF<64>ZYej<>fdGej<>j<>e,zdHe.dEe d e@fdI<64>Z[dGej<>j<>e,zd ej<>j<>fdJ<64>Z\d^d?eVd dfdK<64>Z]ej<>j<>d6ddfdGej<>j<>e,zd:ej<>j<>d;e-dLeOdzd?eVdzd ej<>j<>f dM<64>Z^dNej<>dfdOej<>j<>e,zdPe.dHe.dLeOdzd eOf
dQ<EFBFBD>Z_ej<>j<>ej<>j<>d6dd7ddddNej<>df dOej<>j<>e,zd8ej<>j<>e,zd9ej<>j<>e,zd:ej<>j<>e,zd;e-d<e,dzd=e-d>e.d?eVdzd@e-dzdPe.dHe.dLeOdzd e<fdR<64>Z`ej<>ej<>gej<>ej<>giZee
e e e feQdS<dafeOdzeQdT<ej<>Zhej<>Zjej<>Zlej<>Znej<>Zpej<>Zrddej<>dddfdU<64>Zsd_dV<64>Ztd`dW<64>ZudX<64>ZvdY<64>ZwdZ<64>Zxd`dLeOdzd dfd[<5B>Zyd]d\<5C>Zzy)a<>DNS stub resolver.<2E>N)<07>Any<6E>Dict<63>Iterator<6F>List<73>Sequence<63>Tuple<6C>cast)<01>urlparse<73>win32c<00>n<00><00>eZdZdZddhZdZ<05>fd<05>Zdd<06>Zdef<02>fd<08> Z e
d <09><00>Z d
<EFBFBD>Z d <0B>Z d <0C>Zd <0A>Z<0F>xZS)<0F>NXDOMAINz"The DNS query name does not exist.<2E>qnames<65> responsesNc<00>$<00><01>t<00>|<00>|i|<02><01>y<00>N<><02>super<65>__init__<5F><04>self<6C>args<67>kwargs<67> __class__s <20><>;E:\Project\pygoedge\.venv\Lib\site-packages\dns/resolver.pyrzNXDOMAIN.__init__@<00><00><><00> <0A><07><18>$<24>)<29>&<26>)<29>c<00><><00>t|ttztz<00>s t d<01><00>t |<01>dk(r t d<03><00>|<02>i}nt|t <00>s t d<04><00>t ||<02><05>}|S)Nz#qnames must be a list, tuple or setrz(qnames must contain at least one elementz(responses must be a dict(qname=response)<29>rr)<07>
isinstance<EFBFBD>list<73>tuple<6C>set<65>AttributeError<6F>len<65>dict)rrrrs r<00> _check_kwargszNXDOMAIN._check_kwargsCsk<00><00><19>&<26>$<24><15>,<2C><13>"4<>5<> <20>!F<>G<> G<> <0E>v<EFBFBD>;<3B>!<21> <1B> <20>!K<>L<> L<> <14> <1C><1A>I<EFBFBD><1B>I<EFBFBD>t<EFBFBD>,<2C> <20>!K<>L<> L<><15>V<EFBFBD>y<EFBFBD>9<><06><15> r<00>returnc<00><><00><01>d|jvrt<00>|<00> <00>S|jd}t|<01>dkDrd}nd}dj t t |<01><00>}|<02>d|<01><00>S)Nr<00>zNone of DNS query names existz!The DNS query name does not existz, z: )rr<00>__str__r%<00>join<69>map<61>str)rr<00>msgrs <20>rr+zNXDOMAIN.__str__Ose<00><><00> <13>4<EFBFBD>;<3B>;<3B> &<26><18>7<EFBFBD>?<3F>$<24> $<24><15><1B><1B>X<EFBFBD>&<26><06> <0E>v<EFBFBD>;<3B><11>?<3F>1<>C<EFBFBD>5<>C<EFBFBD><15><19><19>3<EFBFBD>s<EFBFBD>F<EFBFBD>+<2B>,<2C><06><15><15>b<EFBFBD><16><08>!<21>!rc<00><><00>d|jvr td<02><00>|jdD].}|jd|} |j<00>}||k7r|cS<00>0|jddS#t$rY<00>NwxYw)z%Return the unresolved canonical name.rzparametrized exception requiredrr)r<00> TypeError<6F>canonical_name<6D> Exception)r<00>qname<6D>response<73>cnames rr2zNXDOMAIN.canonical_nameZs<><00><00> <14>4<EFBFBD>;<3B>;<3B> &<26><1B>=<3D>><3E> ><3E><19>[<5B>[<5B><18>*<2A>E<EFBFBD><1B>{<7B>{<7B>;<3B>/<2F><05>6<>H<EFBFBD> <15> <20>/<2F>/<2F>1<><05><18>E<EFBFBD>><3E> <20>L<EFBFBD>"<22> +<2B><14>{<7B>{<7B>8<EFBFBD>$<24>Q<EFBFBD>'<27>'<27><> <1D> <15><15> <15>s<00>A,<02>, A8<05>7A8c<00>n<00>t|jjdg<00><00>}t|jjdi<00><00>}|jjdi<00>}|jjdg<00>D]$}||vr|j |<05>||vs<01>||||<<00>&t ||<03><03>S)z3Augment by results from another NXDOMAIN exception.rrr)r!r<00>getr&<00>appendr)r<00>e_nx<6E>qnames0<73>
responses0<EFBFBD>
responses1<EFBFBD>qname1s r<00>__add__zNXDOMAIN.__add__ks<><00><00><16>t<EFBFBD>{<7B>{<7B><EFBFBD><EFBFBD>x<EFBFBD><12>4<>5<><07><19>$<24>+<2B>+<2B>/<2F>/<2F>+<2B>r<EFBFBD>:<3A>;<3B>
<EFBFBD><19>[<5B>[<5B>_<EFBFBD>_<EFBFBD>[<5B>"<22>5<>
<EFBFBD><1A>k<EFBFBD>k<EFBFBD>o<EFBFBD>o<EFBFBD>h<EFBFBD><02>3<>F<EFBFBD><15>W<EFBFBD>$<24><17><0E><0E>v<EFBFBD>&<26><15><1A>#<23>%/<2F><06>%7<>
<EFBFBD>6<EFBFBD>"<22> 4<>
<18>w<EFBFBD>*<2A>=<3D>=rc<00> <00>|jdS)zXAll of the names that were tried.
Returns a list of ``dns.name.Name``.
r<00>r<00>rs rrzNXDOMAIN.qnamesws<00><00>
<14>{<7B>{<7B>8<EFBFBD>$<24>$rc<00> <00>|jdS)z<>A map from queried names to their NXDOMAIN responses.
Returns a dict mapping a ``dns.name.Name`` to a
``dns.message.Message``.
rrArBs rrzNXDOMAIN.responses~s<00><00> <14>{<7B>{<7B>;<3B>'<27>'rc<00>&<00>|jd|S)zTThe response for query *qname*.
Returns a ``dns.message.Message``.
rrA)rr4s rr5zNXDOMAIN.response<73>s<00><00>
<14>{<7B>{<7B>;<3B>'<27><05>.<2E>.rr)<11>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__<5F> supp_kwargs<67>fmtrr'r.r+<00>propertyr2r?rrr5<00> __classcell__<5F>rs@rrr6sS<00><><00>,<2C><1B>[<5B>)<29>K<EFBFBD>
<0E>C<EFBFBD> *<2A>
<16> "<22><13> "<22><0E>(<28><0E>(<28>
><3E>%<25>(<28>/rrc<00><00>eZdZdZy)<03>YXDOMAINz8The DNS query name is too long after DNAME substitution.N<>rErFrGrH<00>rrrOrO<00>s<00><00>BrrO<00>errorsr(c<00>R<00>g}|D]}|jd|d<00>d|d<00><00><04><00>!|S)z3Turn a resolution errors trace into a list of text.zServer rz
answered <20>)r9)rR<00>texts<74>errs r<00>_errors_to_textrW<00>s7<00><00> <0E>E<EFBFBD><15><03> <0A> <0C> <0C>w<EFBFBD>s<EFBFBD>1<EFBFBD>v<EFBFBD>h<EFBFBD>j<EFBFBD><13>Q<EFBFBD><16><08>9<>:<3A><16> <10>Lrc<00>H<00><00>eZdZdZdZedd<00>d<04>ZddhZ<06>fd<07>Z<07>fd<08>Z<08>xZ S) <09>LifetimeTimeoutz The resolution lifetime expired.N<><4E><EFBFBD><EFBFBD><EFBFBD>z& after {timeout:.3f} seconds: {errors}<7D>timeoutrRc<00>$<00><01>t<00>|<00>|i|<02><01>yrrrs <20>rrzLifetimeTimeout.__init__<5F>rrc <00>f<00><01>t|d<00>}t<00>|<00> |ddj|<02><00><04>S)NrRr[<00>; <20>r[rR)rWr<00> _fmt_kwargsr,<00>rr<00>srv_msgsrs <20>rr`zLifetimeTimeout._fmt_kwargs<67>s<<00><><00>"<22>6<EFBFBD>(<28>#3<>4<><08><14>w<EFBFBD>"<22><1A>9<EFBFBD>%<25>d<EFBFBD>i<EFBFBD>i<EFBFBD><08>.A<>#<23>
<EFBFBD>
r<00>
rErFrGrHr/rJrIrr`rLrMs@rrYrY<00>s7<00><><00>*<2A>
,<2C>C<EFBFBD> <10><13>"<22>X<EFBFBD>J<EFBFBD>@<40>
A<EFBFBD>C<EFBFBD><1C>h<EFBFBD>'<27>K<EFBFBD>*<2A>
<EFBFBD>
rrYc<00><<00><00>eZdZdZdZdhZ<05>fd<04>Z<06>fd<05>Zd<06>Z<08>xZ S)<07>NoAnswerz<The DNS response does not contain an answer to the question.zDThe DNS response does not contain an answer to the question: {query}r5c<00>$<00><01>t<00>|<00>|i|<02><01>yrrrs <20>rrzNoAnswer.__init__<5F>rrc <00>><00><01>t<00>|<00>|dj<00><02>S)Nr5)<01>query)rr`<00>question)rrrs <20>rr`zNoAnswer._fmt_kwargs<67>s!<00><><00><14>w<EFBFBD>"<22><16>
<EFBFBD>);<3B>)D<>)D<>"<22>E<>Erc<00> <00>|jdS)Nr5rArBs rr5zNoAnswer.response<73>s<00><00><13>{<7B>{<7B>:<3A>&<26>&r)
rErFrGrHrJrIrr`r5rLrMs@rrere<00>s"<00><><00>F<>
P<EFBFBD>C<EFBFBD><1D>,<2C>K<EFBFBD>*<2A>F<01>'rrec<00>H<00><00>eZdZdZdZedd<00>d<05>ZddhZ<06>fd<08>Z<07>fd <09>Z<08>xZ S)
<EFBFBD> NoNameserversz<73>All nameservers failed to answer the query.
errors: list of servers and respective errors
The type of errors is
[(server IP address, any object convertible to string)].
Non-empty errors list will add explanatory message ()
z+All nameservers failed to answer the query.NrZz {query}: {errors}<7D>requestrRc<00>$<00><01>t<00>|<00>|i|<02><01>yrrrs <20>rrzNoNameservers.__init__<5F>rrc <00>z<00><01>t|d<00>}t<00>|<00> |djdj |<02><00><04>S)NrRrmr^)rhrR)rWrr`rir,ras <20>rr`zNoNameservers._fmt_kwargs<67>sB<00><><00>"<22>6<EFBFBD>(<28>#3<>4<><08><14>w<EFBFBD>"<22><18><19>#<23>,<2C>,<2C>T<EFBFBD>Y<EFBFBD>Y<EFBFBD>x<EFBFBD>5H<35>#<23>
<EFBFBD>
rrcrMs@rrlrl<00>s;<00><><00><08> 8<>C<EFBFBD> <10><13>"<22>X<EFBFBD>J<EFBFBD>,<2C>
-<2D>C<EFBFBD><1C>h<EFBFBD>'<27>K<EFBFBD>*<2A>
<EFBFBD>
rrlc<00><00>eZdZdZy)<03> NotAbsolutezEAn absolute domain name is required but a relative name was provided.NrPrQrrrqrq<00><00><00><00>Orrqc<00><00>eZdZdZy)<03> NoRootSOAzBThere is no SOA RR at the DNS root name. This should never happen!NrPrQrrrtrt<00>s<00><00>Lrrtc<00><00>eZdZdZy)<03> NoMetaqueriesz DNS metaqueries are not allowed.NrPrQrrrvrv<00><00><00><00>*rrvc<00><00>eZdZdZy)<03>NoResolverConfigurationzEResolver configuration could not be read or specified no nameservers.NrPrQrrryry<00>rrrryc<00><00>eZdZdZ ddej
j dejjdejjdejjde dzdedzd dfd
<EFBFBD>Zd <0B>Zd efd <0C>Zd eefd <0A>Zd<0E>Zd<0F>Zy)<11>Answera&DNS stub resolver answer.
Instances of this class bundle up the result of a successful DNS
resolution.
For convenience, the answer object implements much of the sequence
protocol, forwarding to its ``rrset`` attribute. E.g.
``for a in answer`` is equivalent to ``for a in answer.rrset``.
``answer[i]`` is equivalent to ``answer.rrset[i]``, and
``answer[i:j]`` is equivalent to ``answer.rrset[i:j]``.
Note that CNAMEs or DNAMEs in the response may mean that answer
RRset's name might not be the query name.
Nr4<00>rdtype<70>rdclassr5<00>
nameserver<EFBFBD>portr(c<00>N<00>||_||_||_||_||_||_|j <00>|_|jj|_|jj|_
tj<00>|jjz|_ yr)r4r|r}r5r~r<00>resolve_chaining<6E>chaining_resultr2<00>answer<65>rrset<65>time<6D> minimum_ttl<74>
expiration)rr4r|r}r5r~rs rrzAnswer.__init__s<><00><00><1B><04>
<EFBFBD><1C><04> <0B><1E><04> <0C> <20><04> <0A>$<24><04><0F><18><04> <09>'<27>8<>8<>:<3A><04><1C>#<23>2<>2<>A<>A<><04><1B><19>)<29>)<29>0<>0<><04>
<EFBFBD><1E>)<29>)<29>+<2B><04>(<<3C>(<<3C>(H<>(H<>H<><04>rc<00>@<00>|j<00><>|dk(r|jjS|dk(r|jjS|dk(r|jjS|dk(r|jjS|dk(r|jj
Syt |<01><00>)N<>name<6D>ttl<74>coversr}r|)r<>r<>r<>r<>r}r|r$)r<00>attrs r<00> __getattr__zAnswer.__getattr__s<><00><00> <0F>:<3A>:<3A> !<21><13>v<EFBFBD>~<7E><1B>z<EFBFBD>z<EFBFBD><EFBFBD><EFBFBD>&<26><15><15><1D><1B>z<EFBFBD>z<EFBFBD>~<7E>~<7E>%<25><15><18>!<21><1B>z<EFBFBD>z<EFBFBD>(<28>(<28>(<28><15><19>"<22><1B>z<EFBFBD>z<EFBFBD>)<29>)<29>)<29><15><18>!<21><1B>z<EFBFBD>z<EFBFBD>(<28>(<28>(<28>"<22>!<21><14>&<26> &rc<00>T<00>|jduxrt|j<00>xsdS<00>Nr)r<>r%rBs r<00>__len__zAnswer.__len__,s#<00><00><13>z<EFBFBD>z<EFBFBD><14>%<25>9<>#<23>d<EFBFBD>j<EFBFBD>j<EFBFBD>/<2F>><3E>Q<EFBFBD>>rc<00>v<00>|jduxrt|j<00>xstt<00><00>Sr)r<><00>iterr"rBs r<00>__iter__zAnswer.__iter__/s*<00><00><13>z<EFBFBD>z<EFBFBD><14>%<25>:<3A>$<24>t<EFBFBD>z<EFBFBD>z<EFBFBD>*:<3A>K<>d<EFBFBD>5<EFBFBD>7<EFBFBD>m<EFBFBD>Krc<00>D<00>|j<00>t<00>|j|Sr<00>r<><00>
IndexError<EFBFBD>r<00>is r<00> __getitem__zAnswer.__getitem__2s <00><00> <0F>:<3A>:<3A> <1D><1C> <1C><13>z<EFBFBD>z<EFBFBD>!<21>}<7D>rc<00>B<00>|j<00>t<00>|j|=yrr<>r<>s r<00> __delitem__zAnswer.__delitem__7s<00><00> <0F>:<3A>:<3A> <1D><1C> <1C> <10>J<EFBFBD>J<EFBFBD>q<EFBFBD>Mr<00>NN)rErFrGrH<00>dnsr<73><00>Name<6D> rdatatype<70> RdataType<70>
rdataclass<EFBFBD>
RdataClass<EFBFBD>message<67> QueryMessager.<00>intrr<>r<>rrr<>r<>r<>rQrrr{r{<00>s<><00><00> <08>*"&<26><1F>I<01><12>x<EFBFBD>x<EFBFBD>}<7D>}<7D>I<01><14> <0A> <0A>'<27>'<27>I<01><15><1E><1E>*<2A>*<2A> I<01>
<16>+<2B>+<2B>*<2A>*<2A> I<01> <18>$<24>J<EFBFBD> I<01><12>D<EFBFBD>j<EFBFBD>I<01>
<0E>I<01>, '<27>?<3F><13>?<3F>L<01>(<28>3<EFBFBD>-<2D>L<01><1D>
rr{c<00><00>eZdZdZy)<03>Answersz5A dict of DNS stub resolver answers, indexed by type.NrPrQrrr<>r<>=s<00><00>?rr<>c<00><00>eZdZdZy)<03>EmptyHostAnswersz The HostAnswers has no addressesNrPrQrrr<>r<>Arwrr<>c
<00><><00>eZdZdZe d dedzdedzdeddfd<07><05>Zejfde
de e e e
ffd <09>Zejfde
de e fd
<EFBFBD>Zdej"j$fd <0B>Zy) <0A> HostAnswerszTA dict of DNS stub resolver answers to a host name lookup, indexed by
type.
N<>v6<76>v4<76> add_emptyr(c<00><><00>t<00>}|<01>+|s |jr||tjj<|<02>+|s |jr||tjj
<|Sr)r<>r<>r<>r<><00>AAAA<41>A)<05>clsr<73>r<>r<><00>answerss r<00>makezHostAnswers.makeJsP<00><00><1E>-<2D><07> <0A>><3E>y<EFBFBD>B<EFBFBD>H<EFBFBD>H<EFBFBD>*,<2C>G<EFBFBD>C<EFBFBD>M<EFBFBD>M<EFBFBD>&<26>&<26> '<27> <0A>><3E>y<EFBFBD>B<EFBFBD>H<EFBFBD>H<EFBFBD>')<29>G<EFBFBD>C<EFBFBD>M<EFBFBD>M<EFBFBD>O<EFBFBD>O<EFBFBD> $<24><16>r<00>familyc#<00>K<00>|tjk(rO|jtj<00>Ed{<00><02><02>|jtj<00>Ed{<00><02><02>y|tjk(r*|j t jj<00>}nK|tjk(r*|j t jj<00>}ntd|<01><00><02><00>|r|D]}|j|f<02><01><00>yy7<00><>7<00><><EFBFBD>w)N<>unknown address family ) <0C>socket<65> AF_UNSPEC<45>addresses_and_families<65>AF_INET6<54>AF_INETr8r<>r<>r<>r<><00>NotImplementedError<6F>address)rr<>r<><00>rdatas rr<>z"HostAnswers.addresses_and_familiesZs<><00><00><><00> <12>V<EFBFBD>%<25>%<25> %<25><1B>2<>2<>6<EFBFBD>?<3F>?<3F>C<> C<> C<><1B>2<>2<>6<EFBFBD>><3E>><3E>B<> B<> B<> <12> <13>v<EFBFBD><EFBFBD><EFBFBD> &<26><19>X<EFBFBD>X<EFBFBD>c<EFBFBD>m<EFBFBD>m<EFBFBD>0<>0<>1<>F<EFBFBD> <13>v<EFBFBD>~<7E>~<7E> %<25><19>X<EFBFBD>X<EFBFBD>c<EFBFBD>m<EFBFBD>m<EFBFBD>o<EFBFBD>o<EFBFBD>.<2E>F<EFBFBD>%<25>(?<3F><06>x<EFBFBD>&H<>I<> I<> <11><1F><05><1C>}<7D>}<7D>f<EFBFBD>-<2D>-<2D> <20> <12> D<01><> B<>s"<00>6D <01>D<04>&D <01>D
<04> B)D <01>
D c<00>2<00>d<01>|j|<01>D<00>S)Nc3<00>&K<00>|] }|d<00><01><00> y<01>w)rNrQ)<02>.0<EFBFBD>pairs r<00> <genexpr>z(HostAnswers.addresses.<locals>.<genexpr>ns<00><00><><00>H<>$G<>D<EFBFBD><04>Q<EFBFBD><07>$G<>s<00>)r<>)rr<>s r<00> addresseszHostAnswers.addressesms<00><00>H<>D<EFBFBD>$?<3F>$?<3F><06>$G<>H<>Hrc<00><><00>|jtjj|jtjj<00><00>}|<01>t
<00>|j Sr)r8r<>r<>r<>r<>r<>r2)rr<>s rr2zHostAnswers.canonical_nameqsD<00><00><15><18><18>#<23>-<2D>-<2D>,<2C>,<2C>d<EFBFBD>h<EFBFBD>h<EFBFBD>s<EFBFBD>}<7D>}<7D><EFBFBD><EFBFBD>.G<>H<><06> <11>><3E>"<22> "<22><15>$<24>$<24>$r)NNT)rErFrGrH<00> classmethodr{<00>boolr<6C>r<>r<>r<>rr r.r<>r<>r<>r<>r<>r2rQrrr<>r<>Es<><00><00><08><11>!<21> <20><1E> <17> <12>T<EFBFBD>M<EFBFBD> <17> <13>T<EFBFBD>M<EFBFBD> <17><18> <17>
<17> <17><11> <17> #<23>,<2C>,<2C>.<2E><19>.<2E> <11>%<25><03>S<EFBFBD><08>/<2F> "<22>.<2E>&'-<2D>&6<>&6<>I<01><03>I<01>8<EFBFBD>C<EFBFBD>=<3D>I<01>%<25><03><08><08> <0A> <0A>%rr<>c<00>6<00>eZdZdZd dededdfd<06>Zd
d<07>Zd d<08>Zy) <0C>CacheStatisticszCache Statistics<63>hits<74>missesr(Nc<00> <00>||_||_yr<00>r<>r<>)rr<>r<>s rrzCacheStatistics.__init__{s<00><00><18><04> <09><1C><04> rc<00> <00>d|_d|_yr<>r<>rBs r<00>resetzCacheStatistics.resets<00><00><15><04> <09><17><04> rc<00>B<00>t|j|j<00>Sr)r<>r<>r<>rBs r<00>clonezCacheStatistics.clone<6E>s<00><00><1E>t<EFBFBD>y<EFBFBD>y<EFBFBD>$<24>+<2B>+<2B>6<>6r)rr<00>r(N)r(r<>)rErFrGrHr<>rr<>r<>rQrrr<>r<>xs)<00><00><1A><1D>S<EFBFBD><1D>c<EFBFBD><1D>$<24><1D><18>7rr<>c<00>@<00>eZdZdd<03>Zdd<04>Zdefd<05>Zdefd<06>Zdefd<07>Z y) <09> CacheBaser(Nc<00>T<00>tj<00>|_t<00>|_yr)<05> threading<6E>Lock<63>lockr<6B><00>
statisticsrBs rrzCacheBase.__init__<5F>s<00><00><1D>N<EFBFBD>N<EFBFBD>$<24><04> <09>)<29>+<2B><04>rc<00>z<00>|j5|jj<00>ddd<01>y#1swYyxYw)zReset all statistics to zero.N)r<>r<>r<>rBs r<00>reset_statisticszCacheBase.reset_statistics<63>s#<00><00> <11>Y<EFBFBD>Y<EFBFBD> <10>O<EFBFBD>O<EFBFBD> !<21> !<21> #<23><17>Y<EFBFBD>Y<EFBFBD>s<00>1<03>:c<00>r<00>|j5|jjcddd<01>S#1swYyxYw)z How many hits has the cache had?N)r<>r<>r<>rBs rr<>zCacheBase.hits<74>s <00><00> <11>Y<EFBFBD>Y<EFBFBD><17>?<3F>?<3F>'<27>'<27><17>Y<EFBFBD>Y<EFBFBD><59><00>-<03>6c<00>r<00>|j5|jjcddd<01>S#1swYyxYw)z"How many misses has the cache had?N)r<>r<>r<>rBs rr<>zCacheBase.misses<65>s <00><00> <11>Y<EFBFBD>Y<EFBFBD><17>?<3F>?<3F>)<29>)<29><17>Y<EFBFBD>Y<EFBFBD>r<EFBFBD>c<00>z<00>|j5|jj<00>cddd<01>S#1swYyxYw)z<>Return a consistent snapshot of all the statistics.
If running with multiple threads, it's better to take a
snapshot than to call statistics methods such as hits() and
misses() individually.
N)r<>r<>r<>rBs r<00>get_statistics_snapshotz!CacheBase.get_statistics_snapshot<6F>s%<00><00><12>Y<EFBFBD>Y<EFBFBD><17>?<3F>?<3F>(<28>(<28>*<2A><17>Y<EFBFBD>Y<EFBFBD>s<00>1<03>:r<>)
rErFrGrr<>r<>r<>r<>r<>r<>rQrrr<>r<><00>s0<00><00>,<2C>$<24>
(<28>c<EFBFBD>(<28>
*<2A><03>*<2A>
+<2B><1F>+rr<>c<00>x<00><00>eZdZdZd deddf<04>fd<05> Zd d<06>Zdededzfd<08>Z ded eddfd
<EFBFBD>Z
ddedzddfd <0B>Z <0B>xZ S)<0F>Cachez$Simple thread-safe DNS answer cache.<2E>cleaning_intervalr(Nc<00><><00><01>t<00>|<00><00>i|_||_t j<00>|jz|_y)zf*cleaning_interval*, a ``float`` is the number of seconds between
periodic cleanings.
N)rr<00>datar<61>r<><00> next_cleaning)rr<>rs <20>rrzCache.__init__<5F>s8<00><><00>
<0E><07><18><1A>,.<2E><04> <09>!2<><04><1E>$(<28>I<EFBFBD>I<EFBFBD>K<EFBFBD>$<24>2H<32>2H<32>$H<><04>rc<00>N<00>tj<00>}|j|kr<>g}|jj<00>D]&\}}|j|ks<01>|j |<03><00>(|D]}|j|=<00>tj<00>}||j z|_yy)z&Clean the cache if it's time to do so.N)r<>r<>r<><00>itemsr<73>r9r<>)r<00>now<6F>keys_to_delete<74>k<>vs r<00> _maybe_cleanzCache._maybe_clean<61>s<><00><00><13>i<EFBFBD>i<EFBFBD>k<EFBFBD><03> <0F> <1D> <1D><13> $<24><1F>N<EFBFBD><1C> <09> <09><0F><0F>)<29><04><01>1<EFBFBD><14><<3C><<3C>3<EFBFBD>&<26>"<22>)<29>)<29>!<21>,<2C>*<2A>$<24><01><18>I<EFBFBD>I<EFBFBD>a<EFBFBD>L<EFBFBD>$<24><16>)<29>)<29>+<2B>C<EFBFBD>!$<24>t<EFBFBD>'=<3D>'=<3D>!=<3D>D<EFBFBD> <1E> %r<00>keyc<00>v<00>|j5|j<00>|jj|<01>}|<02>!|jt j
<00>kr)|j xjdz c_ ddd<01>y|j xjdz c_|cddd<01>S#1swYyxYw<01>aKGet the answer associated with *key*.
Returns None if no answer is cached for the key.
*key*, a ``(dns.name.Name, dns.rdatatype.RdataType, dns.rdataclass.RdataClass)``
tuple whose values are the query name, rdtype, and rdclass respectively.
Returns a ``dns.resolver.Answer`` or ``None``.
Nr*) r<>r<>r<>r8r<>r<>r<>r<>r<>)rr<>r<>s rr8z Cache.get<65>s<><00><00><12>Y<EFBFBD>Y<EFBFBD> <10> <1D> <1D> <1F><14> <09> <09> <0A> <0A>c<EFBFBD>"<22>A<EFBFBD><10>y<EFBFBD>A<EFBFBD>L<EFBFBD>L<EFBFBD>D<EFBFBD>I<EFBFBD>I<EFBFBD>K<EFBFBD>7<><14><0F><0F>&<26>&<26>!<21>+<2B>&<26><1B> <17>Y<EFBFBD> <11>O<EFBFBD>O<EFBFBD> <20> <20>A<EFBFBD> %<25> <20><14><17>Y<EFBFBD>Y<EFBFBD>s<00>A/B/<03> B/<03>/B8<07>valuec<00><><00>|j5|j<00>||j|<ddd<01>y#1swYyxYw<01>aAssociate key and value in the cache.
*key*, a ``(dns.name.Name, dns.rdatatype.RdataType, dns.rdataclass.RdataClass)``
tuple whose values are the query name, rdtype, and rdclass respectively.
*value*, a ``dns.resolver.Answer``, the answer.
N)r<>r<>r<><00>rr<>r<>s r<00>putz Cache.put<75>s.<00><00><12>Y<EFBFBD>Y<EFBFBD> <10> <1D> <1D> <1F>"<22>D<EFBFBD>I<EFBFBD>I<EFBFBD>c<EFBFBD>N<EFBFBD><17>Y<EFBFBD>Y<EFBFBD>s<00> 6<03>?c<00><><00>|j5|<01>||jvr;|j|=n-i|_tj<00>|jz|_ddd<01>y#1swYyxYw<01>a2Flush the cache.
If *key* is not ``None``, only that item is flushed. Otherwise the entire cache
is flushed.
*key*, a ``(dns.name.Name, dns.rdatatype.RdataType, dns.rdataclass.RdataClass)``
tuple whose values are the query name, rdtype, and rdclass respectively.
N)r<>r<>r<>r<>r<>)rr<>s r<00>flushz Cache.flush<73>sQ<00><00><12>Y<EFBFBD>Y<EFBFBD><12><EFBFBD><16>$<24>)<29>)<29>#<23><1C> <09> <09>#<23><0E><1E><04> <09>%)<29>Y<EFBFBD>Y<EFBFBD>[<5B>4<EFBFBD>3I<33>3I<33>%I<><04>"<22> <17>Y<EFBFBD>Y<EFBFBD>s <00>A A"<03>"A+)g<00>r@r<>r) rErFrGrH<00>floatrr<><00>CacheKeyr{r8r<>r<>rLrMs@rr<>r<><00>sl<00><><00>.<2E>I<01>%<25>I<01>D<EFBFBD>I<01> ><3E><15>x<EFBFBD><15>F<EFBFBD>T<EFBFBD>M<EFBFBD><15>( #<23>x<EFBFBD> #<23><06> #<23>4<EFBFBD> #<23>J<01><18>D<EFBFBD><1F>J<01>D<EFBFBD>Jrr<>c<00>&<00>eZdZdZd<02>Zdd<04>Zdd<05>Zy)<08> LRUCacheNodezLRUCache node.c<00>J<00>||_||_d|_||_||_yr<>)r<>r<>r<><00>prev<65>nextr<74>s rrzLRUCacheNode.__init__<5F>s%<00><00><16><04><08><1A><04>
<EFBFBD><15><04> <09><18><04> <09><18><04> rNc<00>d<00>||_|j|_||j_||_yr<00>r<>r)r<00>nodes r<00>
link_afterzLRUCacheNode.link_afters&<00><00><18><04> <09><18>I<EFBFBD>I<EFBFBD><04> <09><1D><04> <09> <09><0E><18><04> rc<00>p<00>|j|j_|j|j_yrrrBs r<00>unlinkzLRUCacheNode.unlinks <00><00><1D><19><19><04> <09> <09><0E><1D><19><19><04> <09> <09>r)rr<>r(Nr<4E>)rErFrGrHrrrrQrrr<>r<><00>s<00><00><18><19><19> #rr<>c<00><><00><00>eZdZdZd deddf<04>fd<05> Zdeddfd<06>Zdededzfd<08>Z dedefd <09>Z
ded
eddfd <0B>Z ddedzddfd <0C>Z <0C>xZ S)<0F>LRUCachea`Thread-safe, bounded, least-recently-used DNS answer cache.
This cache is better than the simple cache (above) if you're
running a web crawler or other process that does a lot of
resolutions. The LRUCache has a maximum number of nodes, and when
it is full, the least-recently used node is removed to make space
for a new one.
<20>max_sizer(Nc<00><><00><01>t<00>|<00><00>i|_|j|<01>t dd<01>|_|j
|j
_|j
|j
_y)zl*max_size*, an ``int``, is the maximum number of nodes to cache;
it must be greater than 0.
N)rrr<><00> set_max_sizer<65><00>sentinelr<6C>r)rr rs <20>rrzLRUCache.__init__sS<00><><00>
<0E><07><18><1A>24<32><04> <09> <0C><19><19>(<28>#<23>&2<>4<EFBFBD><14>&><3E><04> <0A>!<21>]<5D>]<5D><04> <0A> <0A><1A>!<21>]<5D>]<5D><04> <0A> <0A>rc<00> <00>|dkrd}||_y)Nr*)r )rr s rr zLRUCache.set_max_size#s<00><00> <13>a<EFBFBD><<3C><18>H<EFBFBD> <20><04> rr<>c<00>~<00>|j5|jj|<01>}|<02>)|jxjdz c_ ddd<01>y|j <00>|j jtj<00>kr@|j|j=|jxjdz c_ ddd<01>y|j|j<00>|jxjdz c_ |xjdz c_ |j cddd<01>S#1swYyxYwr<>) r<>r<>r8r<>r<>rr<>r<>r<>r<>rr r<><00>rr<>rs rr8z LRUCache.get(s<><00><00><12>Y<EFBFBD>Y<EFBFBD><17>9<EFBFBD>9<EFBFBD>=<3D>=<3D><13>%<25>D<EFBFBD><13>|<7C><14><0F><0F>&<26>&<26>!<21>+<2B>&<26><1B> <17>Y<EFBFBD> <11>K<EFBFBD>K<EFBFBD>M<EFBFBD><13>z<EFBFBD>z<EFBFBD>$<24>$<24><04> <09> <09> <0B>3<><18>I<EFBFBD>I<EFBFBD>d<EFBFBD>h<EFBFBD>h<EFBFBD>'<27><14><0F><0F>&<26>&<26>!<21>+<2B>&<26><1B><17>Y<EFBFBD> <11>O<EFBFBD>O<EFBFBD>D<EFBFBD>M<EFBFBD>M<EFBFBD> *<2A> <10>O<EFBFBD>O<EFBFBD> <20> <20>A<EFBFBD> %<25> <20> <10>I<EFBFBD>I<EFBFBD><11>N<EFBFBD>I<EFBFBD><17>:<3A>:<3A><17>Y<EFBFBD>Y<EFBFBD>s<00>>D3<03>A2D3<03>AD3<03>3D<c<00><00>|j5|jj|<01>}|<02>+|jjt j
<00>kr
ddd<01>y|j cddd<01>S#1swYyxYw)zBReturn the number of cache hits associated with the specified key.Nr)r<>r<>r8r<>r<>r<>r<>rs r<00>get_hits_for_keyzLRUCache.get_hits_for_keyDsT<00><00> <11>Y<EFBFBD>Y<EFBFBD><17>9<EFBFBD>9<EFBFBD>=<3D>=<3D><13>%<25>D<EFBFBD><13>|<7C>t<EFBFBD>z<EFBFBD>z<EFBFBD>4<>4<><04> <09> <09> <0B>C<><18><17>Y<EFBFBD>
<1C>y<EFBFBD>y<EFBFBD> <17>Y<EFBFBD>Y<EFBFBD>s<00>A
A5<03> A5<03>5A>r<>c<00>><00>|j5|jj|<01>}|<03>'|j<00>|j|j=t |j<00>|j k\r`|jj}|j<00>|j|j=t |j<00>|j k\r<01>`t||<02>}|j|j<00>||j|<ddd<01>y#1swYyxYwr<>) r<>r<>r8rr<>r%r r r<>r<>r)rr<>r<>r<00>gnodes rr<>z LRUCache.putMs<><00><00><12>Y<EFBFBD>Y<EFBFBD><17>9<EFBFBD>9<EFBFBD>=<3D>=<3D><13>%<25>D<EFBFBD><13><1F><14> <0B> <0B> <0A><18>I<EFBFBD>I<EFBFBD>d<EFBFBD>h<EFBFBD>h<EFBFBD>'<27><15>d<EFBFBD>i<EFBFBD>i<EFBFBD>.<2E>D<EFBFBD>M<EFBFBD>M<EFBFBD>1<><1C> <0A> <0A>*<2A>*<2A><05><15> <0C> <0C><0E><18>I<EFBFBD>I<EFBFBD>e<EFBFBD>i<EFBFBD>i<EFBFBD>(<28><16>d<EFBFBD>i<EFBFBD>i<EFBFBD>.<2E>D<EFBFBD>M<EFBFBD>M<EFBFBD>1<> <20><03>U<EFBFBD>+<2B>D<EFBFBD> <10>O<EFBFBD>O<EFBFBD>D<EFBFBD>M<EFBFBD>M<EFBFBD> *<2A>!<21>D<EFBFBD>I<EFBFBD>I<EFBFBD>c<EFBFBD>N<EFBFBD><17>Y<EFBFBD>Y<EFBFBD>s<00>CD<03>6D<03>Dc<00><><00>|j5|<01>E|jj|<01>}|<02><>|j<00>|j|j=nZ|j
j }||j
k7r.|j }|j<00>|}||j
k7r<01>.i|_ddd<01>y#1swYyxYwr<>)r<>r<>r8rr<>r r)rr<>rrrs rr<>zLRUCache.flushcs<><00><00><12>Y<EFBFBD>Y<EFBFBD><12><EFBFBD><1B>y<EFBFBD>y<EFBFBD>}<7D>}<7D>S<EFBFBD>)<29><04><17>#<23><18>K<EFBFBD>K<EFBFBD>M<EFBFBD><1C> <09> <09>$<24>(<28>(<28>+<2B><1C> <0A> <0A>*<2A>*<2A><05><1B>t<EFBFBD>}<7D>}<7D>,<2C> <20>:<3A>:<3A>D<EFBFBD><19>L<EFBFBD>L<EFBFBD>N<EFBFBD> <20>E<EFBFBD><1C>t<EFBFBD>}<7D>}<7D>,<2C><1F><04> <09><17>Y<EFBFBD>Y<EFBFBD>s<00>BB8<03>(B8<03>8C)i<><69>r)rErFrGrHr<>rr r<>r{r8rr<>r<>rLrMs@rrr s<><00><><00><08>
+<2B><13>
+<2B>$<24>
+<2B>!<21>S<EFBFBD>!<21>T<EFBFBD>!<21>
<1E>x<EFBFBD><1E>F<EFBFBD>T<EFBFBD>M<EFBFBD><1E>8!<21>H<EFBFBD>!<21><13>!<21>"<22>x<EFBFBD>"<22><06>"<22>4<EFBFBD>"<22>,<1F><18>D<EFBFBD><1F><1F>D<EFBFBD>rrc<00><><00>eZdZdZdddej
j ezdejjezdejjezde de d e d
zd d
fd <0C>Z d eejj d
zed
zffd <0A>Zd eej&j(e effd<0E>Zdejj.d
zded
zd eed
ze ffd<11>Zy
)<12> _ResolutionaHelper class for dns.resolver.Resolver.resolve().
All of the "business logic" of resolution is encapsulated in this
class, allowing us to have multiple resolve() implementations
using different I/O schemes without copying all of the
complicated logic.
This class is a "friend" to dns.resolver.Resolver and manipulates
resolver data structures directly.
<20>resolver<65> BaseResolverr4r|r}<00>tcp<63>raise_on_no_answer<65>searchNr(c<00><><00>t|t<00>r tjj |d<00>}tj
j j|<03>}tj
j|<03>rt<00>tjjj|<04>}tjj|<04>rt<00>||_ |j||<07>|_|jdd|_||_||_||_||_i|_tjj,|_g|_g|_g|_d|_d|_d|_d|_d|_y)NF<4E>) r r.r<>r<><00> from_textr<74>r<>r<><00> is_metatypervr<>r<><00> is_metaclassr<00>_get_qnames_to_try<72> qnames_to_tryrr|r}rr<00>nxdomain_responses<65>emptyr4<00> nameservers<72>current_nameserversrRr~<00> tcp_attempt<70>retry_with_tcprm<00>backoff)rrr4r|r}rrrs rrz_Resolution.__init__<5F>s&<00><00> <16>e<EFBFBD>S<EFBFBD> !<21><17>H<EFBFBD>H<EFBFBD>&<26>&<26>u<EFBFBD>d<EFBFBD>3<>E<EFBFBD><14><1D><1D>(<28>(<28>-<2D>-<2D>f<EFBFBD>5<><06> <0E>=<3D>=<3D> $<24> $<24>V<EFBFBD> ,<2C><1F> <1F><15>.<2E>.<2E>+<2B>+<2B>0<>0<><17>9<><07> <0E>><3E>><3E> &<26> &<26>w<EFBFBD> /<2F><1F> <1F> <20><04> <0A>%<25>8<>8<><15><06>G<><04><1A><1A>(<28>(<28><11>+<2B><04> <0B><1C><04> <0B><1E><04> <0C><16><04><08>"4<><04><1F>QS<51><04><1F><18>X<EFBFBD>X<EFBFBD>^<5E>^<5E><04>
<EFBFBD><><3E><04><18>DF<44><04> <20>(*<2A><04> <0B><@<40><04><0F> <20><04><18>#<23><04><1B>8<<3C><04> <0C><1A><04> rc<00>X<00>t|j<00>dkD<00>rq|jjd<01>|_|jj
<00>r*|jj
j |j|j|jf<03>}|<01>2|j<00>"|jrt|j<00><03><00>d|fS|jj
j |jtjj|jf<03>}|<01>Z|jj!<00>tj j"k(r%|j|j$|j<<00><01>ztj&j)|j|j|j<00>}|jj*<00>P|j-|jj.|jj*|jj0<00><04>|j3|jj4|jj6|jj8|jj:<00><05>|jj<<00>|jj<|_|jj?|jj@|jjB|jjD<00>|_#|jjHrtKjL|jF<00>|jFdd|_'g|_(d|_)d|_*d|_+||_,d|_-|dfSt#|j\|j$<00><08><00>) z<>Get the next request to send, and check the cache.
Returns a (request, answer) tuple. At most one of request or
answer will not be None.
rN<>r5)<01> algorithm)<01>optionsFg<46><67><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>?r)/r%r<00>popr4r<00>cacher8r|r}r<>rrer5r<>r<><00>ANY<4E>rcoderr#r<><00>
make_query<EFBFBD>keyname<6D>use_tsig<69>keyring<6E> keyalgorithm<68>use_edns<6E>edns<6E> ednsflags<67>payload<61> ednsoptions<6E>flags<67>_enrich_nameservers<72> _nameservers<72>nameserver_portsrr%<00>rotate<74>random<6F>shuffler&rRr~r'r(rmr)r")rr<>rms r<00> next_requestz_Resolution.next_request<73>s<><00><00><12>$<24>+<2B>+<2B><1E><11>"<22><1D><1B><1B><1F><1F><11>+<2B>D<EFBFBD>J<EFBFBD><14>}<7D>}<7D>"<22>"<22><1D><1D><1D>,<2C>,<2C>0<>0<><19>Z<EFBFBD>Z<EFBFBD><14><1B><1B>d<EFBFBD>l<EFBFBD>l<EFBFBD>;<3B><12><06><1A>%<25><1D>|<7C>|<7C>+<2B><04>0G<30>0G<30>&<26><06><0F><0F>@<40>@<40> $<24>f<EFBFBD>~<7E>-<2D><1D><1D><1D>,<2C>,<2C>0<>0<><19>Z<EFBFBD>Z<EFBFBD><13><1D><1D>!2<>!2<>D<EFBFBD>L<EFBFBD>L<EFBFBD>A<><12><06><1A>%<25>&<26>/<2F>/<2F>*?<3F>*?<3F>*A<>S<EFBFBD>Y<EFBFBD>Y<EFBFBD>EW<45>EW<45>*W<>;A<01>/<2F>/<2F>D<EFBFBD>+<2B>+<2B>D<EFBFBD>J<EFBFBD>J<EFBFBD>7<><1C><1A>k<EFBFBD>k<EFBFBD>,<2C>,<2C>T<EFBFBD>Z<EFBFBD>Z<EFBFBD><14><1B><1B>d<EFBFBD>l<EFBFBD>l<EFBFBD>S<>G<EFBFBD><13>}<7D>}<7D>$<24>$<24>0<><17> <20> <20><18>M<EFBFBD>M<EFBFBD>)<29>)<29><18>M<EFBFBD>M<EFBFBD>)<29>)<29>"<22>m<EFBFBD>m<EFBFBD>8<>8<>!<21><12>
<14> <1C> <1C><14> <0A> <0A>"<22>"<22><14> <0A> <0A>'<27>'<27><14> <0A> <0A>%<25>%<25><1C> <0A> <0A>1<>1<> <1D> <0E> <14>}<7D>}<7D>"<22>"<22>.<2E> $<24> <0A> <0A> 3<> 3<><07> <0A>#<23>}<7D>}<7D>@<40>@<40><14> <0A> <0A>*<2A>*<2A><14> <0A> <0A>.<2E>.<2E><14> <0A> <0A>"<22>"<22> <0E>D<EFBFBD> <1C>
<14>}<7D>}<7D>#<23>#<23><16><0E><0E>t<EFBFBD>/<2F>/<2F>0<>'+<2B>'7<>'7<><01>':<3A>D<EFBFBD> $<24><1C>D<EFBFBD>K<EFBFBD>"<22>D<EFBFBD>O<EFBFBD>$<24>D<EFBFBD> <1C>"'<27>D<EFBFBD> <1F>"<22>D<EFBFBD>L<EFBFBD><1F>D<EFBFBD>L<EFBFBD><1B>T<EFBFBD>?<3F> "<22><17>d<EFBFBD>0<>0<>D<EFBFBD><S<><S<>T<>Trc<00>~<00>|jrG|j<00>J<00>|jj<00>rJ<00>d|_d|_|jddfSd}|jswt |j <00>dk(r!t|j|j<00><05><00>|j dd|_|j}t|jdzd<06>|_
|jjd<03>|_|jxs|jj<00>|_|j|j|fS)NTFrr)rmrR<00>)r(r~<00>is_always_max_sizer'r&r%r%rlrmrRr)<00>minr.r)rr)s r<00>next_nameserverz_Resolution.next_nameserver<65>s<00><00> <0F> <1E> <1E><17>?<3F>?<3F>.<2E> .<2E>.<2E><1B><EFBFBD><EFBFBD>9<>9<>;<3B> ;<3B>;<3B>#<23>D<EFBFBD> <1C>"'<27>D<EFBFBD> <1F><18>O<EFBFBD>O<EFBFBD>T<EFBFBD>1<EFBFBD>-<2D> -<2D><15><07><13>'<27>'<27><12>4<EFBFBD>#<23>#<23>$<24><01>)<29>#<23>D<EFBFBD>L<EFBFBD>L<EFBFBD><14><1B><1B>M<>M<>'+<2B>'7<>'7<><01>':<3A>D<EFBFBD> $<24><1A>l<EFBFBD>l<EFBFBD>G<EFBFBD><1E>t<EFBFBD>|<7C>|<7C>a<EFBFBD>/<2F><11>3<>D<EFBFBD>L<EFBFBD><1E>2<>2<>6<>6<>q<EFBFBD>9<><04><0F><1F>8<EFBFBD>8<EFBFBD>K<>t<EFBFBD><EFBFBD><EFBFBD>'I<>'I<>'K<><04><18><14><0F><0F><14>!1<>!1<>7<EFBFBD>;<3B>;rr5<00>exc <00><> <00>|j<00>J<00>|<02>r1|<01>J<00>|jjt|j<00>|j|jj <00>||f<05>t |tjj<00>s0t |t<00>s t |t<00>st |t<00>r&|jj|j<00>yt |tjj <00>r9|jr&|jj|j<00>yd|_y|<01>J<00>t |tjj$<00>sJ<00>|j'<00>}|tj&j(k(r<> t+|j,|j.|j0||jj3<00>|jj <00><00>}|j6j8rG|j6j8j;|j,|j.|j0f|<04>|j<<00>"|j>rtA|jB<00><03><00>|dfS|tj&jDk(r<> t+|j,tjFjHtjJjL|<01>}||jN|j,<|j6j8rU|j6j8j;|j,tjFjH|j0f|<04>y|tj&jPk(ratQ<00>}|jjt|j<00>|j|jj <00>||f<05>|<06>|tj&jRk7s|j6jTs%|jj|j<00>|jjt|j<00>|j|jj <00>tj&jW|<03>|f<05>y#t4$r<>}|jjt|j<00>|j|jj <00>||f<05>|jj|j<00>Yd}~yd}~wwxYw#t4$r<>}|jjt|j<00>|j|jj <00>||f<05>|jj|j<00>Yd}~yd}~wwxYw)NT)NFr+)NT),r~rRr9r.r'<00> answer_portr r<><00> exception<6F> FormError<6F>EOFError<6F>OSErrorr<72>r%<00>remover<65><00> Truncatedr(r<>r1<00>NOERRORr{r4r|r}<00>answer_nameserverr3rr/r<>r<>rrer5rr<>r0r<><00>INr#rO<00>SERVFAIL<49>retry_servfail<69>to_text)rr5rIr1r<><00>e<>yexs r<00> query_resultz
 <20> <12>c<EFBFBD>i<EFBFBD>i<EFBFBD>(<28>(<28> (<28><1A>*<2A>C<EFBFBD> <10>K<EFBFBD>K<EFBFBD> <1E> <1E><17><04><0F><0F>(<28><18>$<24>$<24><18>O<EFBFBD>O<EFBFBD>/<2F>/<2F>1<><17><1C> <12> <0E><16>I<EFBFBD> <15><03> <09> <09>*<2A>*<2A>*<2A>$<24>-<2D>-<2D>2N<32>2N<32><14> <20> <20>'<27>'<27><04><0F><0F>8<> <10>K<EFBFBD>K<EFBFBD> <1E> <1E><17><04><0F><0F>(<28><18>$<24>$<24><18>O<EFBFBD>O<EFBFBD>/<2F>/<2F>1<><17>I<EFBFBD>I<EFBFBD>%<25>%<25>e<EFBFBD>,<2C><1C> <12> <0E>!<21><>U<1D> %<25><14> <0B> <0B>"<22>"<22><1B>D<EFBFBD>O<EFBFBD>O<EFBFBD>,<2C><1C>(<28>(<28><1C><0F><0F>3<>3<>5<><19> <20> <16><12><15> <20> <20>'<27>'<27><04><0F><0F>8<>$<24><> %<25><>2<1D> %<25><14> <0B> <0B>"<22>"<22><1B>D<EFBFBD>O<EFBFBD>O<EFBFBD>,<2C><1C>(<28>(<28><1C><0F><0F>3<>3<>5<><19> <20> <16><12><15> <20> <20>'<27>'<27><04><0F><0F>8<>$<24><> %<25>s4<00>AR<<00>&AU <00>< U <03>A:U<03>U <03> W<03>A:W<03>W)rErFrGrHr<>r<>r<>r.r<>r<>r<>r<>r<>rr r<>r<>r{rCr~<00>
Nameserverr<EFBFBD>rH<00>Messager3rZrQrrrr|s<00><00> <08>#<1B> <20>#<1B><13>x<EFBFBD>x<EFBFBD>}<7D>}<7D>s<EFBFBD>"<22>#<1B><14> <0A> <0A>'<27>'<27>#<23>-<2D> #<1B>
<15><1E><1E>*<2A>*<2A>S<EFBFBD>0<> #<1B> <12> #<1B>!<21>#<1B><15>t<EFBFBD> <0B>#<1B>
<0E>#<1B>JIU<01> <0E>s<EFBFBD>{<7B>{<7B>'<27>'<27>$<24>.<2E><06><14> <0A>=<3D> ><3E>IU<01>V<<3C><15>s<EFBFBD>~<7E>~<7E>'@<40>'@<40>$<24><05>'M<>!N<><<3C>*z!<21><1B> <0B> <0B>+<2B>+<2B>d<EFBFBD>2<>z!<21>8A<38>D<EFBFBD>8H<38>z!<21> <0E>v<EFBFBD><04>}<7D>d<EFBFBD>"<22> #<23>z!rrc <00>n<00>eZdZUdZej
j ed<ee e
fed<e
ed<e ej
j ed<e ed<e ed<e ed<ed zed
<ej
j e zd zed <ej
j e zed <e
ed <e
ed<e ejj d zed<e
ed<eed<e
d zed<e ed<e ed<e
d zed<ee ej$j&zed< d/de de dd fd<1A>Zd0d<1B>Zdedd fd<1D>Zd0d<1E>Z d1de de d zd e ed zde fd!<21>Zd"ej
j de d zde ej
j fd#<23>Zd ej6j8fd
ed ej
j e zd zd$ej
j e zdd fd%<25>Zd&d&ej<j>d fd e
e zd zde
de
d'e ejj d zdd f
d(<28>Z de
dd fd)<29>Z!e"d*ee ej$j&zdee e
fd+e
de ej$j&fd,<2C><04>Z#e$dee ej$j&zfd-<2D><04>Z%e%jLd*ee ej$j&zdd fd.<2E><04>Z%y )2rr<00>domainr?rr<00>use_search_by_defaultr[<00>lifetimeNr5r3r6r8r9r;r:r/r<rVr@<00>ndotsr><00>filename<6D> configurer(c<00><><00>|j<00>|r9tjdk(r|j<00>y|r|j |<01>yyy)a<>*filename*, a ``str`` or file object, specifying a file
in standard /etc/resolv.conf format. This parameter is meaningful
only when *configure* is true and the platform is POSIX.
*configure*, a ``bool``. If True (the default), the resolver
instance is configured in the normal fashion for the operating
system the resolver is running on. (I.e. by reading a
/etc/resolv.conf file on POSIX systems and from the registry
on Windows systems.)
r N)r<><00>sys<79>platform<72> read_registry<72>read_resolv_conf)rrbrcs rrzBaseResolver.__init__<5F>sC<00><00> <0A>
<EFBFBD>
<EFBFBD> <0C> <14><12>|<7C>|<7C>w<EFBFBD>&<26><14>"<22>"<22>$<24><19><14>%<25>%<25>h<EFBFBD>/<2F><1A> rc<00>X<00>tjjtjjt j
<00><00>dd<00>|_t|j <00>dk(rtjj|_g|_ i|_
d|_ g|_ d|_ d|_d|_d|_d|_tj$j&|_d|_d|_d|_d|_d|_d|_d|_d|_d|_y) z1Reset all resolver configuration to the defaults.r*Nr<00>5Fg@<40>@rZ)r<>r<>r<>rr<><00> gethostnamer^r%<00>rootr>r?rrr_r[r`r5r3<00>tsig<69>default_algorithmr6r8r9r;r:r/r<rVr@rarBs rr<>zBaseResolver.reset<65>s<><00><00><1A>h<EFBFBD>h<EFBFBD>m<EFBFBD>m<EFBFBD>C<EFBFBD>H<EFBFBD>H<EFBFBD>$6<>$6<>v<EFBFBD>7I<37>7I<37>7K<37>$L<>Q<EFBFBD>R<EFBFBD>$P<>Q<><04> <0B> <0E>t<EFBFBD>{<7B>{<7B> <1B>q<EFBFBD> <20><1D>(<28>(<28>-<2D>-<2D>D<EFBFBD>K<EFBFBD><1E><04><19> "<22><04><1D><16><04> <09><18><04> <0B>%*<2A><04>"<22><1A><04> <0C><1B><04> <0A><1B><04> <0C><1B><04> <0C><1F>H<EFBFBD>H<EFBFBD>6<>6<><04><19><16><04> <09><1A><04><0E><1F><04><18><18><04> <0C><19><04>
<EFBFBD><19><04>
<EFBFBD>#<23><04><1B><1B><04> <0B><19><04>
r<00>fc<00>P<00>g}t|t<00>r t|d<01><02>}nt j |<01>}|5}|D<00>]m}t|<04>dk(s|ddk(s|ddk(r<01>#|j<00>}t|<05>dkr<01>B|ddk(r|j|d <00><00>_|dd
k(r/tjj|d <00>|_ g|_<00><>|dd k(rJg|_|d d D]:}|jjtjj|<06><00><00><<00><>|dd k(s<01><>|d d D]u}|dk(rd|_<00>|dk(r|j!<00><00>&d|vr$ t#|jd<12>d <00>|_<00>Nd|vs<01>S t#|jd<12>d <00>|_<00>w<00><01>p d d d <0C>t|<02>dk(r t d<14><00>||_y #t$rt d|<01><00><02><00>wxYw#t&t(f$rY<00><>wxYw#t&t(f$rY<00><>wxYw#1swY<00>oxYw)a<>Process *f* as a file in the /etc/resolv.conf format. If f is
a ``str``, it is used as the name of the file to open; otherwise it
is treated as the file itself.
Interprets the following items:
- nameserver - name server IP address
- domain - local domain name
- search - search list for host-name lookup
- options - supported options are rotate, timeout, edns0, and ndots
zutf-8)<01>encodingz cannot open r<00>#<23>;rEr~r*r^rNr-r@T<>edns0r[<00>:razno nameservers)r r.<00>openrOry<00>
contextlib<EFBFBD> nullcontextr%<00>splitr9r<>r<>rr^rr@r7r<>r[<00>
ValueErrorr<EFBFBD>rar%)rrpr%<00>cm<63>l<>tokens<6E>suffix<69>opts rrhzBaseResolver.read_resolv_conf<6E>s&<00><00>"<19> <0B> <15>a<EFBFBD><13> <1D> B<01>8<<3C>Q<EFBFBD><17>8Q<38><02>
<1C>'<27>'<27><01>*<2A>B<EFBFBD> <0F>1<EFBFBD><16><01><16>q<EFBFBD>6<EFBFBD>Q<EFBFBD>;<3B>!<21>A<EFBFBD>$<24>#<23>+<2B><11>1<EFBFBD><14><13><1B><1C><1A><17><17><19><06><17>v<EFBFBD>;<3B><11>?<3F><1C><19>!<21>9<EFBFBD> <0C>,<2C><1F>&<26>&<26>v<EFBFBD>a<EFBFBD>y<EFBFBD>1<><1B>A<EFBFBD>Y<EFBFBD>(<28>*<2A>"%<25>(<28>(<28>"4<>"4<>V<EFBFBD>A<EFBFBD>Y<EFBFBD>"?<3F>D<EFBFBD>K<EFBFBD>"$<24>D<EFBFBD>K<EFBFBD><1B>A<EFBFBD>Y<EFBFBD>(<28>*<2A>"$<24>D<EFBFBD>K<EFBFBD>"(<28><11><12>*<2A><06><1C> <0B> <0B>*<2A>*<2A>3<EFBFBD>8<EFBFBD>8<EFBFBD>+=<3D>+=<3D>f<EFBFBD>+E<>F<>#-<2D><1C>A<EFBFBD>Y<EFBFBD>)<29>+<2B>%<25>a<EFBFBD>b<EFBFBD>z<EFBFBD><03><1E>(<28>?<3F>*.<2E>D<EFBFBD>K<EFBFBD> <20>G<EFBFBD>^<5E> <20>M<EFBFBD>M<EFBFBD>O<EFBFBD>&<26>#<23>-<2D>%<25>/2<>3<EFBFBD>9<EFBFBD>9<EFBFBD>S<EFBFBD>><3E>!<21>3D<33>/E<><04> <0C>%<25><03>^<5E>%<25>-0<><13><19><19>3<EFBFBD><1E><01>1B<31>-C<><04>
<EFBFBD> *<2A>/<17><10>N <0F>{<7B> <1B>q<EFBFBD> <20>)<29>*:<3A>;<3B> ;<3B>'<27><04><18><>a<1B> B<01>-<2D> <0C>Q<EFBFBD>C<EFBFBD>.@<40>A<>A<> B<01><>J%/<2F>
<EFBFBD>#;<3B>%<25> $<24>%<25><>
%/<2F>
<EFBFBD>#;<3B>%<25> $<24>%<25><>K<10>R<EFBFBD>se<00> G<00>C3H<03>-/H<03>"G2<06>?H<03>"H<06>(H<03>G/<03>2H <09>H<03>H <09>H<03>H <09>H<03>H <09>H<03>H%c<00><><00> tjj<00>}|j<00>|j|_|j|_|j
|_y#t $rt<00>wxYw)z9Extract resolver configuration from the Windows registry.N)r<><00> win32util<69> get_dns_infor^r%rr$r<>)r<00>infos rrgzBaseResolver.read_registrys\<00><00> &<26><16>=<3D>=<3D>-<2D>-<2D>/<2F>D<EFBFBD><13>{<7B>{<7B>&<26>"<22>k<EFBFBD>k<EFBFBD><04> <0B>#<23>/<2F>/<2F>D<EFBFBD> <1C><1E>+<2B>+<2B>D<EFBFBD>K<EFBFBD><4B><1D> &<26>%<25> %<25> &<26>s <00>AA <00> A0<03>startrRc<00><><00>|<02> |jn|}tj<00>}||z
}|<03>g}|dkr|dkr t||<03><03><00>d}||k\r t||<03><03><00>t||z
|j<00>S)NrrZr_)r`r<>rYrGr[)rr<>r`rRr<><00>durations r<00>_compute_timeoutzBaseResolver._compute_timeout's<00><00> %-<2D>$4<>4<EFBFBD>=<3D>=<3D>(<28><08><12>i<EFBFBD>i<EFBFBD>k<EFBFBD><03><16><15>;<3B><08> <11>><3E><17>F<EFBFBD> <13>a<EFBFBD><<3C><17>"<22>}<7D>%<25>h<EFBFBD>v<EFBFBD>F<>F<>
<1D><08> <13>x<EFBFBD> <1F>!<21>(<28>6<EFBFBD>B<> B<><12>8<EFBFBD>h<EFBFBD>&<26><04> <0C> <0C>5<>5rr4c<00><><00>|<02> |j}g}|j<00>r|j|<01>|S|jtj
j <00>}|r<>t|j<00>dkDr|jdd}nC|jtj
j k7r|j<00>|jg}ng}|j<00>d}n |j}|D]}|j||z<00><00>t|<01>|kDr|jd|<04>|S|j|<04>|S|j|<04>|S)Nrr*) r_<00> is_absoluter9<00> concatenater<65>r<>rmr%rr^ra<00>insert)rr4rr"<00> abs_qname<6D> search_listrars rr!zBaseResolver._get_qnames_to_try?s-<00><00>
<12>><3E><19>/<2F>/<2F>F<EFBFBD><1A> <0A> <10> <1C> <1C> <1E> <19> <20> <20><15> '<27><<1D><1C>9<1E>)<29>)<29>#<23>(<28>(<28>-<2D>-<2D>8<>I<EFBFBD><15><16>t<EFBFBD>{<7B>{<7B>#<23>a<EFBFBD>'<27>"&<26>+<2B>+<2B>a<EFBFBD>.<2E>K<EFBFBD><19>[<5B>[<5B>C<EFBFBD>H<EFBFBD>H<EFBFBD>M<EFBFBD>M<EFBFBD>1<>d<EFBFBD>k<EFBFBD>k<EFBFBD>6M<36>$(<28>;<3B>;<3B>-<2D>K<EFBFBD>"$<24>K<EFBFBD><17>:<3A>:<3A>%<25><1D>E<EFBFBD> <20>J<EFBFBD>J<EFBFBD>E<EFBFBD>)<29>F<EFBFBD>!<21>(<28>(<28><15><16><1E>8<>*<2A><16>u<EFBFBD>:<3A><05>%<25>"<22>(<28>(<28><11>I<EFBFBD>6<><1D><1C>"<22>(<28>(<28><19>3<><1D><1C><1E>$<24>$<24>Y<EFBFBD>/<2F><1C>rr,c<00>.<00>||_||_||_y)z<>Add a TSIG signature to each query.
The parameters are passed to ``dns.message.Message.use_tsig()``;
see its documentation for details.
N)r5r3r6)rr5r3r,s rr4zBaseResolver.use_tsighs<00><00><1F><04> <0C><1E><04> <0C>%<25><04>rrr-c<00>Z<00>|<01>|durd}n|durd}||_||_||_||_y)a<>Configure EDNS behavior.
*edns*, an ``int``, is the EDNS level to use. Specifying
``None``, ``False``, or ``-1`` means "do not use EDNS", and in this case
the other parameters are ignored. Specifying ``True`` is
equivalent to specifying 0, i.e. "use EDNS0".
*ednsflags*, an ``int``, the EDNS flag values.
*payload*, an ``int``, is the EDNS sender's payload field, which is the
maximum size of UDP datagram the sender can handle. I.e. how big
a response to this message can be.
*options*, a list of ``dns.edns.Option`` objects or ``None``, the EDNS
options.
NFrZTr)r8r9r:r;)rr8r9r:r-s rr7zBaseResolver.use_ednsxs=<00><00>0 <10><<3C>4<EFBFBD>5<EFBFBD>=<3D><15>D<EFBFBD> <11>T<EFBFBD>\<5C><14>D<EFBFBD><18><04> <09>"<22><04><0E><1E><04> <0C>"<22><04>rc<00><00>||_y)zkOverrides the default flags with your own.
*flags*, an ``int``, the message flags to use.
N)r<)rr<s r<00> set_flagszBaseResolver.set_flags<67>s <00><00> <1B><04>
rr%<00> default_portc<00>@<00>g}t|ttz<00>r<>|D]<5D>}t|tjj
<00>r|}n<>tj j|<05>r3|j||<03>}tjj||<07>}n? t|<05>jdk7rt<00> tjj|<05>}|j!|<06><00><>|Stdt#|<01><00>d<05><03><00>#t$rtd|<05>d<03><03><00>wxYw)N<>httpsz nameserver z\ is not a dns.nameserver.Nameserver instance or text form, IP address, nor a valid https URLz+nameservers must be a list or tuple (not a <20>))r r!r"r<>r~r[<00>inet<65>
is_addressr8<00>Do53Nameserverr <00>schemer<65>r3r{<00> DoHNameserverr9<00>type)r<>r%r?r<><00>enriched_nameserversr~<00>enriched_nameserverrs rr=z BaseResolver._enrich_nameservers<72>s<00><00> "<22><1C> <15>k<EFBFBD>4<EFBFBD>%<25><<3C> 0<>)<29>
<EFBFBD><1D>j<EFBFBD>#<23>.<2E>.<2E>*C<>*C<>D<>*4<>'<27><18>X<EFBFBD>X<EFBFBD>(<28>(<28><1A>4<>+<2B>/<2F>/<2F>
<EFBFBD>L<EFBFBD>I<>D<EFBFBD>*-<2D>.<2E>.<2E>*G<>*G<>"<22>D<EFBFBD>+<16>'<27><1A>#<23>J<EFBFBD>/<2F>6<>6<>'<27>A<>"5<>5<>B<01>+.<2E>.<2E>.<2E>*F<>*F<>z<EFBFBD>*R<>'<27>$<24>+<2B>+<2B>,?<3F>@<40>)*<2A>2$<24>#<23><1D>=<3D>d<EFBFBD>;<3B>>O<>=P<>PQ<50>R<><0E> <0E><>%<25><1A>(<28>)<29>*<2A><1C>6@<01>@<01><1A><1A><1A>s <00>D<02>Dc<00><00>|jSr)r>rBs rr%zBaseResolver.nameservers<72>s<00><00><14> <20> <20> rc<00>`<00>|j||j|j<00>||_y)a
*nameservers*, a ``list`` or ``tuple`` of nameservers, where a nameserver is either
a string interpretable as a nameserver, or a ``dns.nameserver.Nameserver``
instance.
Raises ``ValueError`` if *nameservers* is not a list of nameservers.
N)r=r?rr>)rr%s rr%zBaseResolver.nameservers<72>s(<00><00> <0A> <20> <20><1B>d<EFBFBD>.C<>.C<>T<EFBFBD>Y<EFBFBD>Y<EFBFBD>O<>'<27><04>r)z/etc/resolv.confTr<54>r<>)'rErFrGrHr<>r<>r<><00>__annotations__rr.r<>rr<>r<>rr8<00>Optionrr~r[rr<>rhrg<00>
ErrorTupler<EFBFBD>r!rnror4r<><00>DEFAULT_EDNS_PAYLOADr7r<>r<>r=rKr%<00>setterrQrrrr<00>sN<00><00><1C> <10>H<EFBFBD>H<EFBFBD>M<EFBFBD>M<EFBFBD><19><1A>3<EFBFBD><03>8<EFBFBD>n<EFBFBD>$<24>
<0A>I<EFBFBD> <10><13><18><18><1D><1D> <1F><1F><1F><1F> <12>N<EFBFBD><13>O<EFBFBD> <10>4<EFBFBD>Z<EFBFBD><17> <10>X<EFBFBD>X<EFBFBD>]<5D>]<5D>S<EFBFBD> <20>4<EFBFBD> '<27>'<27><15>(<28>(<28>-<2D>-<2D>#<23>%<25>%<25>
<0A>I<EFBFBD><12>N<EFBFBD><15>c<EFBFBD>h<EFBFBD>h<EFBFBD>o<EFBFBD>o<EFBFBD>&<26><14>-<2D>-<2D> <10>L<EFBFBD> <0E>J<EFBFBD> <0E><14>:<3A><15><18><18> <10>L<EFBFBD> <0E><14>:<3A><15><1A>3<EFBFBD><13><1E><1E>!:<3A>!:<3A>:<3A>;<3B>;<3B>EI<01>0<><1B>0<>=A<>0<> <0A>0<>*<1A>4E'<27>#<23>E'<27>$<24>E'<27>N &<26>"&<26>*.<2E> 6<><14>6<><18>$<24>,<2C>6<><15>Z<EFBFBD> <20>4<EFBFBD>'<27> 6<>
<0F> 6<>0'<1D><18>X<EFBFBD>X<EFBFBD>]<5D>]<5D>'<1D>,0<>4<EFBFBD>K<EFBFBD>'<1D> <0A>c<EFBFBD>h<EFBFBD>h<EFBFBD>m<EFBFBD>m<EFBFBD> <1C>'<1D>X/3<>),<2C><18><18>)C<>)C<> &<26><14>&<26><15><18><18><1D><1D><13>$<24>t<EFBFBD>+<2B>&<26><17>8<EFBFBD>8<EFBFBD>=<3D>=<3D>3<EFBFBD>&<26> &<26>
<0E> &<26>$#$<24><1A><1A>{<7B>{<7B>7<>7<>04<30> #<23><11>D<EFBFBD>j<EFBFBD>4<EFBFBD><1F>#<23><17>#<23><15> #<23>
<16>c<EFBFBD>h<EFBFBD>h<EFBFBD>o<EFBFBD>o<EFBFBD>&<26><14>-<2D> #<23>
<0E> #<23>B<1B>s<EFBFBD><1B>t<EFBFBD><1B><11>!$<24><1D>c<EFBFBD>C<EFBFBD>N<EFBFBD>N<EFBFBD>$=<3D>$=<3D>=<3D>><3E>!$<24><1F>s<EFBFBD>C<EFBFBD>x<EFBFBD>.<2E>!$<24><1A> !$<24>
<0E>c<EFBFBD>n<EFBFBD>n<EFBFBD>'<27>'<27> (<28> !$<24><11>!$<24>F<0E>!<21> <11>#<23><03><0E><0E>1<>1<>1<> 2<>!<21><0E>!<21>
<11><17><17> (<28>#<23>C<EFBFBD>#<23>.<2E>.<2E>*C<>*C<>$C<>D<> (<28> <0A> (<28><18> (rrc<00>N<00>eZdZdZej
j ejjddddddfdejje zdej
je zdejje zd ed
e dzd ed ed edzdedzdefd<10>Zej
j ejjdddddfdejje zdej
je zdejje zd ed
e dzd ed ed edzdefd<11>Zde dededefd<15>Zej.fdejje zdededefd<18>Zdejje zdejjfd<19>Zdd eddfd<1A>Zy)<1C>ResolverrFNTrr4r|r}r<00>sourcer<00> source_portr`rr(c
<00><><00>t||||||| <09>}
tj<00>} |
j<00>\} } | <0A>| S| <0C>J<00>d}|s{|
j<00>\}}}|rtj|<10>|j | ||
j <00>} |j| ||||<04><03>}|
j|d<01>\} }| <0A>| S|s<01>{<7B><>#t$r}|
jd|<13>\}}Yd}~<13><>d}~wwxYw)a<>Query nameservers to find the answer to the question.
The *qname*, *rdtype*, and *rdclass* parameters may be objects
of the appropriate type, or strings that can be converted into objects
of the appropriate type.
*qname*, a ``dns.name.Name`` or ``str``, the query name.
*rdtype*, an ``int`` or ``str``, the query type.
*rdclass*, an ``int`` or ``str``, the query class.
*tcp*, a ``bool``. If ``True``, use TCP to make the query.
*source*, a ``str`` or ``None``. If not ``None``, bind to this IP
address when making queries.
*raise_on_no_answer*, a ``bool``. If ``True``, raise
``dns.resolver.NoAnswer`` if there's no answer to the question.
*source_port*, an ``int``, the port from which to send the message.
*lifetime*, a ``float``, how many seconds a query should run
before timing out.
*search*, a ``bool`` or ``None``, determines whether the
search list configured in the system's resolver configuration
are used for relative names, and whether the resolver's domain
may be added to relative names. The default is ``None``,
which causes the value of the resolver's
``use_search_by_default`` attribute to be used.
Raises ``dns.resolver.LifetimeTimeout`` if no answers could be found
in the specified lifetime.
Raises ``dns.resolver.NXDOMAIN`` if the query name does not exist.
Raises ``dns.resolver.YXDOMAIN`` if the query name is too long after
DNAME substitution.
Raises ``dns.resolver.NoAnswer`` if *raise_on_no_answer* is
``True`` and the query name exists but has no RRset of the
desired type and class.
Raises ``dns.resolver.NoNameservers`` if no non-broken
nameservers are available to answer the question.
Returns a ``dns.resolver.Answer`` instance.
NF)r[r<>r<>r )
rr<>rCrH<00>sleepr<70>rRrhr3rZ)rr4r|r}rr<>rr<>r`r<00>
resolutionr<EFBFBD>rmr<><00>doner~r)r[r5rI<00>_s r<00>resolvezResolver.resolve<76>s$<00><00>~!<21> <10>%<25><16><17>#<23>/A<>6<EFBFBD>
<EFBFBD>
<EFBFBD><15> <09> <09> <0B><05><12> *<2A> 7<> 7<> 9<> <1D>W<EFBFBD>f<EFBFBD>
<16>!<21><1D> <0A><1A>&<26> &<26>&<26><18>D<EFBFBD><1A>-7<>-G<>-G<>-I<>*<2A><1A>S<EFBFBD>'<27><1A><18>J<EFBFBD>J<EFBFBD>w<EFBFBD>'<27><1E>/<2F>/<2F><05>x<EFBFBD><1A>AR<41>AR<41>S<><07>
<1D>)<29>/<2F>/<2F><1F> '<27>%<25>$/<2F>!$<24> 0<> <16>H<EFBFBD>",<2C>!8<>!8<><18>4<EFBFBD>!H<><0E><16><14>
<1A>%<25>!<21>M<EFBFBD>-<1B><13><>0!<21><1D> *<2A> 7<> 7<><04>b<EFBFBD> A<>I<EFBFBD>Q<EFBFBD><04><1C><><1D>s<00>C<00> C*<03> C%<03>%C*c <00>l<00>tjdtd<02><03>|j||||||||d<04> S)a$Query nameservers to find the answer to the question.
This method calls resolve() with ``search=True``, and is
provided for backwards compatibility with prior versions of
dnspython. See the documentation for the resolve() method for
further details.
z2please use dns.resolver.Resolver.resolve() insteadrE<00><01>
stacklevelT<EFBFBD><04>warnings<67>warn<72>DeprecationWarningr<67>) rr4r|r}rr<>rr<>r`s rrhzResolver.queryDsG<00><00>$ <11> <0A> <0A> @<40> <1E><18>
<EFBFBD>
<14>|<7C>|<7C> <11> <12> <13> <0F> <12> <1E> <17> <14> <10>

<EFBFBD>
r<00>ipaddrrrc<00><00>i}|j|<03>tjj|d<tjj
|d<|j tjj|<01>g|<02><01>i|<04><01>S)a<>Use a resolver to run a reverse query for PTR records.
This utilizes the resolve() method to perform a PTR lookup on the
specified IP address.
*ipaddr*, a ``str``, the IPv4 or IPv6 address you want to get
the PTR record for.
All other arguments that can be passed to the resolve() function
except for rdtype and rdclass are also supported by this
function.
r|r}) <09>updater<65>r<><00>PTRr<52>rTr<><00> reversename<6D> from_address)rr<>rr<00>modified_kwargss r<00>resolve_addresszResolver.resolve_addressgst<00><00> +-<2D><0F><17><1E><1E>v<EFBFBD>&<26>$'<27>M<EFBFBD>M<EFBFBD>$5<>$5<><0F><08>!<21>%(<28>^<5E>^<5E>%6<>%6<><0F> <09>"<22><1B>t<EFBFBD>|<7C>|<7C> <0F>O<EFBFBD>O<EFBFBD> (<28> (<28><16> 0<>
<EFBFBD>37<EFBFBD>
<EFBFBD>;J<>
<EFBFBD>
rr<>r<>c <00><00>i}|j|<03>|jdd<02>tjj|d<|t
j k(rB|j|tjjfi|<04><01>}tj|<05><04>S|t
jk(rB|j|tjjfi|<04><01>}tj|<06><05>S|t
jk7rtd|<02><00><02><00>|jdd<08>}|jd d<02>}t!j <00>} |j|tjjfd
|j#| |<08>d <0B>|<04><01>}|j$}|j|tjjfd
|j#| |<08>d <0B>|<04><01>}tj||| <00> <0C>}
|
st'|j(<00> <0A><00>|
S)aUse a resolver to query for address records.
This utilizes the resolve() method to perform A and/or AAAA lookups on
the specified name.
*qname*, a ``dns.name.Name`` or ``str``, the name to resolve.
*family*, an ``int``, the address family. If socket.AF_UNSPEC
(the default), both A and AAAA records will be retrieved.
All other arguments that can be passed to the resolve() function
except for rdtype and rdclass are also supported by this
function.
r|Nr})r<>)r<>r<>rTr`F)rr`)r<>r<>r<>r+)r<>r.r<>r<>rTr<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r4rer5) rr<>r<>rr<>r<>r<>rr`r<>r<>s r<00> resolve_namezResolver.resolve_names<><00><00>.+-<2D><0F><17><1E><1E>v<EFBFBD>&<26><17><1B><1B>H<EFBFBD>d<EFBFBD>+<2B>%(<28>^<5E>^<5E>%6<>%6<><0F> <09>"<22> <11>V<EFBFBD>^<5E>^<5E> #<23><1D><14><1C><1C>d<EFBFBD>C<EFBFBD>M<EFBFBD>M<EFBFBD>O<EFBFBD>O<EFBFBD>G<><EFBFBD>G<>B<EFBFBD><1E>#<23>#<23>r<EFBFBD>#<23>*<2A> *<2A> <13>v<EFBFBD><EFBFBD><EFBFBD> &<26><1D><14><1C><1C>d<EFBFBD>C<EFBFBD>M<EFBFBD>M<EFBFBD>$6<>$6<>J<>/<2F>J<>B<EFBFBD><1E>#<23>#<23>r<EFBFBD>#<23>*<2A> *<2A> <13>v<EFBFBD>'<27>'<27> '<27>%<25>(?<3F><06>x<EFBFBD>&H<>I<> I<>,<2C>0<>0<>1E<31>t<EFBFBD>L<><1A>"<22>&<26>&<26>z<EFBFBD>4<EFBFBD>8<><08><14> <09> <09> <0B><05> <19>T<EFBFBD>\<5C>\<5C> <10> <0F>M<EFBFBD>M<EFBFBD> <1E> <1E>
<EFBFBD> %<25><19>*<2A>*<2A>5<EFBFBD>(<28>;<3B> 
<EFBFBD>
<1E> 
<EFBFBD><02><12>x<EFBFBD>x<EFBFBD><04> <19>T<EFBFBD>\<5C>\<5C> <10> <0F>M<EFBFBD>M<EFBFBD>O<EFBFBD>O<EFBFBD>
<EFBFBD> %<25><19>*<2A>*<2A>5<EFBFBD>(<28>;<3B> 
<EFBFBD>
<1E> 
<EFBFBD><02><1E>"<22>"<22>b<EFBFBD>R<EFBFBD>?Q<>;Q<>"<22>R<><07><16><1A>B<EFBFBD>K<EFBFBD>K<EFBFBD>0<> 0<><16>rc<00><><00> |j|d<01><02>}|j}|S#t$r}|j}Yd}~|Sd}~wwxYw)a<>Determine the canonical name of *name*.
The canonical name is the name the resolver uses for queries
after all CNAME and DNAME renamings have been applied.
*name*, a ``dns.name.Name`` or ``str``, the query name.
This method can raise any exception that ``resolve()`` can
raise, other than ``dns.resolver.NoAnswer`` and
``dns.resolver.NXDOMAIN``.
Returns a ``dns.name.Name``.
F)rN)r<>r2r)rr<>r<>r2rXs rr2zResolver.canonical_name<6D>sO<00><00> .<2E><19>\<5C>\<5C>$<24>5<EFBFBD>\<5C>A<>F<EFBFBD>#<23>2<>2<>N<EFBFBD><1E><1D><><18> .<2E><1E>-<2D>-<2D>N<EFBFBD><1D><1D><> .<2E>s<00>#<00> A<03> ><03>Ac<00>T<00> tj<00>|z}|jtjjd|<01><02>}tj
j |<02>}tjj||<04>}t|<05>dkDr||_ yy#t$rYywxYw)a<>Try to update the resolver's nameservers using Discovery of Designated
Resolvers (DDR). If successful, the resolver will subsequently use
DNS-over-HTTPS or DNS-over-TLS for future queries.
*lifetime*, a float, is the maximum time to spend attempting DDR. The default
is 5 seconds.
If the SVCB query is successful and results in a non-empty list of nameservers,
then the resolver's nameservers are set to the returned servers in priority
order.
The current implementation does not use any address hints from the SVCB record,
nor does it resolve addresses for the SCVB target name, rather it assumes that
the bootstrap nameserver will always be one of the addresses and uses it.
A future revision to the code may offer fuller support. The code verifies that
the bootstrap nameserver is in the Subject Alternative Name field of the
TLS certficate.
<20>SVCB<43>r`rN) r<>r<>r<><00>_ddr<64>_local_resolver_namerh<00>
_remaining<EFBFBD>_get_nameservers_syncr%r%r3)rr`r<>r<>r[r%s r<00>try_ddrzResolver.try_ddr<64>s<><00><00>&
<11><1D><19><19><1B>x<EFBFBD>/<2F>J<EFBFBD><19>\<5C>\<5C><13><08><08>-<2D>-<2D>v<EFBFBD><08>"<22><0E>F<EFBFBD><1A>i<EFBFBD>i<EFBFBD>*<2A>*<2A>:<3A>6<>G<EFBFBD><1D>(<28>(<28>8<>8<><16><17>I<>K<EFBFBD><12>;<3B><1F>!<21>#<23>#.<2E><04> <20>$<24><><18> <11> <10> <11>s<00>BB<00> B'<03>&B'<03>rk)rErFrGrHr<>r<>r<>r<>rTr<>r<>r.r<>r<>r<>r<>r<>r{r<>rhrr<>r<>r<>r<>r<>r2r<>rQrrr<>r<><00>s5<00><00><1C>
14<31> <0A> <0A><0F><0F>36<33>><3E>><3E>3D<33>3D<33><19>!<21>#'<27><1C>!%<25>"<22>d"<22><12>x<EFBFBD>x<EFBFBD>}<7D>}<7D>s<EFBFBD>"<22>d"<22><14> <0A> <0A>'<27>'<27>#<23>-<2D>d"<22><15><1E><1E>*<2A>*<2A>S<EFBFBD>0<> d"<22>
<12> d"<22> <14>d<EFBFBD>
<EFBFBD> d"<22>!<21>d"<22><19>d"<22><18>$<24>,<2C>d"<22><15>t<EFBFBD> <0B>d"<22>
<10>d"<22>R14<31> <0A> <0A><0F><0F>36<33>><3E>><3E>3D<33>3D<33><19>!<21>#'<27><1C>!%<25>!
<EFBFBD><12>x<EFBFBD>x<EFBFBD>}<7D>}<7D>s<EFBFBD>"<22>!
<EFBFBD><14> <0A> <0A>'<27>'<27>#<23>-<2D>!
<EFBFBD><15><1E><1E>*<2A>*<2A>S<EFBFBD>0<> !
<EFBFBD>
<12> !
<EFBFBD> <14>d<EFBFBD>
<EFBFBD> !
<EFBFBD>!<21>!
<EFBFBD><19>!
<EFBFBD><18>$<24>,<2C>!
<EFBFBD>
<10>!
<EFBFBD>F
<EFBFBD>c<EFBFBD>
<EFBFBD>#<23>
<EFBFBD><13>
<EFBFBD><16>
<EFBFBD>6<1D>&<26>&<26>?<17><11>h<EFBFBD>h<EFBFBD>m<EFBFBD>m<EFBFBD>c<EFBFBD>!<21>?<17><14>?<17><16> ?<17>
<15> ?<17>F<1E>3<EFBFBD>8<EFBFBD>8<EFBFBD>=<3D>=<3D>3<EFBFBD>#6<><1E>3<EFBFBD>8<EFBFBD>8<EFBFBD>=<3D>=<3D><1E>.<11><05><11><04>rr<><00>default_resolverc<00>><00>t<00>
t<00>t<00>J<00>tS)z7Get the default resolver, initializing it if necessary.)r<><00>reset_default_resolverrQrr<00>get_default_resolverr<72><00>s <00><00><17><1F><1E> <20> <1B> '<27>'<27> '<27> <1B>rc<00><00>t<00>ay)z<>Re-initialize default resolver.
Note that the resolver configuration (i.e. /etc/resolv.conf on UNIX
systems) will be re-read immediately.
N)r<>r<>rQrrr<>r<>s <00><00> <20>z<EFBFBD>rFTr4r|r}rr<>rr<>r`rc <00>D<00>t<00>j|||||||||<08> S)z<>Query nameservers to find the answer to the question.
This is a convenience function that uses the default resolver
object to make the query.
See ``dns.resolver.Resolver.resolve`` for more information on the
parameters.
)r<>r<>) r4r|r}rr<>rr<>r`rs rr<>r<>s5<00><00>( <20> !<21> )<29> )<29> <0A><0E><0F> <0B><0E><1A><13><10><0E>
<06>
rc <00>`<00>tjdtd<02><03>t||||||||d<04> S)aQuery nameservers to find the answer to the question.
This method calls resolve() with ``search=True``, and is
provided for backwards compatibility with prior versions of
dnspython. See the documentation for the resolve() method for
further details.
z)please use dns.resolver.resolve() insteadrEr<>Tr<54>)r4r|r}rr<>rr<>r`s rrhrh1sC<00><00>" <0A>M<EFBFBD>M<EFBFBD>3<>5G<35>TU<54><06> <13> <0A><0E><0F> <0B><0E><1A><13><10> <0C>
<06>
rr<>rrc<00>><00>t<00>j|g|<01><01>i|<02><01>S)z<>Use a resolver to run a reverse query for PTR records.
See ``dns.resolver.Resolver.resolve_address`` for more information on the
parameters.
)r<>r<>)r<>rrs rr<>r<>Rs%<00><00> 2<> <1F> !<21> 1<> 1<>&<26> J<>4<EFBFBD> J<>6<EFBFBD> J<>Jrr<>r<>c <00>:<00>t<00>j||fi|<02><01>S)z<>Use a resolver to query for address records.
See ``dns.resolver.Resolver.resolve_name`` for more information on the
parameters.
)r<>r<>)r<>r<>rs rr<>r<>\s"<00><00> /<2F> <1F> !<21> .<2E> .<2E>t<EFBFBD>V<EFBFBD> F<>v<EFBFBD> F<>Frc<00>4<00>t<00>j|<00>S)z<>Determine the canonical name of *name*.
See ``dns.resolver.Resolver.canonical_name`` for more information on the
parameters and possible exceptions.
)r<>r2<00>r<>s rr2r2hs<00><00> <20> !<21> 0<> 0<><14> 6<>6rc<00>4<00>t<00>j|<00>S)aTry to update the default resolver's nameservers using Discovery of Designated
Resolvers (DDR). If successful, the resolver will subsequently use
DNS-over-HTTPS or DNS-over-TLS for future queries.
See :py:func:`dns.resolver.Resolver.try_ddr` for more information.
)r<>r<>r<>s rr<>r<>rs<00><00> <20> !<21> )<29> )<29>(<28> 3<>3rrc<00>v<00>t|t<00>r8tjj |tjj
<00>}|<03>
t <00>}|j<00>s t|<00><00>tj<00>}|<04>||z}nd} |<06>|tj<00>z
}|dkrd}nd}|j|tjj|||<07><03>}|j<00>J<00>|jj|k(r|S |j1<00>}<00><>#ttf$r<>} t| t<00>r | j!<00>j#|<00>}
n| j%<00>}
|
r<EFBFBD>|
j&D]<5D>} | j(tjjk(s<01>+| j*|k(s<01>;| jj-|<00>\} } } | tjj.k(s<01>x| jccYd} ~ SYd} ~ <09><01>d} ~ wwxYw#tjj2$rt4<00>wxYw)a<>Find the name of the zone which contains the specified name.
*name*, an absolute ``dns.name.Name`` or ``str``, the query name.
*rdclass*, an ``int``, the query class.
*tcp*, a ``bool``. If ``True``, use TCP to make the query.
*resolver*, a ``dns.resolver.Resolver`` or ``None``, the resolver to use.
If ``None``, the default, then the default resolver is used.
*lifetime*, a ``float``, the total time to allow for the queries needed
to determine the zone. If ``None``, the default, then only the individual
query limits of the resolver apply.
Raises ``dns.resolver.NoRootSOA`` if there is no SOA RR at the DNS
root. (This is only likely to happen if you're using non-default
root servers in your network and they are misconfigured.)
Raises ``dns.resolver.LifetimeTimeout`` if the answer could not be
found in the allotted lifetime.
Returns a ``dns.name.Name``.
Nrr<>)r r.r<>r<>rrmr<>r<>rqr<>r<>r<><00>SOAr<41>rrerr8r5<00> authorityr|r}<00> fullcompare<72>NAMERELN_SUPERDOMAIN<49>parent<6E>NoParentrt)r<>r}rrr`r<>r<><00> rlifetimer<65>rXr5<00>rrs<72>nrr<72>s r<00> zone_for_namer<65>|s<><00><00>@<12>$<24><03><1C><12>x<EFBFBD>x<EFBFBD>!<21>!<21>$<24><03><08><08> <0A> <0A>6<><04><0F><17>'<27>)<29><08> <0F> <1B> <1B> <1D><19>$<24><1F><1F> <10>I<EFBFBD>I<EFBFBD>K<EFBFBD>E<EFBFBD><0F><1B><1A>X<EFBFBD>%<25>
<EFBFBD><19>
<EFBFBD>
<0B> ,<2C><19>%<25>&<26><14><19><19><1B>4<> <09><1C><01>><3E> !<21>I<EFBFBD> <20> <09><1D>%<25>%<25><14>c<EFBFBD>m<EFBFBD>m<EFBFBD>'<27>'<27><17>#<23> <09>&<26><0E>F<EFBFBD><1A><<3C><<3C>+<2B> +<2B>+<2B><15>|<7C>|<7C> <20> <20>D<EFBFBD>(<28><1B> <0B>)<29>, <1C><17>;<3B>;<3B>=<3D>D<EFBFBD>I <0C><> <19>(<28>#<23> ,<2C><19>!<21>X<EFBFBD>&<26><1C>;<3B>;<3B>=<3D>,<2C>,<2C>T<EFBFBD>2<><08><1C>:<3A>:<3A><<3C><08><17>#<23>-<2D>-<2D>C<EFBFBD><1A>z<EFBFBD>z<EFBFBD>S<EFBFBD>]<5D>]<5D>%6<>%6<>6<>3<EFBFBD>;<3B>;<3B>'<27>;Q<>%(<28>X<EFBFBD>X<EFBFBD>%9<>%9<>$<24>%?<3F>
<EFBFBD><12>Q<EFBFBD><01><1D><13><18><18>!><3E>!><3E>><3E>$'<27>8<EFBFBD>8<EFBFBD>O<EFBFBD>.<2E><><EFBFBD>  ,<2C><>*<13>x<EFBFBD>x<EFBFBD> <20> <20> <1C><1B>O<EFBFBD> <1C>sD<00>A9D<00> H<00>H<03>,A8H <03>%H <03>5<H <03>2 H <03>?H<03>H <03> H<03>$H8rj<00>whererc<00><><00>|<03>
t<00>}g}t|t<00>rOtjj |<00>r0|j tjj||<01><00>nT|j||<02>j<00>D]1}|j tjj||<01><00><00>3td<01><02>}||_ |S)aMake a stub resolver using the specified destination as the full resolver.
*where*, a ``dns.name.Name`` or ``str`` the domain name or IP address of the
full resolver.
*port*, an ``int``, the port to use. If not specified, the default is 53.
*family*, an ``int``, the address family to use. This parameter is used if
*where* is not an address. The default is ``socket.AF_UNSPEC`` in which case
the first address returned by ``resolve_name()`` will be used, otherwise the
first address of the specified family will be used.
*resolver*, a ``dns.resolver.Resolver`` or ``None``, the resolver to use for
resolution of hostnames. If not specified, the default resolver will be used.
Returns a ``dns.resolver.Resolver`` or raises an exception.
F)rc) r<>r r.r<>r<>r<>r9r~r<>r<>r<>r<>r%)r<>rr<>rr%r<><00>ress r<00>make_resolver_atr<74><00>s<><00><00>.<10><17>'<27>)<29><08>9;<3B>K<EFBFBD><11>%<25><13><1D>#<23>(<28>(<28>"5<>"5<>e<EFBFBD>"<<3C><13><1A><1A>3<EFBFBD>><3E>><3E>8<>8<><15><04>E<>F<><1F>,<2C>,<2C>U<EFBFBD>F<EFBFBD>;<3B>E<>E<>G<>G<EFBFBD> <17> <1E> <1E>s<EFBFBD>~<7E>~<7E><<3C><<3C>W<EFBFBD>d<EFBFBD>K<> L<>H<01>
<12>U<EFBFBD>
#<23>C<EFBFBD>!<21>C<EFBFBD>O<EFBFBD> <0E>Jrc <00>L<00>t||
| | <0C>j||||||||| <09> S)a}Query nameservers to find the answer to the question.
This is a convenience function that calls ``dns.resolver.make_resolver_at()`` to
make a resolver, and then uses it to resolve the query.
See ``dns.resolver.Resolver.resolve`` for more information on the resolution
parameters, and ``dns.resolver.make_resolver_at`` for information about the resolver
parameters *where*, *port*, *family*, and *resolver*.
If making more than one query, it is more efficient to call
``dns.resolver.make_resolver_at()`` and then use that resolver for the queries
instead of calling ``resolve_at()`` multiple times.
)r<>r<>) r<>r4r|r}rr<>rr<>r`rrr<>rs r<00>
resolve_atr<EFBFBD><00>s=<00><00>8 <1C>E<EFBFBD>4<EFBFBD><16><18> :<3A> B<> B<> <0A><0E><0F> <0B><0E><1A><13><10><0E>
<06>
r<00>_protocols_for_socktype<70> _resolverc
<00><><00>|tjzdk7rt||||||<05>S|tjtjzzdk7r$tj
tj d<02><00>|<00>&|<01>$tj
tjd<03><00>g}d}|<00>t||||||<05>S tjj|<00>t||||||<05>S#t$rYnwxYw t<00>J<00>tj||<02>}|j<00>}|j<00>j!d<04>}n]#t"$r%tj
tjd<03><00>t$r%tj
tj$d<05><00>wxYwd} |<01>d} n t'|<01>} nK#t$r?|tj(zdk(r& tj*|<01>} n#t$rYnwxYwYnwxYw| <09>$tj
tjd<03><00>g}
|dk(r!tj,tj.g} n|g} |tj0zdk7r|} nd} |D]]\} }| D]S}t2|D]E}t'|<0F>}tjj5| | f|<0E>}|
j7|||| |f<05><00>G<00>U<00>_t9|
<EFBFBD>dk(r$tj
tjd<03><00>|
S)Nrz*Non-recoverable failure in name resolution<6F>Name or service not knownTz$Temporary failure in name resolution<6F>)r<><00>AI_NUMERICHOST<53>_original_getaddrinfo<66> AI_ADDRCONFIG<49> AI_V4MAPPED<45>gaierror<6F>EAI_FAIL<49>
EAI_NONAMEr<EFBFBD>r<><00>af_for_addressr3r<>r<>r<>r2rWr<00> EAI_AGAINr<4E><00>AI_NUMERICSERV<52> getservbyname<6D>
SOCK_DGRAM<EFBFBD> SOCK_STREAM<41> AI_CANONNAMEr<45><00>low_level_address_tupler9r%)<11>host<73>servicer<65><00>socktype<70>protor<<00>addrsr2r<>r<00>tuples<65> socktypesr6<00>addr<64>af<61> sockproto<74>
addr_tuples r<00> _getaddrinfor1s<><00><00> <0A>v<EFBFBD>$<24>$<24>$<24><01>)<29> %<25>T<EFBFBD>7<EFBFBD>F<EFBFBD>H<EFBFBD>e<EFBFBD>U<EFBFBD>S<>S<> <0C><06>$<24>$<24>v<EFBFBD>'9<>'9<>9<>:<3A>a<EFBFBD>?<3F><15>o<EFBFBD>o<EFBFBD> <12>O<EFBFBD>O<EFBFBD>I<>
<EFBFBD>
<EFBFBD> <0C>|<7C><07><0F><14>o<EFBFBD>o<EFBFBD>f<EFBFBD>/<2F>/<2F>1L<31>M<>M<> <0E>E<EFBFBD><19>N<EFBFBD> <0C>|<7C>$<24>T<EFBFBD>7<EFBFBD>F<EFBFBD>H<EFBFBD>e<EFBFBD>U<EFBFBD>S<>S<> <0A> <0C><08><08><1F><1F><04>%<25>$<24>T<EFBFBD>7<EFBFBD>F<EFBFBD>H<EFBFBD>e<EFBFBD>U<EFBFBD>S<>S<><53> <14> <0A> <0C> <0A><> X<01><18>$<24>$<24>$<24><1B>(<28>(<28><14>v<EFBFBD>6<><07><17>.<2E>.<2E>0<><05> <20>/<2F>/<2F>1<>9<>9<>$<24>?<3F><0E><> <13>N<01><14>o<EFBFBD>o<EFBFBD>f<EFBFBD>/<2F>/<2F>1L<31>M<>M<> <14>X<01><15>o<EFBFBD>o<EFBFBD>f<EFBFBD>.<2E>.<2E>0V<30>W<>W<> X<01><>
<10>D<EFBFBD> <15> <12>?<3F><14>D<EFBFBD><16>w<EFBFBD><<3C>D<EFBFBD><44> <14><15> <10>6<EFBFBD>(<28>(<28> (<28>A<EFBFBD> -<2D> <15><1D>+<2B>+<2B>G<EFBFBD>4<><04><><1C> <15><14> <15><> <15><>  <0C>|<7C><14>o<EFBFBD>o<EFBFBD>f<EFBFBD>/<2F>/<2F>1L<31>M<>M<> <0F>F<EFBFBD><0F>1<EFBFBD>}<7D><1B>&<26>&<26><06>(:<3A>(:<3A>;<3B> <09><1D>J<EFBFBD> <09> <0C>v<EFBFBD>"<22>"<22>"<22>a<EFBFBD>'<27><1E><05><12><05><19><08><04>b<EFBFBD>!<21>H<EFBFBD>4<>X<EFBFBD>><3E> <09><1B>I<EFBFBD><0E><05> <20>X<EFBFBD>X<EFBFBD>=<3D>=<3D>t<EFBFBD>T<EFBFBD>l<EFBFBD>B<EFBFBD>O<>
<EFBFBD><16> <0A> <0A>r<EFBFBD>8<EFBFBD>U<EFBFBD>E<EFBFBD>:<3A>F<>G<>?<3F>"<22><1A>  <0B>6<EFBFBD>{<7B>a<EFBFBD><17><14>o<EFBFBD>o<EFBFBD>f<EFBFBD>/<2F>/<2F>1L<31>M<>M<> <11>MsV<00>1.C <00> C,<03>+C,<03>0A D><00>>AF<03>F/<00>/G7<03>G%<02>$G7<03>% G1<05>.G7<03>0G1<05>1G7<03>6G7c<00>`<00>|d}|d}t|<00>dk(r|d}tj}nd}tj}t |||tj
tj d<01>}t|<06>dkDr td<05><00>|ddd}|tjzrd}nd}t|t<00>sJ<00>tjj|<07>} |tjzdk(r<> t<00>J<00>tj!| d<08>}
|
j"<00>J<00>t%tj&j(j*j*|
j"d<00>} | j,j/d <09>} n|} |<04>| d t|<04>zz } |tj:zrt|<03>} | | fStj<||<08>} | | fS#t0t2f$rO|tj4zr$tj6tj8d
<EFBFBD><00>|} |<04>| d t|<04>zz } Y<00><>wxYw) Nrr*<00>rTz'sockaddr resolved to multiple addresses<65>udprr<>Tr<54><00>%)r%r<>r<>r<>rr<><00>SOL_TCPrO<00>NI_DGRAMr r.r<>r<>r<><00>NI_NUMERICHOSTr<54>r<>r<>r
<00>rdtypesr0r<><00>targetrWrre<00> NI_NAMEREQDr<44>r<><00>NI_NUMERICSERV<52> getservbyport)<0E>sockaddrr<r<>r<00>scoper<65>rr<00>pnamer4r<>r<><00>hostnamer<65>s r<00> _getnameinfor<00>s<00><00> <13>A<EFBFBD>;<3B>D<EFBFBD> <13>A<EFBFBD>;<3B>D<EFBFBD>
<EFBFBD>8<EFBFBD>}<7D><01><19><18><11> <0B><05><17><1F><1F><06><14><05><17><1E><1E><06> <19>$<24><04>f<EFBFBD>f<EFBFBD>.@<40>.@<40>&<26>.<2E>.<2E>RS<52> T<>F<EFBFBD>
<EFBFBD>6<EFBFBD>{<7B>Q<EFBFBD><EFBFBD><15>?<3F>@<40>@<40> <11>!<21>9<EFBFBD>Q<EFBFBD><<3C><01>?<3F>D<EFBFBD> <0C>v<EFBFBD><EFBFBD><EFBFBD><1E><15><05><15><05> <15>d<EFBFBD>C<EFBFBD> <20> <20> <20> <0F>O<EFBFBD>O<EFBFBD> (<28> (<28><14> .<2E>E<EFBFBD> <0C>v<EFBFBD>$<24>$<24>$<24><01>)<29> -<2D><1C>(<28> (<28>(<28><1E>&<26>&<26>u<EFBFBD>e<EFBFBD>4<>F<EFBFBD><19><<3C><<3C>+<2B> +<2B>+<2B><18><13><1B><1B><1F><1F>,<2C>,<2C>0<>0<>&<26>,<2C>,<2C>q<EFBFBD>/<2F>B<>E<EFBFBD><1C>|<7C>|<7C>+<2B>+<2B>D<EFBFBD>1<>H<EFBFBD><18><08> <10> <1C> <14><03>c<EFBFBD>%<25>j<EFBFBD>(<28> (<28>H<EFBFBD> <0C>v<EFBFBD>$<24>$<24>$<24><15>d<EFBFBD>)<29><07> <15>g<EFBFBD> <1E><1E><19>&<26>&<26>t<EFBFBD>U<EFBFBD>3<><07> <14>g<EFBFBD> <1E><1E><><19>(<28>#<23> -<2D><14>v<EFBFBD>)<29>)<29>)<29><1C>o<EFBFBD>o<EFBFBD>f<EFBFBD>&7<>&7<>9T<39>U<>U<><1B>H<EFBFBD><14> <20><18>C<EFBFBD>#<23>e<EFBFBD>*<2A>,<2C>,<2C><08><>  -<2D>s<00>1B G<00>AH-<03>,H-c<00>r<00>|<00>tj<00>} t|<00>\}}}|S#t$rY|SwxYwr)r<>rl<00>_gethostbyaddrr3)r<>r<>s r<00>_getfqdnr<00>sJ<00><00> <0B>|<7C><15>!<21>!<21>#<23><04> <0A>%<25>d<EFBFBD>+<2B> <0C><14>q<EFBFBD>!<21>
<10>K<EFBFBD><4B> <15> <0A> <0C> <0F>K<EFBFBD> <0A>s <00>)<00> 6<03>6c<00>$<00>t|<00>ddS)NrEr)<01>_gethostbyname_exr<78>s r<00>_gethostbynamer<00>s<00><00> <1C>T<EFBFBD> "<22>1<EFBFBD> %<25>a<EFBFBD> (<28>(rc<00><><00>g}g}t|dtjtjtjtj
<00>}|dd}|D]}|j |dd<00><00>|||fS)NrrTr )rr<>r<>r<>r r<>r9)r<><00>aliasesr<73>r<00> canonical<61>items rrr<00>su<00><00><10>G<EFBFBD><12>I<EFBFBD> <19> <0C>a<EFBFBD><16><1E><1E><16>!3<>!3<>V<EFBFBD>^<5E>^<5E>V<EFBFBD>EX<45>EX<45><06>F<EFBFBD><17>q<EFBFBD> <09>!<21> <0C>I<EFBFBD><16><04><11><18><18><14>a<EFBFBD><17><11><1A>$<24><17> <16>w<EFBFBD> <09> *<2A>*rc<00><00> tjj|<00>|dddf}tj}t|tj<00>\}}g}g}t|d|tjtjtj<00>}|dd}tj j#||<00>} |D]S}
|
dd} t%| t&<00>sJ<00>tj j#|| <0B>} | | k(s<01>C|j)| <0B><00>U|||fS#t
$rj tj j|<00>n1#t
$r%tjtjd<03><00>wxYw|df}tj}Y<00><01>RwxYw)N<>Prr<>rTr )r<><00>ipv6<76> inet_atonr<6E>r<>r3<00>ipv4r<34>r<>r<>rrrr<>r r<>r<><00> inet_ptonr r.r9) <0A>iprr<>r<>r<>r r<>rr!<00>bin_ipr"r<00>bin_addrs rrr<00>se<00><00>
 <20> <0B><08><08><1A><1A>2<EFBFBD><1E><16><02>A<EFBFBD>q<EFBFBD>><3E><08><17><1F><1F><06><1D>X<EFBFBD>v<EFBFBD>'9<>'9<>:<3A>I<EFBFBD>T<EFBFBD>1<EFBFBD><10>G<EFBFBD><12>I<EFBFBD> <19> <0C>a<EFBFBD><16><16>+<2B>+<2B>V<EFBFBD>^<5E>^<5E>V<EFBFBD>=P<>=P<><06>F<EFBFBD><17>q<EFBFBD> <09>!<21> <0C>I<EFBFBD><11>X<EFBFBD>X<EFBFBD> <1F> <1F><06><02> +<2B>F<EFBFBD><16><04><13>A<EFBFBD>w<EFBFBD>q<EFBFBD>z<EFBFBD><04><19>$<24><03>$<24>$<24>$<24><16>8<EFBFBD>8<EFBFBD>%<25>%<25>f<EFBFBD>d<EFBFBD>3<><08> <11>X<EFBFBD> <1D> <15> <1C> <1C>T<EFBFBD> "<22> <17> <16>w<EFBFBD> <09> *<2A>*<2A><>3 <15> <20> R<01> <0F>H<EFBFBD>H<EFBFBD> <1E> <1E>r<EFBFBD> "<22><><18> R<01><18>/<2F>/<2F>&<26>"3<>"3<>5P<35>Q<> Q<> R<01><><16><02>8<EFBFBD><08><17><1E><1E><06>  <20>s)<00>5D<00> F
<03>!E<02>F
<03>.E/<05>/F
<03> F
c<00><><00>|<00>
t<00>}|att_t
t_tt_tt_
tt_ tt_y)a<>Override the system resolver routines in the socket module with
versions which use dnspython's resolver.
This can be useful in testing situations where you want to control
the resolution behavior of python code without having to change
the system's resolver settings (e.g. /etc/resolv.conf).
The resolver to use may be specified; if it's not, the default
resolver will be used.
resolver, a ``dns.resolver.Resolver`` or ``None``, the resolver to use.
N)r<>r<>rr<><00> getaddrinfor<00> getnameinfor<00>getfqdnr<00> gethostbynamer<00>gethostbyname_exr<00> gethostbyaddr)rs r<00>override_system_resolverr3<00>sF<00><00><10><17>'<27>)<29><08><18>I<EFBFBD>%<25>F<EFBFBD><16>%<25>F<EFBFBD><16><1D>F<EFBFBD>N<EFBFBD>)<29>F<EFBFBD><18>/<2F>F<EFBFBD><1B>)<29>F<EFBFBD>rc<00><><00>datt_tt_t t_tt_ tt_ tt_ y)z5Undo the effects of prior override_system_resolver().N)r<>r<>r<>r-<00>_original_getnameinfor.<00>_original_getfqdnr/<00>_original_gethostbynamer0<00>_original_gethostbyname_exr1<00>_original_gethostbyaddrr2rQrr<00>restore_system_resolverr:
s8<00><00><15>I<EFBFBD>.<2E>F<EFBFBD><16>.<2E>F<EFBFBD><16>&<26>F<EFBFBD>N<EFBFBD>2<>F<EFBFBD><18>8<>F<EFBFBD><1B>2<>F<EFBFBD>rr<>r<>)rr){rHrxrAr<>rer<>r<>r<><00>typingrrrrrr r
<00> urllib.parser <00>dns._ddrr<72><00>dns.edns<6E> dns.exception<6F> dns.flags<67>dns.inet<65>dns.ipv4<76>dns.ipv6<76> dns.message<67>dns.name<6D>dns.nameserver<65> dns.query<72> dns.rcode<64> dns.rdata<74>dns.rdataclass<73> dns.rdatatype<70>dns.rdtypes.ANY.PTR<54>dns.rdtypes.svcbbase<73>dns.reversename<6D>dns.tsigrf<00> dns.win32utilrL<00> DNSExceptionrrOr.r<>r<>r3r<>r\r<>rW<00>TimeoutrYrerlrqrtrvryr{r&r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>rrrr<>r<>r<>r<>r<>r<>rTr<>r<>rhr<>r<>r<>r2r<>r<>r<>r<>r<><00>SOL_UDPr<50>r r<>r<>r-r<>r.r5r/r6r0r7r1r8r2r9rrrrrrr3r:rQrr<00><module>rTs<><00><01>$<19><11> <0A> <0A>
<EFBFBD><10> <0B><0F>C<>C<>C<>!<21><0F><0F><14><10><0F><0F><0F><12><0F><15><10><10><10><15><14><1A><1B><16><0F><06><<3C><<3C>7<EFBFBD><1A><18>U/<2F>s<EFBFBD>}<7D>}<7D>)<29>)<29>U/<2F>pC<01>s<EFBFBD>}<7D>}<7D>)<29>)<29>C<01><13><07>$<24>J<EFBFBD><08><07> <0A><03>O<EFBFBD><07>K<EFBFBD>K<EFBFBD><17><17>$<24><1E>  <20><02>
<EFBFBD><11>D<EFBFBD><1A>,<2C><11><14>c<EFBFBD><19><11>
<EFBFBD>c<EFBFBD>m<EFBFBD>m<EFBFBD>+<2B>+<2B>
<EFBFBD>, <1A><07>'<27>s<EFBFBD>}<7D>}<7D>)<29>)<29>'<27>$
<EFBFBD>C<EFBFBD>M<EFBFBD>M<EFBFBD>.<2E>.<2E>
<EFBFBD>2P<01>#<23>-<2D>-<2D>,<2C>,<2C>P<01>M<01><03> <0A> <0A>*<2A>*<2A>M<01>+<2B>C<EFBFBD>M<EFBFBD>M<EFBFBD>.<2E>.<2E>+<2B>P<01>c<EFBFBD>m<EFBFBD>m<EFBFBD>8<>8<>P<01>C<1A>C<1A>L@<01>d<EFBFBD>@<01>+<2B>s<EFBFBD>}<7D>}<7D>1<>1<>+<2B>0%<25>'<27>0%<25>f 7<> 7<>+<2B>+<2B>> <11><13><18><18><1D><1D><03> <0A> <0A> 7<> 7<><13><1E><1E>9R<39>9R<39>R<> S<><08>LJ<01>I<EFBFBD>LJ<01>^#<23>#<23>*l<1F>y<EFBFBD>l<1F>^K!<21>K!<21>\N(<28>N(<28>b
[<11>|<7C>[<11>~%)<29><10>(<28>T<EFBFBD>/<2F>(<28><1C>h<EFBFBD><1C>"<22>-0<>M<EFBFBD>M<EFBFBD>O<EFBFBD>O<EFBFBD>/2<>~<7E>~<7E>/@<40>/@<40><15><1D>#<23><18>!<21><1E><06> <0E>8<EFBFBD>8<EFBFBD>=<3D>=<3D>3<EFBFBD> <1E><06> <0F>M<EFBFBD>M<EFBFBD> #<23> #<23>c<EFBFBD> )<29><06><11>^<5E>^<5E> &<26> &<26><13> ,<2C><06>
<0E> <06>
<10>$<24>J<EFBFBD> <06> <1D> <06><15><06><14>d<EFBFBD>l<EFBFBD><06> <11>4<EFBFBD>K<EFBFBD><06> <0C><06>F-0<>M<EFBFBD>M<EFBFBD>O<EFBFBD>O<EFBFBD>/2<>~<7E>~<7E>/@<40>/@<40><15><1D>#<23><18>!<21><06> <0E>8<EFBFBD>8<EFBFBD>=<3D>=<3D>3<EFBFBD> <1E><06> <0F>M<EFBFBD>M<EFBFBD> #<23> #<23>c<EFBFBD> )<29><06><11>^<5E>^<5E> &<26> &<26><13> ,<2C><06>
<0E> <06>
<10>$<24>J<EFBFBD> <06> <1D> <06><15><06><14>d<EFBFBD>l<EFBFBD><06> <0C><06>BK<01>C<EFBFBD>K<01><03>K<01>s<EFBFBD>K<01>v<EFBFBD>K<01>.4<EFBFBD>-=<3D>-=<3D> G<01>
<0A>(<28>(<28>-<2D>-<2D>#<23>
<1D> G<01>'*<2A> G<01>IL<49> G<01><10> G<01>7<><13><18><18><1D><1D><13>,<2C>7<><13><18><18><1D><1D>7<>4<>e<EFBFBD>4<>d<EFBFBD>4<>*-<2D><1E><1E>):<3A>):<3A><15> $<24>!<21> R<1C>
<0A>(<28>(<28>-<2D>-<2D>#<23>
<1D>R<1C> <10>^<5E>^<5E> &<26> &<26>R<1C>
<0E>R<1C><17><14>o<EFBFBD> R<1C>
<14>d<EFBFBD>l<EFBFBD> R<1C>  <09>X<EFBFBD>X<EFBFBD>]<5D>]<5D> R<1C>n<13><18>"<22>"<22> $<24> !<0F> <0E>8<EFBFBD>8<EFBFBD>=<3D>=<3D>3<EFBFBD> <1E>!<0F>
<0A>!<0F> <10>!<0F><17><14>o<EFBFBD> !<0F>
<0E> !<0F>N-0<>M<EFBFBD>M<EFBFBD>O<EFBFBD>O<EFBFBD>/2<>~<7E>~<7E>/@<40>/@<40><15><1D>#<23><18>!<21><1E><12><18>"<22>"<22> $<24>&<06> <0E>8<EFBFBD>8<EFBFBD>=<3D>=<3D>3<EFBFBD> <1E>&<06> <0E>8<EFBFBD>8<EFBFBD>=<3D>=<3D>3<EFBFBD> <1E>&<06> <10>M<EFBFBD>M<EFBFBD> #<23> #<23>c<EFBFBD> )<29>&<06><11>^<5E>^<5E> &<26> &<26><13> ,<2C> &<06>
<0E> &<06> <10>$<24>J<EFBFBD> &<06><1D>&<06><15>&<06><14>d<EFBFBD>l<EFBFBD>&<06> <11>4<EFBFBD>K<EFBFBD>&<06> <0E>&<06> <10>&<06><17><14>o<EFBFBD>&<06> <0C>&<06>^ <0B><15><15><06><0E><0E>'<27>
<EFBFBD><16><16><16><1E><1E>(<28>1<02><17><14>c<EFBFBD>4<EFBFBD><03>9<EFBFBD>n<EFBFBD>-<2D><02>
"<22> <09>8<EFBFBD>d<EFBFBD>?<3F>!<21><1E>*<2A>*<2A><15><1E>*<2A>*<2A><15><1A>N<EFBFBD>N<EFBFBD><11> <20>.<2E>.<2E><17>#<23>4<>4<><1A> <20>.<2E>.<2E><17>
<0E>t<EFBFBD>F<EFBFBD>$4<>$4<>q<EFBFBD><01>QR<51>S<12>l(<1F>V <10>)<29>
+<2B>+<2B>B*<2A>x<EFBFBD>$<24><EFBFBD>*<2A>$<24>*<2A>4
3r