ó
    ÌÅLg  ã                   ó>  • % S r SSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKJ	r	J
r
JrJrJrJrJrJr  SSKJr  SSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSK rSSK!rSSK"rSSK#rSSK$rSSK%r\RL                  S:X  a  SSK'r " S S\RP                  RR                  5      r* " S S	\RP                  RR                  5      r+\\\,   \-\.\\/\,4   \\R`                  Rb                     4   r2S
\\2   S\\,   4S jr3 " S S\RP                  Rh                  5      r5\5r4 " S S\RP                  RR                  5      r6 " S S\RP                  RR                  5      r7 " S S\RP                  RR                  5      r8 " S S\RP                  RR                  5      r9 " S S\RP                  RR                  5      r: " S S\RP                  RR                  5      r; " S S5      r< " S S\=5      r> " S S \>5      r? " S! S"5      r@ " S# S$5      rA\\R„                  R†                  \Rˆ                  RŠ                  \RŒ                  RŽ                  4   rH " S% S&\A5      rI " S' S(5      rJ " S) S*\A5      rK " S+ S,5      rL " S- S.5      rM " S/ S0\M5      rNSqO\\N   \PS1'   S\N4S2 jrQSYS3 jrR\Rˆ                  R¦                  \RŒ                  R¨                  S4SS5SSS4S6\\R„                  R†                  \,4   S7\\Rˆ                  RŠ                  \,4   S8\\RŒ                  RŽ                  \,4   S9\-S:\\,   S;\-S<\.S=\\U   S>\\-   S\<4S? jjrV\Rˆ                  R¦                  \RŒ                  R¨                  S4SS5SS4S6\\R„                  R†                  \,4   S7\\Rˆ                  RŠ                  \,4   S8\\RŒ                  RŽ                  \,4   S9\-S:\\,   S;\-S<\.S=\\U   S\<4S@ jjrWSA\,SB\	SC\	S\<4SD jrX\R²                  4SE\\R„                  R†                  \,4   SF\.SC\	S\?4SG jjrZSE\\R„                  R†                  \,4   S\R„                  R†                  4SH jr[SZS=\USS4SI jjr\\RŒ                  R¨                  S4SS4SE\\R„                  R†                  \,4   S8\RŒ                  RŽ                  S9\-SJ\\N   S=\\U   S\R„                  R†                  4SK jjr]SL\R²                  S4SM\\R„                  R†                  \,4   SN\.SF\.SJ\\N   S\N4
SO jjr^\Rˆ                  R¦                  \RŒ                  R¨                  S4SS5SSSSL\R²                  S4SM\\R„                  R†                  \,4   S6\\R„                  R†                  \,4   S7\\Rˆ                  RŠ                  \,4   S8\\RŒ                  RŽ                  \,4   S9\-S:\\,   S;\-S<\.S=\\U   S>\\-   SN\.SF\.SJ\\N   S\<4SP jjr_\RÀ                  \RÂ                  /\RÄ                  \RÆ                  /0rdSqe\RÌ                  rg\RÐ                  ri\RÔ                  rk\RØ                  rm\RÜ                  ro\Rà                  rqSS\R²                  SSS4SQ jrrS[SR jrsS\SS jrtST ruSU rvSV rwS\SJ\\N   SS4SW jjrxSYSX jryg)]úDNS stub resolver.é    N)ÚAnyÚDictÚIteratorÚListÚOptionalÚSequenceÚTupleÚUnion)ÚurlparseÚwin32c                   ó~   ^ • \ rS rSrSrSS1rSrU 4S jrSS jrS\	4U 4S	 jjr
\S
 5       rS rS rS rS rSrU =r$ )ÚNXDOMAINé5   z"The DNS query name does not exist.ÚqnamesÚ	responsesNc                 ó&   >• [         TU ]  " U0 UD6  g ©N©ÚsuperÚ__init__©ÚselfÚargsÚkwargsÚ	__class__s      €Ú./usr/lib/python3/dist-packages/dns/resolver.pyr   ÚNXDOMAIN.__init__?   ó   ø€ Ü‰Ò˜$Ð) &Ó)ó    c                 óî   • [        U[        [        [        45      (       d  [	        S5      e[        U5      S:X  a  [	        S5      eUc  0 nO [        U[        5      (       d  [	        S5      e[        XS9nU$ )Nz#qnames must be a list, tuple or setr   z(qnames must contain at least one elementz(responses must be a dict(qname=response)©r   r   )Ú
isinstanceÚlistÚtupleÚsetÚAttributeErrorÚlenÚdict)r   r   r   r   s       r   Ú_check_kwargsÚNXDOMAIN._check_kwargsB   sm   € Ü˜&¤4¬´Ð"4×5Ñ5Ü Ð!FÓGÐGÜˆv‹;˜!ÓÜ Ð!KÓLÐLØÑØ‰IÜ˜I¤t×,Ñ,Ü Ð!KÓLÐLÜ˜VÑ9ˆØˆr    Úreturnc                 óÒ   >• SU R                   ;  a  [        TU ]	  5       $ U R                   S   n[        U5      S:”  a  SnOSnSR	                  [        [        U5      5      nU SU 3$ )Nr   é   zNone of DNS query names existz!The DNS query name does not existz, z: )r   r   Ú__str__r(   ÚjoinÚmapÚstr)r   r   Úmsgr   s      €r   r/   ÚNXDOMAIN.__str__N   se   ø€ Ø˜4Ÿ;™;Ó&Ü‘7‘?Ó$Ð$Ø—‘˜XÑ&ˆÜˆv‹;˜‹?Ø1‰Cà5ˆCØ—‘œ3œs FÓ+Ó,ˆØ��b˜˜Ð!Ð!r    c                 ó  • SU R                   ;  a  [        S5      eU R                   S    H/  nU R                   S   U   n UR                  5       nX1:w  a  Us  $ M1     U R                   S   S   $ ! [         a     MR  f = f)z%Return the unresolved canonical name.r   zparametrized exception requiredr   r   )r   Ú	TypeErrorÚcanonical_nameÚ	Exception)r   ÚqnameÚresponseÚcnames       r   r7   ÚNXDOMAIN.canonical_nameY   s�   € ð ˜4Ÿ;™;Ó&ÜÐ=Ó>Ð>Ø—[‘[ Ô*ˆEØ—{‘{ ;Ñ/°Ñ6ˆHðØ ×/Ñ/Ó1�Ø“>Ø ’Lñ "ñ	 +ð �{‰{˜8Ñ$ QÑ'Ð'øô	 ó ò ðús   ÁA0Á0
A>Á=A>c                 ól  • [        U R                  R                  S/ 5      5      n[        U R                  R                  S0 5      5      nUR                  R                  S0 5      nUR                  R                  S/ 5       H&  nXR;  a  UR	                  U5        XT;   d  M   XE   X5'   M(     [        X#S9$ )z3Augment by results from another NXDOMAIN exception.r   r   r"   )r$   r   Úgetr)   Úappendr   )r   Úe_nxÚqnames0Ú
responses0Ú
responses1Úqname1s         r   Ú__add__ÚNXDOMAIN.__add__j   s‘   € ä�t—{‘{—‘ x°Ó4Ó5ˆÜ˜$Ÿ+™+Ÿ/™/¨+°rÓ:Ó;ˆ
Ø—[‘[—_‘_ [°"Ó5ˆ
Ø—k‘k—o‘o h°Ö3ˆFØÓ$Ø—‘˜vÔ&ØÕ#Ø%/Ñ%7�
Ó"ñ	 4ô
 ˜wÑ=Ð=r    c                 ó    • U R                   S   $ )zHAll of the names that were tried.

Returns a list of ``dns.name.Name``.
r   ©r   ©r   s    r   r   ÚNXDOMAIN.qnamesv   s   € ð
 �{‰{˜8Ñ$Ð$r    c                 ó    • U R                   S   $ )z€A map from queried names to their NXDOMAIN responses.

Returns a dict mapping a ``dns.name.Name`` to a
``dns.message.Message``.
r   rH   rI   s    r   r   ÚNXDOMAIN.responses}   s   € ð �{‰{˜;Ñ'Ð'r    c                 ó&   • U R                   S   U   $ )zDThe response for query *qname*.

Returns a ``dns.message.Message``.
r   rH   )r   r9   s     r   r:   ÚNXDOMAIN.response…   s   € ð
 �{‰{˜;Ñ'¨Ñ.Ð.r    © r   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Úsupp_kwargsÚfmtr   r*   r2   r/   Úpropertyr7   rE   r   r   r:   Ú__static_attributes__Ú__classcell__©r   s   @r   r   r   5   sX   ø† Ù,à˜[Ð)€KØ
€Cõ*ô
ð	"˜÷ 	"ð ñ(ó ð(ò 
>ò%ò(÷/ð /r    r   c                   ó   • \ rS rSrSrSrg)ÚYXDOMAINé�   z8The DNS query name is too long after DNAME substitution.rO   N©rP   rQ   rR   rS   rT   rX   rO   r    r   r\   r\   �   s   † ÜBr    r\   Úerrorsr,   c                 óV   • / nU  H   nUR                  SUS    SUS    35        M"     U$ )z3Turn a resolution errors trace into a list of text.zServer r   z
 answered é   )r?   )r_   ÚtextsÚerrs      r   Ú_errors_to_textrd   š   s7   € à€EÛˆØ�‰�w˜s 1™v˜h j°°Q±°Ð9Ö:ñ à€Lr    c                   óT   ^ • \ rS rSrSrSr\SS  S3rSS1rU 4S jrU 4S	 jr	S
r
U =r$ )ÚLifetimeTimeouté¢   z The resolution lifetime expired.Néÿÿÿÿz& after {timeout:.3f} seconds: {errors}Útimeoutr_   c                 ó&   >• [         TU ]  " U0 UD6  g r   r   r   s      €r   r   ÚLifetimeTimeout.__init__«   r   r    c                 ó`   >• [        US   5      n[        TU ]	  US   SR                  U5      S9$ )Nr_   ri   ú; ©ri   r_   )rd   r   Ú_fmt_kwargsr0   ©r   r   Úsrv_msgsr   s      €r   ro   ÚLifetimeTimeout._fmt_kwargs®   s<   ø€ Ü" 6¨(Ñ#3Ó4ˆÜ‰wÑ"Ø˜9Ñ%¨d¯i©i¸Ó.Að #ð 
ð 	
r    rO   ©rP   rQ   rR   rS   rT   r3   rV   rU   r   ro   rX   rY   rZ   s   @r   rf   rf   ¢   s7   ø† Ù*à
,€CØ��"ˆXˆJÐ@Ð
A€CØ˜hÐ'€Kõ*÷
ó 
r    rf   c                   óH   ^ • \ rS rSrSrSrS1rU 4S jrU 4S jrS r	Sr
U =r$ )	ÚNoAnsweré»   z<The DNS response does not contain an answer to the question.zDThe DNS response does not contain an answer to the question: {query}r:   c                 ó&   >• [         TU ]  " U0 UD6  g r   r   r   s      €r   r   ÚNoAnswer.__init__Ã   r   r    c                 ó8   >• [         TU ]  US   R                  S9$ )Nr:   )Úquery)r   ro   Úquestion)r   r   r   s     €r   ro   ÚNoAnswer._fmt_kwargsÆ   s!   ø€ Ü‰wÑ"¨°
Ñ);×)DÑ)DÐ"ÐEÐEr    c                 ó    • U R                   S   $ )Nr:   rH   rI   s    r   r:   ÚNoAnswer.responseÉ   s   € Ø�{‰{˜:Ñ&Ð&r    rO   )rP   rQ   rR   rS   rT   rV   rU   r   ro   r:   rX   rY   rZ   s   @r   ru   ru   »   s'   ø† ÙFà
P€CØ�,€Kõ*õF÷'ð 'r    ru   c                   óT   ^ • \ rS rSrSrSr\SS  S3rSS1rU 4S	 jrU 4S
 jr	Sr
U =r$ )ÚNoNameserverséÍ   zà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.Nrh   z {query}: {errors}Úrequestr_   c                 ó&   >• [         TU ]  " U0 UD6  g r   r   r   s      €r   r   ÚNoNameservers.__init__Ü   r   r    c                 ót   >• [        US   5      n[        TU ]	  US   R                  SR	                  U5      S9$ )Nr_   r‚   rm   )rz   r_   )rd   r   ro   r{   r0   rp   s      €r   ro   ÚNoNameservers._fmt_kwargsß   sB   ø€ Ü" 6¨(Ñ#3Ó4ˆÜ‰wÑ"Ø˜Ñ#×,Ñ,°T·Y±Y¸xÓ5Hð #ð 
ð 	
r    rO   rs   rZ   s   @r   r€   r€   Í   s;   ø† ñð 8€CØ��"ˆXˆJÐ,Ð
-€CØ˜hÐ'€Kõ*÷
ó 
r    r€   c                   ó   • \ rS rSrSrSrg)ÚNotAbsoluteéæ   zEAn absolute domain name is required but a relative name was provided.rO   Nr^   rO   r    r   rˆ   rˆ   æ   ó   † ÜOr    rˆ   c                   ó   • \ rS rSrSrSrg)Ú	NoRootSOAéê   zBThere is no SOA RR at the DNS root name. This should never happen!rO   Nr^   rO   r    r   rŒ   rŒ   ê   s   † ÜLr    rŒ   c                   ó   • \ rS rSrSrSrg)ÚNoMetaquerieséî   z DNS metaqueries are not allowed.rO   Nr^   rO   r    r   r�   r�   î   s   † Ü*r    r�   c                   ó   • \ rS rSrSrSrg)ÚNoResolverConfigurationéò   zEResolver configuration could not be read or specified no nameservers.rO   Nr^   rO   r    r   r’   r’   ò   rŠ   r    r’   c                   óN  • \ rS rSrSr  SS\R                  R                  S\R                  R                  S\R                  R                  S\R                  R                  S\\   S	\\   S
S4S jjrS rS
\4S jrS
\\R*                  R,                     4S jrS rS rSrg)ÚAnsweréö   aþ  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.
Nr9   ÚrdtypeÚrdclassr:   Ú
nameserverÚportr,   c                 óD  • Xl         X l        X0l        X@l        XPl        X`l        UR                  5       U l        U R                  R                  U l        U R                  R                  U l
        [        R                  " 5       U R                  R                  -   U l        g r   )r9   r—   r˜   r:   r™   rš   Úresolve_chainingÚchaining_resultr7   ÚanswerÚrrsetÚtimeÚminimum_ttlÚ
expiration)r   r9   r—   r˜   r:   r™   rš   s          r   r   ÚAnswer.__init__  sz   € ð Œ
ØŒØŒØ ŒØ$ŒØŒ	Ø'×8Ñ8Ó:ˆÔð #×2Ñ2×AÑAˆÔØ×)Ñ)×0Ñ0ˆŒ
ÜŸ)š)›+¨×(<Ñ(<×(HÑ(HÑHˆ�r    c                 ó0  • US:X  a  U R                   R                  $ US:X  a  U R                   R                  $ US:X  a  U R                   R                  $ US:X  a  U R                   R                  $ US:X  a  U R                   R
                  $ [        U5      e)NÚnameÚttlÚcoversr˜   r—   )rŸ   r¥   r¦   r§   r˜   r—   r'   )r   Úattrs     r   Ú__getattr__ÚAnswer.__getattr__  s   € Ø�6‹>Ø—:‘:—?‘?Ð"Ø�U‹]Ø—:‘:—>‘>Ð!Ø�XÓØ—:‘:×$Ñ$Ð$Ø�YÓØ—:‘:×%Ñ%Ð%Ø�XÓØ—:‘:×$Ñ$Ð$ä  Ó&Ð&r    c                 ód   • U R                   =(       a    [        U R                   5      =(       d    S$ ©Nr   )rŸ   r(   rI   s    r   Ú__len__ÚAnswer.__len__*  s   € Ø�z‰z×-œc $§*¡*›o×2°Ð2r    c                 ó†   • U R                   =(       a    [        U R                   5      =(       d    [        [        5       5      $ r   )rŸ   Úiterr%   rI   s    r   Ú__iter__ÚAnswer.__iter__-  s%   € Ø�z‰z×.œd 4§:¡:Ó.×?´$´u³w³-Ð?r    c                 óF   • U R                   c  [        eU R                   U   $ r   ©rŸ   Ú
IndexError©r   Úis     r   Ú__getitem__ÚAnswer.__getitem__0  s    € Ø�:‰:ÑÜÐØ�z‰z˜!‰}Ðr    c                 óD   • U R                   c  [        eU R                   U	 g r   r´   r¶   s     r   Ú__delitem__ÚAnswer.__delitem__5  s   € Ø�:‰:ÑÜÐØ�J‰J�q‰Mr    )
r7   r�   r¢   r™   rš   r9   r˜   r—   r:   rŸ   ©NN)rP   rQ   rR   rS   rT   Údnsr¥   ÚNameÚ	rdatatypeÚ	RdataTypeÚ
rdataclassÚ
RdataClassÚmessageÚQueryMessager   r2   Úintr   r©   r­   r   ÚrdataÚRdatar±   r¸   r»   rX   rO   r    r   r•   r•   ö   sÄ   † ñð* %)Ø"ñIà�x‰x�}‰}ðIð —‘×'Ñ'ðIð —‘×*Ñ*ð	Ið
 —+‘+×*Ñ*ðIð ˜S‘MðIð �s‰mðIð 
õIò,'ð3˜ô 3ð@˜( 3§9¡9§?¡?Ñ3ô @òõ
r    r•   c                   ó   • \ rS rSrSrSrg)ÚAnswersi;  z5A dict of DNS stub resolver answers, indexed by type.rO   Nr^   rO   r    r   rÊ   rÊ   ;  s   † Ü?r    rÊ   c            
       óö   • \ rS rSrSr\   SS\\   S\\   S\SS 4S jj5       r	\
R                  4S	\S\\\\4      4S
 jjr\
R                  4S	\S\\   4S jjrS\R&                  R(                  4S jrSrg)ÚHostAnswersi?  zLA dict of DNS stub resolver answers to a host name lookup, indexed by
type.
NÚv6Úv4Ú	add_emptyr,   c                 óö   • [        5       nUb4  U(       d  UR                  (       a  X[        R                  R                  '   Ub4  U(       d  UR                  (       a  X$[        R                  R
                  '   U$ r   )rÌ   rŸ   r¾   rÀ   ÚAAAAÚA)ÚclsrÍ   rÎ   rÏ   Úanswerss        r   ÚmakeÚHostAnswers.makeD  sL   € ô “-ˆØ‰>žy¨B¯H¯HØ*,”C—M‘M×&Ñ&Ñ'Ø‰>žy¨B¯H¯HØ')”C—M‘M—O‘OÑ$Øˆr    Úfamilyc              #   ó0  #   • U[         R                  :X  aO  U R                  [         R                  5       S h  v•N   U R                  [         R                  5       S h  v•N   g U[         R                  :X  a*  U R                  [        R                  R                  5      nOLU[         R                  :X  a*  U R                  [        R                  R                  5      nO[        SU 35      eU(       a  U H  nUR                  U4v •  M     g g  NØ N³7f)Núunknown address family )ÚsocketÚ	AF_UNSPECÚaddresses_and_familiesÚAF_INET6ÚAF_INETr>   r¾   rÀ   rÑ   rÒ   ÚNotImplementedErrorÚaddress)r   r×   rž   rÇ   s       r   rÜ   Ú"HostAnswers.addresses_and_familiesT  sË   é € ð ”V×%Ñ%Ó%Ø×2Ñ2´6·?±?ÓC×CÐCØ×2Ñ2´6·>±>ÓB×BÐBØØ”v—‘Ó&Ø—X‘XœcŸm™m×0Ñ0Ó1‰FØ”v—~‘~Ó%Ø—X‘XœcŸm™mŸo™oÓ.‰Fä%Ð(?À¸xÐ&HÓIÐIÞÛ�Ø—}‘} fÐ-Ô-ò  ð ñ DÙBùs"   ‚7D¹Dº&DÁ DÁ!B2DÄDc                 ó2   • S U R                  U5       5       $ )Nc              3   ó*   #   • U  H	  oS    v •  M     g7f)r   NrO   )Ú.0Úpairs     r   Ú	<genexpr>Ú(HostAnswers.addresses.<locals>.<genexpr>h  s   é € ÐHÒ$G˜D�Q–Ò$Gùs   ‚)rÜ   )r   r×   s     r   Ú	addressesÚHostAnswers.addressesg  s   € ÙH D×$?Ñ$?ÀÔ$GÓHÐHr    c                 ó¼   • U R                  [        R                  R                  U R                  [        R                  R                  5      5      nUR
                  $ r   )r>   r¾   rÀ   rÑ   rÒ   r7   )r   rž   s     r   r7   ÚHostAnswers.canonical_namek  s9   € Ø—‘œ#Ÿ-™-×,Ñ,¨d¯h©h´s·}±}·±Ó.GÓHˆØ×$Ñ$Ð$r    rO   )NNT)rP   rQ   rR   rS   rT   Úclassmethodr   r•   ÚboolrÕ   rÚ   rÛ   rÆ   r   r
   r2   rÜ   rè   r¾   r¥   r¿   r7   rX   rO   r    r   rÌ   rÌ   ?  s¼   † ñð ð  $Ø#Øñ	à�VÑðð �VÑðð ð	ð
 
ôó ðð  #×,Ñ,ñ.Øð.à	�%˜˜S˜‘/Ñ	"õ.ð& '-×&6Ñ&6ñ I ð I¸8ÀC¹=õ Ið% §¡§¡÷ %r    rÌ   c                   óF   • \ rS rSrSrSS\S\SS4S jjrSS jrSS	 jrS
r	g)ÚCacheStatisticsip  zCache StatisticsÚhitsÚmissesr,   Nc                 ó   • Xl         X l        g r   ©rð   rñ   )r   rð   rñ   s      r   r   ÚCacheStatistics.__init__s  s   € ØŒ	Ø�r    c                 ó    • SU l         SU l        g r¬   ró   rI   s    r   ÚresetÚCacheStatistics.resetw  s   € ØˆŒ	Øˆ�r    c                 óB   • [        U R                  U R                  5      $ r   )rï   rð   rñ   rI   s    r   ÚcloneÚCacheStatistics.clone{  s   € Ü˜tŸy™y¨$¯+©+Ó6Ð6r    ró   )r   r   ©r,   N)r,   rï   )
rP   rQ   rR   rS   rT   rÆ   r   rö   rù   rX   rO   r    r   rï   rï   p  s)   † Ùñ˜Sð ¨cð ¸$õ ô÷7r    rï   c                   óR   • \ rS rSrS
S jrS
S jrS\4S jrS\4S jrS\	4S jr
S	rg)Ú	CacheBasei  r,   Nc                 óV   • [         R                  " 5       U l        [        5       U l        g r   )Ú	threadingÚLockÚlockrï   Ú
statisticsrI   s    r   r   ÚCacheBase.__init__€  s   € Ü—N’NÓ$ˆŒ	Ü)Ó+ˆ�r    c                 ó„   • U R                      U R                  R                  5         SSS5        g! , (       d  f       g= f)zReset all statistics to zero.N)r  r  rö   rI   s    r   Úreset_statisticsÚCacheBase.reset_statistics„  s#   € à�Y‹YØ�O‰O×!Ñ!Ô#÷ �YŽYús   �1±
?c                 ó|   • U R                      U R                  R                  sSSS5        $ ! , (       d  f       g= f)z How many hits has the cache had?N)r  r  rð   rI   s    r   rð   ÚCacheBase.hits‰  s    € à�Y‹YØ—?‘?×'Ñ'÷ �Y�Yúó   �-­
;c                 ó|   • U R                      U R                  R                  sSSS5        $ ! , (       d  f       g= f)z"How many misses has the cache had?N)r  r  rñ   rI   s    r   rñ   ÚCacheBase.missesŽ  s    € à�Y‹YØ—?‘?×)Ñ)÷ �Y�Yúr	  c                 ó„   • U R                      U R                  R                  5       sSSS5        $ ! , (       d  f       g= f)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ù   rI   s    r   Úget_statistics_snapshotÚ!CacheBase.get_statistics_snapshot“  s%   € ð �Y‹YØ—?‘?×(Ñ(Ó*÷ �Y�Yús   �1±
?)r  r  rû   )rP   rQ   rR   rS   r   r  rÆ   rð   rñ   rï   r  rX   rO   r    r   rý   rý     s0   † ô,ô$ð
(�cô (ð
*˜ô *ð
+¨÷ +r    rý   c                   ó�   ^ • \ rS rSrSrSS\SS4U 4S jjjrSS jrS\S\	\
   4S	 jrS\S
\
SS4S jrSS\	\   SS4S jjrSrU =r$ )ÚCachei¡  z$Simple thread-safe DNS answer cache.Úcleaning_intervalr,   Nc                 óŠ   >• [         TU ]  5         0 U l        Xl        [        R                  " 5       U R                  -   U l        g)zV*cleaning_interval*, a ``float`` is the number of seconds between
periodic cleanings.
N)r   r   Údatar  r    Únext_cleaning)r   r  r   s     €r   r   ÚCache.__init__¤  s6   ø€ ô
 	‰ÑÔØ,.ˆŒ	Ø!2ÔÜ$(§I¢I£K°$×2HÑ2HÑ$HˆÕr    c                 ó\  • [         R                   " 5       nU R                  U::  a‡  / nU R                  R                  5        H(  u  p4UR                  U::  d  M  UR                  U5        M*     U H  nU R                  U	 M     [         R                   " 5       nXR                  -   U l        gg)z&Clean the cache if it's time to do so.N)r    r  r  Úitemsr¢   r?   r  )r   ÚnowÚkeys_to_deleteÚkÚvs        r   Ú_maybe_cleanÚCache._maybe_clean®  s‹   € ô �iŠi‹kˆØ×Ñ Ó$ØˆNØŸ	™	Ÿ™Ö)‘�Ø—<‘< 3Õ&Ø"×)Ñ)¨!Ö,ñ *ó $�Ø—I‘I˜a’Lñ $ä—)’)“+ˆCØ!$×'=Ñ'=Ñ!=ˆDÕð %r    Úkeyc                 ó†  • U R                      U R                  5         U R                  R                  U5      nUb#  UR                  [
        R
                  " 5       ::  a)  U R                  =R                  S-  sl         SSS5        gU R                  =R                  S-  sl        UsSSS5        $ ! , (       d  f       g= f©a#  Get 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  r>   r¢   r    r  rñ   rð   )r   r  r  s      r   r>   Ú	Cache.get¼  s‚   € ð �Y‹YØ×ÑÔØ—	‘	—‘˜cÓ"ˆAØ‰y˜AŸL™L¬D¯IªI«KÓ7Ø—‘×&Ò&¨!Ñ+Õ&Ø÷ ˆYð �O‰O× Ò  AÑ%Õ Ø÷ �Y�Yús   �A2B2Â B2Â2
C Úvaluec                 óŒ   • U R                      U R                  5         X R                  U'   SSS5        g! , (       d  f       g= f©zòAssociate 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  ©r   r  r"  s      r   ÚputÚ	Cache.putÐ  s,   € ð �Y‹YØ×ÑÔØ"�I‰I�c‰N÷ �YŽYús	   �5µ
Ac                 óì   • U R                      Ub  XR                  ;   a  U R                  U	 O.0 U l        [        R                  " 5       U R                  -   U l        SSS5        g! , (       d  f       g= f©a
  Flush 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  )r   r  s     r   ÚflushÚCache.flushÝ  sP   € ð �Y‹YØ‰ØŸ)™)Ó#ØŸ	™	 #˜øà�”	Ü%)§Y¢Y£[°4×3IÑ3IÑ%I�Ô"÷ �YŽYús   �AA%Á%
A3)r  r  r  )g     Àr@rû   r   )rP   rQ   rR   rS   rT   Úfloatr   r  ÚCacheKeyr   r•   r>   r&  r*  rX   rY   rZ   s   @r   r  r  ¡  sz   ø† Ù.ñI¨%ð I¸D÷ Ið Iô>ð�xð  H¨VÑ$4ô ð(#�xð #¨ð #°4ô #ñJ˜ (Ñ+ð J°t÷ Jó Jr    r  c                   ó2   • \ rS rSrSrS rSS jrS	S jrSrg)
ÚLRUCacheNodeið  zLRUCache node.c                 óB   • Xl         X l        SU l        X l        X l        g r¬   )r  r"  rð   ÚprevÚnextr%  s      r   r   ÚLRUCacheNode.__init__ó  s   € ØŒØŒ
ØˆŒ	ØŒ	Ø�	r    Nc                 ó^   • Xl         UR                  U l        XR                  l         Xl        g r   ©r1  r2  )r   Únodes     r   Ú
link_afterÚLRUCacheNode.link_afterú  s    € ØŒ	Ø—I‘IˆŒ	Ø�	‰	ŒØ�	r    c                 óp   • U R                   U R                  l         U R                  U R                   l        g r   r5  rI   s    r   ÚunlinkÚLRUCacheNode.unlink   s    € ØŸ™ˆ�	‰	ŒØŸ™ˆ�	‰	�r    )rð   r  r2  r1  r"  )r6  r/  r,   Nrû   )	rP   rQ   rR   rS   rT   r   r7  r:  rX   rO   r    r   r/  r/  ð  s   † Ùòô÷#r    r/  c                   óª   ^ • \ rS rSrSrSS\SS4U 4S jjjrS\SS4S jrS\S\	\
   4S	 jrS\S\4S
 jrS\S\
SS4S jrSS\	\   SS4S jjrSrU =r$ )ÚLRUCachei  aH  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.
Úmax_sizer,   Nc                 óà   >• [         TU ]  5         0 U l        U R                  U5        [	        SS5      U l        U R
                  U R
                  l        U R
                  U R
                  l        g)z\*max_size*, an ``int``, is the maximum number of nodes to cache;
it must be greater than 0.
N)r   r   r  Úset_max_sizer/  Úsentinelr1  r2  )r   r>  r   s     €r   r   ÚLRUCache.__init__  sS   ø€ ô
 	‰ÑÔØ24ˆŒ	Ø×Ñ˜(Ô#Ü&2°4¸Ó&>ˆŒØ!Ÿ]™]ˆ�‰ÔØ!Ÿ]™]ˆ�‰Õr    c                 ó    • US:  a  SnXl         g )Nr.   )r>  )r   r>  s     r   r@  ÚLRUCache.set_max_size  s   € Ø�a‹<ØˆHØ �r    r  c                 óŽ  • U R                      U R                  R                  U5      nUc)  U R                  =R                  S-  sl         SSS5        gUR                  5         UR                  R                  [        R                  " 5       ::  a@  U R                  UR                  	 U R                  =R                  S-  sl         SSS5        gUR                  U R                  5        U R                  =R                  S-  sl        U=R                  S-  sl        UR                  sSSS5        $ ! , (       d  f       g= fr   )r  r  r>   r  rñ   r:  r"  r¢   r    r  r7  rA  rð   ©r   r  r6  s      r   r>   ÚLRUCache.get   sØ   € ð �Y‹YØ—9‘9—=‘= Ó%ˆDØ‰|Ø—‘×&Ò&¨!Ñ+Õ&Ø÷	 ˆYð �K‰KŒMØ�z‰z×$Ñ$¬¯	ª	«Ó3Ø—I‘I˜dŸh™hÐ'Ø—‘×&Ò&¨!Ñ+Õ&Ø÷ ˆYð �O‰O˜DŸM™MÔ*Ø�O‰O× Ò  AÑ%Õ Ø�IŠI˜‰N�IØ—:‘:÷ �Y�Yús   �?D6ÁA4D6ÃAD6Ä6
Ec                 ó  • U R                      U R                  R                  U5      nUb-  UR                  R                  [
        R
                  " 5       ::  a
   SSS5        gUR                  sSSS5        $ ! , (       d  f       g= f)zBReturn the number of cache hits associated with the specified key.Nr   )r  r  r>   r"  r¢   r    rð   rF  s      r   Úget_hits_for_keyÚLRUCache.get_hits_for_key<  sT   € à�Y‹YØ—9‘9—=‘= Ó%ˆDØ‰|˜tŸz™z×4Ñ4¼¿	º	»ÓCØ÷ ˆYð
 —y‘y÷ �Y�Yús   �AA8Á#A8Á8
Br"  c                 óL  • U R                      U R                  R                  U5      nUb'  UR                  5         U R                  UR                  	 [        U R                  5      U R                  :¼  ab  U R                  R                  nUR                  5         U R                  UR                  	 [        U R                  5      U R                  :¼  a  Mb  [        X5      nUR                  U R                  5        X0R                  U'   SSS5        g! , (       d  f       g= fr$  )r  r  r>   r:  r  r(   r>  rA  r1  r/  r7  )r   r  r"  r6  Úgnodes        r   r&  ÚLRUCache.putE  s¿   € ð �Y‹YØ—9‘9—=‘= Ó%ˆDØÑØ—‘”Ø—I‘I˜dŸh™hÐ'Ü�d—i‘i“. D§M¡MÓ1ØŸ™×*Ñ*�Ø—‘”Ø—I‘I˜eŸi™iÐ(ô �d—i‘i“. D§M¡MÕ1ô   Ó+ˆDØ�O‰O˜DŸM™MÔ*Ø!�I‰I�c‰N÷ �YŽYús   �C	DÃ4DÄ
D#c                 ó˜  • U R                      UbF  U R                  R                  U5      nUb'  UR                  5         U R                  UR                  	 O[U R
                  R                  nX0R
                  :w  a/  UR                  nUR                  5         UnX0R
                  :w  a  M/  0 U l        SSS5        g! , (       d  f       g= fr)  )r  r  r>   r:  r  rA  r2  )r   r  r6  rL  r2  s        r   r*  ÚLRUCache.flush[  s‘   € ð �Y‹YØ‰Ø—y‘y—}‘} SÓ)�ØÑ#Ø—K‘K”MØŸ	™	 $§(¡(Ð+øàŸ™×*Ñ*�ØŸ}™}Ó,Ø Ÿ:™:�DØ—L‘L”NØ �Eð Ÿ}™}Õ,ð �”	÷ �YŽYús   �BB;Â+B;Â;
C	)r  r>  rA  )i † r   )rP   rQ   rR   rS   rT   rÆ   r   r@  r-  r   r•   r>   rI  r&  r*  rX   rY   rZ   s   @r   r=  r=    s•   ø† ññ
+ ð 
+°$÷ 
+ð 
+ð! Sð !¨Tô !ð
�xð  H¨VÑ$4ô ð8! Hð !°ô !ð"�xð "¨ð "°4ô "ñ,˜ (Ñ+ð °t÷ ó r    r=  c                   óÆ  • \ rS rSrSrSSS\\R                  R                  \	4   S\\R                  R                  \	4   S\\R                  R                  \	4   S\S	\S
\\   SS4S jrS\\\R$                  R&                     \\   4   4S jrS\\R,                  R.                  \\4   4S jrS\\R$                  R4                     S\\   S\\\   \4   4S jrSrg)Ú_Resolutionit  ac  Helper 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.
ÚresolverÚBaseResolverr9   r—   r˜   ÚtcpÚraise_on_no_answerÚsearchr,   Nc                 ó  • [        U[        5      (       a   [        R                  R	                  US 5      n[        R
                  R                  R                  U5      n[        R
                  R                  U5      (       a  [        e[        R                  R                  R                  U5      n[        R                  R                  U5      (       a  [        eXl        UR                  X'5      U l        U R                  S S  U l        X0l        X@l        XPl        X`l        0 U l        [        R                  R,                  U l        / U l        / U l        / U l        S U l        SU l        SU l        S U l        SU l        g )NFç        ) r#   r2   r¾   r¥   Ú	from_textrÀ   rÁ   rÕ   Úis_metatyper�   rÂ   rÃ   Úis_metaclassrR  Ú_get_qnames_to_tryÚqnames_to_tryr   r—   r˜   rT  rU  Únxdomain_responsesÚemptyr9   ÚnameserversÚcurrent_nameserversr_   r™   Útcp_attemptÚretry_with_tcpr‚   Úbackoff)r   rR  r9   r—   r˜   rT  rU  rV  s           r   r   Ú_Resolution.__init__€  s#  € ô �eœS×!Ñ!Ü—H‘H×&Ñ& u¨dÓ3ˆEÜ—‘×(Ñ(×-Ñ-¨fÓ5ˆÜ�=‰=×$Ñ$ V×,Ñ,ÜÐÜ—.‘.×+Ñ+×0Ñ0°Ó9ˆÜ�>‰>×&Ñ& w×/Ñ/ÜÐØ ŒØ%×8Ñ8¸ÓGˆÔØ×(Ñ(©Ð+ˆŒØŒØŒØŒØ"4ÔØQSˆÔä—X‘X—^‘^ˆŒ
Ø<>ˆÔØDFˆÔ Ø(*ˆŒØ?CˆŒØ ˆÔØ#ˆÔØ;?ˆŒØˆ�r    c                 ón  • [        U R                  5      S:”  Ga~  U R                  R                  S5      U l        U R                  R
                  (       Ga1  U R                  R
                  R                  U R                  U R                  U R                  45      nUb5  UR                  c$  U R                  (       a  [        UR                  S9eSU4$ U R                  R
                  R                  U R                  [        R                  R                  U R                  45      nUb\  UR                  R!                  5       [        R                   R"                  :X  a&  UR                  U R$                  U R                  '   GM‡  [        R&                  R)                  U R                  U R                  U R                  5      nU R                  R*                  bM  UR-                  U R                  R.                  U R                  R*                  U R                  R0                  S9  UR3                  U R                  R4                  U R                  R6                  U R                  R8                  U R                  R:                  S9  U R                  R<                  b  U R                  R<                  Ul        U R                  R?                  U R                  R@                  U R                  RB                  U R                  RD                  5      U l#        U R                  RH                  (       a   [J        RL                  " U RF                  5        U RF                  SS U l'        / U l(        SU l)        SU l*        SU l+        X l,        SU l-        US4$ [#        U R\                  U R$                  S9e)	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.
r   N©r:   )Ú	algorithm)ÚoptionsFgš™™™™™¹?r"   )/r(   r   Úpopr9   rR  Úcacher>   r—   r˜   rŸ   rU  ru   r:   r¾   rÀ   ÚANYÚrcoder   r^  rÄ   Ú
make_queryÚkeynameÚuse_tsigÚkeyringÚkeyalgorithmÚuse_ednsÚednsÚ	ednsflagsÚpayloadÚednsoptionsÚflagsÚ_enrich_nameserversÚ_nameserversÚnameserver_portsrš   r`  ÚrotateÚrandomÚshufflera  r_   r™   rb  rc  r‚   rd  r]  )r   rž   r‚   s      r   Únext_requestÚ_Resolution.next_request¥  sµ  € ô �$—+‘+Ó Ô"ØŸ™Ÿ™¨Ó+ˆDŒJð �}‰}×"×"Ð"ØŸ™×,Ñ,×0Ñ0Ø—Z‘Z §¡¨d¯l©lÐ;ó�ð Ñ%Ø—|‘|Ñ+°×0G×0GÜ&°·±Ñ@Ð@à $ f˜~Ð-ØŸ™×,Ñ,×0Ñ0Ø—Z‘Z¤§¡×!2Ñ!2°D·L±LÐAó�ð Ñ%¨&¯/©/×*?Ñ*?Ó*AÄSÇYÁY×EWÑEWÓ*Wð ;A¿/¹/�D×+Ñ+¨D¯J©JÑ7Úô —k‘k×,Ñ,¨T¯Z©Z¸¿¹ÀdÇlÁlÓSˆGØ�}‰}×$Ñ$Ñ0Ø× Ñ Ø—M‘M×)Ñ)Ø—M‘M×)Ñ)Ø"Ÿm™m×8Ñ8ð !ñ ð
 ×ÑØ—‘×"Ñ"Ø—‘×'Ñ'Ø—‘×%Ñ%ØŸ™×1Ñ1ð	 ñ ð �}‰}×"Ñ"Ñ.Ø $§¡× 3Ñ 3�”à#Ÿ}™}×@Ñ@Ø—‘×*Ñ*Ø—‘×.Ñ.Ø—‘×"Ñ"ó ˆDÔð
 �}‰}×#×#Ü—’˜t×/Ñ/Ô0Ø'+×'7Ñ'7¹Ð':ˆDÔ$ØˆDŒKØ"ˆDŒOØ$ˆDÔØ"'ˆDÔØ"ŒLØˆDŒLà˜T�?Ð"ô ˜d×0Ñ0¸D×<SÑ<SÑTÐTr    c                 ó¤  • U R                   (       aM  U R                  c   eU R                  R                  5       (       a   eSU l        SU l         U R                  SS4$ SnU R                  (       du  [        U R                  5      S:X  a  [        U R                  U R                  S9eU R                  S S  U l        U R                  n[        U R                  S-  S5      U l
        U R                  R                  S5      U l        U R                  =(       d    U R                  R                  5       U l        U R                  U R                  U4$ )NTFr   rX  )r‚   r_   é   )rc  r™   Úis_always_max_sizerb  ra  r(   r`  r€   r‚   r_   rd  Úminrj  rT  )r   rd  s     r   Únext_nameserverÚ_Resolution.next_nameserverð  s  € Ø××Ø—?‘?Ñ.Ð.Ð.Ø—‘×9Ñ9×;Ñ;Ð;Ð;Ø#ˆDÔØ"'ˆDÔØ—O‘O T¨1Ð-Ð-àˆØ×'×'Ü�4×#Ñ#Ó$¨Ó)ä#¨D¯L©LÀÇÁÑMÐMØ'+×'7Ñ'7¹Ð':ˆDÔ$Ø—l‘lˆGÜ˜tŸ|™|¨aÑ/°Ó3ˆDŒLà×2Ñ2×6Ñ6°qÓ9ˆŒØŸ8™8×K t§¡×'IÑ'IÓ'KˆÔØ—‘ ×!1Ñ!1°7Ð;Ð;r    r:   Úexc           	      ó<  • U R                   c   eU(       GaP  Ub   eU R                  R                  [        U R                   5      U R                  U R                   R                  5       UU45        [        U[        R                  R                  5      (       d?  [        U[        5      (       d*  [        U[        5      (       d  [        U[        5      (       a&  U R                  R                  U R                   5        g[        U[        R                  R                   5      (       a>  U R                  (       a&  U R                  R                  U R                   5        gSU l        gUc   e[        U[        R                  R$                  5      (       d   eUR'                  5       nU[        R&                  R(                  :X  aö   [+        U R,                  U R.                  U R0                  UU R                   R3                  5       U R                   R                  5       5      nU R6                  R8                  (       aG  U R6                  R8                  R;                  U R,                  U R.                  U R0                  4U5        UR<                  c$  U R>                  (       a  [A        URB                  S9eUS4$ U[        R&                  RD                  :X  aÒ   [+        U R,                  [        RF                  RH                  [        RJ                  RL                  U5      nXRN                  U R,                  '   U R6                  R8                  (       aU  U R6                  R8                  R;                  U R,                  [        RF                  RH                  U R0                  4U5        gU[        R&                  RP                  :X  aa  [Q        5       nU R                  R                  [        U R                   5      U R                  U R                   R                  5       UU45        UeU[        R&                  RR                  :w  d  U R6                  RT                  (       d%  U R                  R                  U R                   5        U R                  R                  [        U R                   5      U R                  U R                   R                  5       [        R&                  RW                  U5      U45        g! [4         a„  nU R                  R                  [        U R                   5      U R                  U R                   R                  5       UU45        U R                  R                  U R                   5         S nAgS nAff = f! [4         a„  nU R                  R                  [        U R                   5      U R                  U R                   R                  5       UU45        U R                  R                  U R                   5         S nAgS nAff = f)NT)NFrg  )NT),r™   r_   r?   r2   rb  Úanswer_portr#   r¾   Ú	exceptionÚ	FormErrorÚEOFErrorÚOSErrorrß   r`  ÚremoverÄ   Ú	Truncatedrc  rÅ   rm  ÚNOERRORr•   r9   r—   r˜   Úanswer_nameserverr8   rR  rk  r&  rŸ   rU  ru   r:   r   rÀ   rl  rÂ   ÚINr^  r\   ÚSERVFAILÚretry_servfailÚto_text)r   r:   r‡  rm  rž   ÚeÚyexs          r   Úquery_resultÚ_Resolution.query_result  sw  € ð �‰Ñ*Ð*Ð*ßàÑ#Ð#Ð#Ø�K‰K×Ñä˜Ÿ™Ó(Ø×$Ñ$Ø—O‘O×/Ñ/Ó1ØØðôô ˜2œsŸ}™}×6Ñ6×7Ñ7Ü˜b¤(×+Ñ+Ü˜b¤'×*Ñ*Ü˜bÔ"5×6Ñ6ð × Ñ ×'Ñ'¨¯©Ô8ð !ô ˜B¤§¡× 5Ñ 5×6Ñ6Ø×#×#à×$Ñ$×+Ñ+¨D¯O©OÔ<ð !ð +/�DÔ'Ø àÑ#Ð#Ð#Ü˜(¤C§K¡K×$<Ñ$<×=Ñ=Ð=Ð=Ø—‘Ó ˆØ”C—I‘I×%Ñ%Ó%ð%ÜØ—J‘JØ—K‘KØ—L‘LØØ—O‘O×5Ñ5Ó7Ø—O‘O×/Ñ/Ó1ó�ð* �}‰}×"×"Ø—‘×#Ñ#×'Ñ'¨¯©°T·[±[À$Ç,Á,Ð(OÐQWÔXØ�|‰|Ñ#¨×(?×(?Ü¨¯©Ñ8Ð8Ø˜D�>Ð!Ø”c—i‘i×(Ñ(Ó(ð%ÜØ—J‘J¤§¡× 1Ñ 1´3·>±>×3DÑ3DÀhó�ð  3;×#Ñ# D§J¡JÑ/Ø�}‰}×"×"Ø—‘×#Ñ#×'Ñ'Ø—Z‘Z¤§¡×!2Ñ!2°D·L±LÐAÀ6ôð
  Ø”c—i‘i×(Ñ(Ó(Ü“*ˆCØ�K‰K×Ñä˜Ÿ™Ó(Ø×$Ñ$Ø—O‘O×/Ñ/Ó1ØØðôð ˆIð œŸ	™	×*Ñ*Ó*°$·-±-×2N×2NØ× Ñ ×'Ñ'¨¯©Ô8Ø�K‰K×Ñä˜Ÿ™Ó(Ø×$Ñ$Ø—O‘O×/Ñ/Ó1Ü—I‘I×%Ñ% eÓ,Øðôð !øôU ó %Ø—‘×"Ñ"ä˜DŸO™OÓ,Ø×(Ñ(ØŸ™×3Ñ3Ó5ØØ ðôð × Ñ ×'Ñ'¨¯©Ô8Ü$ûð%ûô2 ó %Ø—‘×"Ñ"ä˜DŸO™OÓ,Ø×(Ñ(ØŸ™×3Ñ3Ó5ØØ ðôð × Ñ ×'Ñ'¨¯©Ô8Ü$ûð%ús4   ÇAS< ËAV Ó<
V
ÔA:VÖV
Ö
XÖA:XØX)rd  ra  r_   r™   r`  r^  r9   r   r]  rU  r˜   r—   r‚   rR  rc  rT  rb  )rP   rQ   rR   rS   rT   r   r¾   r¥   r¿   r2   rÀ   rÁ   rÂ   rÃ   rí   r   r   r
   rÄ   rÅ   r•   r  r™   Ú
Nameserverr,  r…  ÚMessager8   r˜  rX   rO   r    r   rQ  rQ  t  s/  † ñ	ð#à ð#ð �S—X‘X—]‘] CÐ'Ñ(ð#ð �c—m‘m×-Ñ-¨sÐ2Ñ3ð	#ð
 �s—~‘~×0Ñ0°#Ð5Ñ6ð#ð ð#ð !ð#ð ˜‘ð#ð 
ô#ðJIUà	ˆx˜Ÿ™×0Ñ0Ñ1°8¸FÑ3CÐCÑ	DôIUðV<  s§~¡~×'@Ñ'@À$ÈÐ'MÑ!Nô <ð*z!Ø  §¡×!4Ñ!4Ñ5ðz!Ø;CÀIÑ;Nðz!à	ˆx˜Ñ Ð%Ñ	&÷z!r    rQ  c                   óº  • \ rS rSr% Sr\R                  R                  \S'   \	\
\4   \S'   \\S'   \\R                  R                     \S'   \\S'   \\S'   \\S	'   \\   \S
'   \\\R                  R                  \
4      \S'   \\R                  R                  \
4   \S'   \\S'   \\S'   \\\R$                  R&                        \S'   \\S'   \\S'   \\   \S'   \\S'   \\S'   \\   \S'   \\\
\R*                  R,                  4      \S'    S1S\
S\SS4S jjrS2S jrS\SS4S jrS2S jr  S3S \S	\\   S!\\\      S\4S" jjrS#\R                  R                  S\\   S\\R                  R                     4S$ jrS\R<                  R>                  4S
\S\\\R                  R                  \
4      S%\\R                  R                  \
4   SS4S& jjr S'S'\RB                  RD                  S4S\\\\4      S\S\S(\\\R$                  R&                        SS4
S) jjr#S\SS4S* jr$\%S+\\\
\R*                  R,                  4      S\	\
\4   S,\S\\R*                  R,                     4S- j5       r&\'S\\\
\R*                  R,                  4      4S. j5       r(\(RR                  S+\\\
\R*                  R,                  4      SS4S/ j5       r(S0r*g)4rS  i‚  r   Údomainr{  rš   rV  Úuse_search_by_defaultri   Úlifetimerq  ro  rr  rt  ru  rw  rv  rk  rx  r”  r|  Úndotsrz  ÚfilenameÚ	configurer,   Nc                 ó°   • U R                  5         U(       a?  [        R                  S:X  a  U R                  5         gU(       a  U R	                  U5        ggg)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ö   ÚsysÚplatformÚread_registryÚread_resolv_conf)r   r¡  r¢  s      r   r   ÚBaseResolver.__init__ž  sC   € ð 	�
‰
ŒÞÜ�|‰|˜wÓ&Ø×"Ñ"Õ$ÞØ×%Ñ% hÕ/ð ð r    c                 ó\  • [         R                  R                  [         R                  R                  [        R
                  " 5       5      SS 5      U l        [        U R                  5      S:X  a  [         R                  R                  U l        / U l	        0 U l
        SU l        / U l        SU l        SU l        SU l        SU l        SU l        [         R$                  R&                  U l        SU l        SU l        SU l        SU l        SU l        SU l        SU l        SU l        SU l        g)	z1Reset all resolver configuration to the defaults.r.   Nr   r   Fg       @ç      @rh   )r¾   r¥   r¿   rY  rÚ   Úgethostnamer�  r(   Úrootrz  r{  rš   rV  rž  ri   rŸ  rq  ro  ÚtsigÚdefault_algorithmrr  rt  ru  rw  rv  rk  rx  r”  r|  r   rI   s    r   rö   ÚBaseResolver.reset³  sì   € ô —h‘h—m‘m¤C§H¡H×$6Ñ$6´v×7IÒ7IÓ7KÓ$LÈQÈRÐ$PÓQˆŒÜˆt�{‰{Ó˜qÓ ÜŸ(™(Ÿ-™-ˆDŒKØˆÔØ "ˆÔØˆŒ	ØˆŒØ%*ˆÔ"ØˆŒØˆŒØˆŒØˆŒÜŸH™H×6Ñ6ˆÔØˆŒ	ØˆŒØˆÔØˆŒØˆŒ
ØˆŒ
Ø#ˆÔØˆŒØˆ�
r    Úfc                 ó¨  • / n[        U[        5      (       a   [        U5      nO[
        R                  " U5      nU nU GH‹  n[        U5      S:X  d  US   S:X  d	  US   S:X  a  M'  UR                  5       n[        U5      S:  a  MH  US   S:X  a  UR                  US   5        Mg  US   S:X  a0  [        R                  R                  US   5      U l        / U l        M   US   S	:X  aM  / U l        USS
  H;  nU R                  R                  [        R                  R                  U5      5        M=     Mö  US   S:X  d  GM  USS
  H€  nUS:X  a	  SU l        M  US:X  a  U R!                  5         M*  SU;   a%   [#        UR                  S5      S   5      U l        MU  SU;   d  M]   [#        UR                  S5      S   5      U l        M‚     GMŽ     S
S
S
5        [        U5      S:X  a  [	        S5      eX l        g
! [         a    [	        SU 35      ef = f! [&        [(        4 a     Má  f = f! [&        [(        4 a     Mø  f = f! , (       d  f       Ny= f)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

zcannot open r   Ú#Ú;r‚  r™   r.   r�  rV  Nri  r|  TÚedns0ri   Ú:r   zno nameservers)r#   r2   Úopenr�  r’   Ú
contextlibÚnullcontextr(   Úsplitr?   r¾   r¥   rY  r�  rV  r|  rs  rÆ   ri   Ú
ValueErrorrµ   r   r`  )r   r°  r`  ÚcmÚlÚtokensÚsuffixÚopts           r   r§  ÚBaseResolver.read_resolv_confÍ  s$  € ð" ˆÜ�aœ×ÑðBÜ8<¸Q»‘ô
 ×'Ò'¨Ó*ˆBÙ�1Ü�Ü�q“6˜Q“; ! A¡$¨#£+°°1±¸³ÙØŸ™›�ô �v“; “?Ùà˜!‘9 Ó,Ø×&Ñ& v¨a¡yÖ1Ø˜A‘Y (Ó*Ü"%§(¡(×"4Ñ"4°V¸A±YÓ"?�D”Kà"$�D–KØ˜A‘Y (Ó*à"$�D”KØ"(¨¨£*˜ØŸ™×*Ñ*¬3¯8©8×+=Ñ+=¸fÓ+EÖFó #-ð ˜A‘Y )Ö+Ø% a b›z˜Ø (›?Ø*.˜DžKØ  G›^Ø ŸM™MžOØ&¨#Ó-ð%Ü/2°3·9±9¸S³>À!Ñ3DÓ/E ¦ð %¨�^ð%Ü-0°·±¸3³ÀÑ1BÓ-C ¦
ô  *ñ/ ÷ ôN ˆ{Ó˜qÓ Ü)Ð*:Ó;Ð;ð 'Õøôa ó Bä-°¸Q¸CÐ.@ÓAÐAðBûôJ %/´
Ð#;ó %Ú $ð%ûô
 %/´
Ð#;ó %Ú $ð%ú÷K �Rúse   ™G9 ½D IÅ5IÅ8"HÆIÆ%"H,Ç	IÇ9HÈH)	È%IÈ(H)	È)IÈ,I 	È<IÈ?I 	É IÉ
Ic                 óê   •  [         R                  R                  5       nUR                  b  UR                  U l        UR                  U l        UR
                  U l        g! [         a    [        ef = f)z9Extract resolver configuration from the Windows registry.N)r¾   Ú	win32utilÚget_dns_infor�  r`  rV  r'   rß   )r   Úinfos     r   r¦  ÚBaseResolver.read_registry  s\   € ð	&Ü—=‘=×-Ñ-Ó/ˆDØ�{‰{Ñ&Ø"Ÿk™k�”Ø#×/Ñ/ˆDÔØŸ+™+ˆD�KøÜó 	&Ü%Ð%ð	&ús   ‚AA! Á!A2Ústartr_   c                 óÚ   • Uc  U R                   OUn[        R                  " 5       nXA-
  nUc  / nUS:  a  US:  a	  [        XSS9eSnXR:¼  a	  [        XSS9e[        X%-
  U R                  5      $ )Nr   rh   rn   )rŸ  r    rf   r„  ri   )r   rÆ  rŸ  r_   r  Údurations         r   Ú_compute_timeoutÚBaseResolver._compute_timeout  su   € ð %-Ñ$4�4—=’=¸(ˆÜ�iŠi‹kˆØ‘;ˆØ‰>ØˆFØ�a‹<Ø˜"‹}ä%¨hÑFÐFð
 �ØÓÜ!¨(ÑBÐBÜ�8Ñ&¨¯©Ó5Ð5r    r9   c                 ó´  • Uc  U R                   n/ nUR                  5       (       a  UR                  U5        U$ UR                  [        R
                  R                  5      nU(       aÝ  [        U R                  5      S:”  a  U R                  S S  nOEU R                  [        R
                  R                  :w  a  U R                  b  U R                  /nO/ nU R                  c  SnOU R                  nU H  nUR                  X-   5        M     [        U5      U:”  a  UR                  SU5        U$ UR                  U5         U$ UR                  U5        U$ )Nr   r.   )rž  Úis_absoluter?   Úconcatenater¾   r¥   r¬  r(   rV  r�  r   Úinsert)r   r9   rV  r]  Ú	abs_qnameÚsearch_listr   r¾  s           r   r\  ÚBaseResolver._get_qnames_to_try7  s.  € ð
 ‰>Ø×/Ñ/ˆFØˆØ×Ñ×ÑØ× Ñ  Ô'ð< Ðð9 ×)Ñ)¬#¯(©(¯-©-Ó8ˆIÞÜ�t—{‘{Ó# aÓ'à"&§+¡+©a .‘KØ—[‘[¤C§H¡H§M¡MÓ1°d·k±kÑ6Mð $(§;¡; -‘Kà"$�Kà—:‘:Ñ%Ø‘Eà ŸJ™J�EÛ)�FØ!×(Ñ(¨©Ö8ñ *ä�u“: Ó%ð "×(Ñ(¨¨IÔ6ð Ðð "×(Ñ(¨Õ3ð Ðð ×$Ñ$ YÔ/ØÐr    rh  c                 ó(   • Xl         X l        X0l        g)z‰Add a TSIG signature to each query.

The parameters are passed to ``dns.message.Message.use_tsig()``;
see its documentation for details.
N)rq  ro  rr  )r   rq  ro  rh  s       r   rp  ÚBaseResolver.use_tsig`  s   € ð ŒØŒØ%Õr    r   ri  c                 óX   • Ub  USL a  SnOUSL a  SnXl         X l        X0l        X@l        g)a4  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.
NFrh   Tr   )rt  ru  rv  rw  )r   rt  ru  rv  ri  s        r   rs  ÚBaseResolver.use_ednsp  s5   € ð0 ‰<˜4 5š=Ø‰DØ�TŠ\ØˆDØŒ	Ø"ŒØŒØ"Õr    c                 ó   • Xl         g)z[Overrides the default flags with your own.

*flags*, an ``int``, the message flags to use.
N)rx  )r   rx  s     r   Ú	set_flagsÚBaseResolver.set_flags‘  s	   € ð �
r    r`  Údefault_portc                 óT  • / n[        U[        5      (       aÝ  U HÕ  n[        U[        R                  R                  5      (       a  UnO•[        R
                  R                  U5      (       a1  UR                  XS5      n[        R                  R                  XW5      nO@ [        U5      R                  S:w  a  [        e [        R                  R                  U5      nUR                  U5        M×     U$ [        S[!        U5       S35      e! [         a    [        SU S35      ef = f)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 Ú))r#   r$   r¾   r™   rš  ÚinetÚ
is_addressr>   ÚDo53Nameserverr   Úschemerß   r8   rº  ÚDoHNameserverr?   Útype)rÓ   r`  r{  rÙ  Úenriched_nameserversr™   Úenriched_nameserverrš   s           r   ry  Ú BaseResolver._enrich_nameservers™  s   € ð  "ÐÜ�k¤4×(Ñ(Û)�
ä˜j¬#¯.©.×*CÑ*C×DÑDØ*4Ñ'Ü—X‘X×(Ñ(¨×4Ñ4Ø+×/Ñ/°
ÓI�DÜ*-¯.©.×*GÑ*GØ"ó+Ñ'ðÜ# JÓ/×6Ñ6¸'ÓAÜ"5Ð5ð Bô +.¯.©.×*FÑ*FÀzÓ*RÐ'Ø$×+Ñ+Ð,?Ö@ñ) *ð2 $Ð#ô Ø=¼dÀ;Ó>OÐ=PÐPQÐRóð øô %ó Ü(Ø)¨*¨ð 6@ð @óð ðús   ÂDÄD'c                 ó   • U R                   $ r   )rz  rI   s    r   r`  ÚBaseResolver.nameservers½  s   € ð × Ñ Ð r    c                 ó\   • U R                  XR                  U R                  5        Xl        g)zã
*nameservers*, a ``list`` 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)ry  r{  rš   rz  )r   r`  s     r   r`  rç  Ã  s$   € ð 	× Ñ  ×.CÑ.CÀTÇYÁYÔOØ'Õr    )rz  rk  r�  rt  ru  rw  rx  rr  ro  rq  rŸ  r{  r`  r   rv  rš   r”  r|  rV  ri   rž  )z/etc/resolv.confTrû   r½   )+rP   rQ   rR   rS   rT   r¾   r¥   r¿   Ú__annotations__r   r2   rÆ   r   rí   r,  r   r   r   rt  ÚOptionr	   r™   rš  r   rö   r§  r¦  Ú
ErrorTuplerÉ  r\  r­  r®  rp  rÄ   ÚDEFAULT_EDNS_PAYLOADrs  r×  rì   ry  rW   r`  ÚsetterrX   rO   r    r   rS  rS  ‚  s{  ‡ Ùð �H‰H�M‰MÓØ˜3 ˜8‘nÓ$Ø
ƒIØ�—‘—‘ÑÓØÓØƒNØƒOØ�c‰]ÓØ�e˜CŸH™HŸM™M¨3Ð.Ñ/Ñ0Ó0Ø˜Ÿ™Ÿ™ sÐ*Ñ+Ó+Ø
ƒIØƒNØ˜$˜sŸx™xŸ™Ñ/Ñ0Ó0ØƒLØƒJØ�C‰=ÓØÓØƒLØ�C‰=ÓØ˜5  c§n¡n×&?Ñ&?Ð!?Ñ@ÑAÓAð EIñ0Øð0Ø=Að0à	õ0ô*ð4E' #ð E'¨$ô E'ôN	&ð %)Ø-1ñ	6àð6ð ˜5‘/ð6ð ˜˜jÑ)Ñ*ð	6ð
 
õ6ð0'Ø—X‘X—]‘]ð'Ø,4°T©Nð'à	ˆc�h‰h�m‰mÑ	ô'ðX 8<Ø/2¯x©x×/IÑ/Iñ	&àð&ð ˜% §¡§¡¨sÐ 2Ñ3Ñ4ð&ð ˜Ÿ™Ÿ™¨Ð+Ñ,ð	&ð
 
õ&ð$ ,-ØØ—{‘{×7Ñ7Ø37ñ#à�u˜S $˜YÑ'Ñ(ð#ð ð#ð ð	#ð
 ˜$˜sŸx™xŸ™Ñ/Ñ0ð#ð 
õ#ðB˜sð  tô ð ð!$à˜e C¨¯©×)BÑ)BÐ$BÑCÑDð!$ð ˜s C˜x™.ð!$ð ð	!$ð
 
ˆc�n‰n×'Ñ'Ñ	(ó!$ó ð!$ðF ð!à	�%˜˜SŸ^™^×6Ñ6Ð6Ñ7Ñ	8ó!ó ð!ð
 ×Ñð(Ø# E¨#¨s¯~©~×/HÑ/HÐ*HÑ$IÑJð(à	ó(ó ó(r    rS  c                   óŠ  • \ rS rSrSr\R                  R                  \R                  R                  SSSSSS4S\
\R                  R                  \4   S\
\R                  R                  \4   S	\
\R                  R                  \4   S
\S\\   S\S\S\\   S\\   S\4S jjr\R                  R                  \R                  R                  SSSSS4S\
\R                  R                  \4   S\
\R                  R                  \4   S	\
\R                  R                  \4   S
\S\\   S\S\S\\   S\4S jjrS\S\S\S\4S jr\R4                  4S\
\R                  R                  \4   S\S\S\4S jjrS\
\R                  R                  \4   S\R                  R                  4S jrSS\SS4S jjrSrg)ÚResolveriÓ  r   FNTr   r9   r—   r˜   rT  ÚsourcerU  Úsource_portrŸ  rV  r,   c
           	      óö  • [        XX#XFU	5      n
[        R                  " 5       n U
R                  5       u  pÍUb  U$ Uc   eSnU(       d‚  U
R                  5       u  pônU(       a  [        R                  " U5        U R                  X¸U
R                  5      n UR                  UUUUUS9nU
R                  US5      u  pÞUb  U$ U(       d  M‚  M©  ! [         a   nU
R                  SU5      u  nn SnAM°  SnAff = f)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)ri   rð  rñ  r>  )
rQ  r    r  r…  ÚsleeprÉ  r_   rz   r8   r˜  )r   r9   r—   r˜   rT  rð  rU  rñ  rŸ  rV  Ú
resolutionrÆ  r‚   rž   Údoner™   rd  ri   r:   r‡  Ú_s                        r   ÚresolveÚResolver.resolveÖ  s  € ô~ !Ø˜¨#À6ó
ˆ
ô —	’	“ˆØØ *× 7Ñ 7Ó 9ÑˆWð
 Ñ!à�ØÑ&Ð&Ð&ØˆDÞØ-7×-GÑ-GÓ-IÑ*� 'ÞÜ—J’J˜wÔ'Ø×/Ñ/°À×ARÑARÓS�ð
Ø)×/Ñ/ØØ 'Ø%Ø$/Ø!$ð  0ð  �Hð ",×!8Ñ!8¸À4Ó!H‘�ð
 Ñ%Ø!�M÷- �dñ øô0 !ó Ø *× 7Ñ 7¸¸bÓ A‘I�Q˜Ýûðús   ÂC Ã
C8ÃC3Ã3C8c	                 óh   • [         R                  " S[        SS9  U R                  UUUUUUUUS5	      $ )úü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() insteadr‚  ©Ú
stacklevelT©ÚwarningsÚwarnÚDeprecationWarningr÷  )	r   r9   r—   r˜   rT  rð  rU  rñ  rŸ  s	            r   rz   ÚResolver.query<  sG   € ô$ 	�ŠØ@ÜØò	
ð
 �|‰|ØØØØØØØØØó

ð 
	
r    Úipaddrr   r   c                 ó  • 0 nUR                  U5        [        R                  R                  US'   [        R                  R
                  US'   U R                  " [        R                  R                  U5      /UQ70 UD6$ )ah  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˜   )	Úupdater¾   rÀ   ÚPTRrÂ   r’  r÷  ÚreversenameÚfrom_address)r   r  r   r   Úmodified_kwargss        r   Úresolve_addressÚResolver.resolve_address_  sr   € ð  +-ˆØ×Ñ˜vÔ&Ü$'§M¡M×$5Ñ$5ˆ˜Ñ!Ü%(§^¡^×%6Ñ%6ˆ˜	Ñ"Ø�|Š|Ü�O‰O×(Ñ(¨Ó0ð
Ø37ò
Ø;Jñ
ð 	
r    r¥   r×   c                 ó  • 0 nUR                  U5        UR                  SS5        [        R                  R                  US'   U[
        R                  :X  a?  U R                  " U[        R                  R                  40 UD6n[        R                  US9$ U[
        R                  :X  a?  U R                  " U[        R                  R                  40 UD6n[        R                  US9$ U[
        R                  :w  a  [        SU 35      eUR                  SS5      nUR                  S	S5      n[         R                   " 5       n	U R                  " U[        R                  R                  4S
U R#                  X˜5      S.UD6nUR$                  nU R                  " U[        R                  R                  4S
U R#                  X˜5      S.UD6n[        R                  XeU(       + S9n
U
(       d  ['        UR(                  S9eU
$ )aÇ  Use 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Ù   rU  TrŸ  F)rU  rŸ  )rÍ   rÎ   rÏ   rg  )r  rj  r¾   rÂ   r’  rÚ   rÞ   r÷  rÀ   rÒ   rÌ   rÕ   rÝ   rÑ   rÛ   rß   r    rÉ  r9   ru   r:   )r   r¥   r×   r   r  rÎ   rÍ   rU  rŸ  rÆ  rÔ   s              r   Úresolve_nameÚResolver.resolve_namew  sÄ  € ð. +-ˆØ×Ñ˜vÔ&Ø×Ñ˜H dÔ+Ü%(§^¡^×%6Ñ%6ˆ˜	Ñ"à”V—^‘^Ó#Ø—’˜d¤C§M¡M§O¡OÑG°ÑGˆBÜ×#Ñ# rÐ#Ð*Ð*Ø”v—‘Ó&Ø—’˜d¤C§M¡M×$6Ñ$6ÑJ¸/ÑJˆBÜ×#Ñ# rÐ#Ð*Ð*Ø”v×'Ñ'Ó'Ü%Ð(?À¸xÐ&HÓIÐIà,×0Ñ0Ð1EÀtÓLÐØ"×&Ñ& z°4Ó8ˆÜ—	’	“ˆØ�\Š\ØÜ�M‰M×Ñð
ð  %Ø×*Ñ*¨5Ó;ñ	
ð
 ñ
ˆð �x‰xˆØ�\Š\ØÜ�M‰M�O‰Oð
ð  %Ø×*Ñ*¨5Ó;ñ	
ð
 ñ
ˆô ×"Ñ" bÐ?QÔ;QÐ"ÐRˆÞÜ B§K¡KÑ0Ð0Øˆr    c                 ó°   •  U R                  USS9nUR                  nU$ ! [        R                  R                   a  nUR                  n SnAU$ SnAff = f)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)rU  N)r÷  r7   r¾   rR  r   )r   r¥   rž   r7   r–  s        r   r7   ÚResolver.canonical_nameº  sY   € ð	.Ø—\‘\ $¸5�\ÐAˆFØ#×2Ñ2ˆNð Ðøô �|‰|×$Ñ$ó 	.Ø×-Ñ-ŒNØÐûð	.ús   ‚   A¾AÁAc                 óP  •  [         R                   " 5       U-   nU R                  [        R                  R                  SUS9n[        R
                  R                  U5      n[        R                  R                  X45      n[        U5      S:”  a  XPl	        gg! [         a     gf = f)aS  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.
ÚSVCB©rŸ  r   N)r    r÷  r¾   Ú_ddrÚ_local_resolver_namerz   Ú
_remainingÚ_get_nameservers_syncr(   r`  r8   )r   rŸ  r¢   rž   ri   r`  s         r   Útry_ddrÚResolver.try_ddrÑ  s�   € ð&
	ÜŸš› xÑ/ˆJØ—\‘\Ü—‘×-Ñ-¨vÀð "ð ˆFô —i‘i×*Ñ*¨:Ó6ˆGÜŸ(™(×8Ñ8¸ÓIˆKÜ�;Ó !Ó#Ø#.Õ ð $øäó 	Ùð	ús   ‚BB Â
B%Â$B%)r`  ©rª  ) rP   rQ   rR   rS   rT   r¾   rÀ   rÒ   rÂ   r’  r   r¥   r¿   r2   rÁ   rÃ   rí   r   rÆ   r,  r•   r÷  rz   r   r	  rÚ   rÛ   rÌ   r  r7   r  rX   rO   r    r   rï  rï  Ó  sb  † Ùð
 7:·m±m·o±oØ9<¿¹×9JÑ9JØØ $Ø#'ØØ$(Ø!%ñd"à�S—X‘X—]‘] CÐ'Ñ(ðd"ð �c—m‘m×-Ñ-¨sÐ2Ñ3ðd"ð �s—~‘~×0Ñ0°#Ð5Ñ6ð	d"ð
 ðd"ð ˜‘ðd"ð !ðd"ð ðd"ð ˜5‘/ðd"ð ˜‘ðd"ð 
õd"ðR 7:·m±m·o±oØ9<¿¹×9JÑ9JØØ $Ø#'ØØ$(ñ!
à�S—X‘X—]‘] CÐ'Ñ(ð!
ð �c—m‘m×-Ñ-¨sÐ2Ñ3ð!
ð �s—~‘~×0Ñ0°#Ð5Ñ6ð	!
ð
 ð!
ð ˜‘ð!
ð !ð!
ð ð!
ð ˜5‘/ð!
ð 
õ!
ðF
 cð 
°#ð 
Àð 
Èô 
ð6 ×&Ñ&ñ?à�C—H‘H—M‘M 3Ð&Ñ'ð?ð ð?ð ð	?ð
 
õ?ðF 5¨¯©¯©¸Ð);Ñ#<ð ÀÇÁÇÁô ñ. ð °÷ ð r    rï  Údefault_resolverc                  óB   • [         c
  [        5         [         c   e[         $ )z7Get the default resolver, initializing it if necessary.)r  Úreset_default_resolverrO   r    r   Úget_default_resolverr  õ  s    € äÑÜÔ ÜÑ'Ð'Ð'ÜÐr    c                  ó   • [        5       qg)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  rO   r    r   r  r  ý  s   € ô  “zÑr    FTr9   r—   r˜   rT  rð  rU  rñ  rŸ  rV  c	                 óD   • [        5       R                  U UUUUUUUU5	      $ )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÷  )	r9   r—   r˜   rT  rð  rU  rñ  rŸ  rV  s	            r   r÷  r÷    s5   € ô(  Ó!×)Ñ)ØØØØØØØØØó
ð 
r    c                 ó\   • [         R                  " S[        SS9  [        U UUUUUUUS5	      $ )rú  z)please use dns.resolver.resolve() insteadr‚  rû  Trý  )r9   r—   r˜   rT  rð  rU  rñ  rŸ  s           r   rz   rz   )  sC   € ô" ‡M‚MØ3Ô5GÐTUòô ØØØØØØØØØó
ð 
r    r  r   r   c                 ó>   • [        5       R                  " U /UQ70 UD6$ )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  r   r   s      r   r	  r	  J  s"   € ô  Ó!×1Ò1°&ÐJ¸4ÒJÀ6ÑJÐJr    r¥   r×   c                 ó8   • [        5       R                  " X40 UD6$ )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×   r   s      r   r  r  T  s   € ô  Ó!×.Ò.¨tÑF¸vÑFÐFr    c                 ó4   • [        5       R                  U 5      $ )z–Determine the canonical name of *name*.

See ``dns.resolver.Resolver.canonical_name`` for more information on the
parameters and possible exceptions.
)r  r7   ©r¥   s    r   r7   r7   `  s   € ô  Ó!×0Ñ0°Ó6Ð6r    c                 ó4   • [        5       R                  U 5      $ )a
  Try 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    r   r  r  j  s   € ô  Ó!×)Ñ)¨(Ó3Ð3r    rR  c                 ó2  • [        U [        5      (       a8  [        R                  R	                  U [        R                  R
                  5      n Uc
  [        5       nU R                  5       (       d  [        U 5      e[        R                  " 5       nUb  XT-   nOSn  Ub!  U[        R                  " 5       -
  nUS::  a  SnOSnUR                  U [        R                  R                  XUS9nUR                  c   eUR                  R                  U :X  a  U $   U R3                  5       n M�  ! [        R                  R                  [        R                  R                   4 Ga
  n	[        U	[        R                  R                  5      (       a   U	R#                  5       R%                  U 5      n
OU	R'                  5       n
U
(       aŸ  U
R(                   H�  nUR*                  [        R                  R                  :X  d  M-  UR,                  U:X  d  M?  UR                  R/                  U 5      u  n  nU[        R                  R0                  :X  d  M~  UR                  s  s Sn	A	$     Sn	A	GNQSn	A	ff = f! [        R                  R4                   a    [6        ef = f)ah  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``.
Nr   r  )r#   r2   r¾   r¥   rY  r¬  r  rÌ  rˆ   r    r÷  rÀ   ÚSOArŸ   rR  r   ru   r   r>   r:   Ú	authorityr—   r˜   ÚfullcompareÚNAMERELN_SUPERDOMAINÚparentÚNoParentrŒ   )r¥   r˜   rT  rR  rŸ  rÆ  r¢   Ú	rlifetimerž   r–  r:   ÚrrsÚnrrö  s                 r   Úzone_for_namer0  t  s   € ô@ �$œ×ÑÜ�x‰x×!Ñ! $¬¯©¯©Ó6ˆØÑÜ'Ó)ˆØ×Ñ×ÑÜ˜$ÓÐÜ�IŠI‹K€EàÑØÑ%‰
àˆ
Ø
ð	,àÑ%Ø&¬¯ª«Ñ4�	Ø “>Ø !�Iøà �	Ø×%Ñ%Ø”c—m‘m×'Ñ'¨À	ð &ð ˆFð —<‘<Ñ+Ð+Ð+Ø�|‰|× Ñ  DÓ(Ø�ð )ð,	Ø—;‘;“=ˆDñI øô  —‘×%Ñ%¤s§|¡|×'<Ñ'<Ð=ô 	,Ü˜!œSŸ\™\×2Ñ2×3Ñ3ØŸ;™;›=×,Ñ,¨TÓ2‘àŸ:™:›<�ÞØ#×-Ô-�CØ—z‘z¤S§]¡]×%6Ñ%6Õ6¸3¿;¹;È'Õ;QØ%(§X¡X×%9Ñ%9¸$Ó%?™
˜˜Q Ø¤§¡×!>Ñ!>Õ>ð $'§8¡8ŸOñ .ÿùð	,ûô* �x‰x× Ñ ó 	ÜˆOð	úsD   ÂA:D+ ÄI1 Ä+9I.Å$BI)Ç=I)È;I)ÉI)ÉI.É!I)É)I.É1%Jr   Úwhererš   c                 óâ  • Uc
  [        5       n/ n[        U [        5      (       aS  [        R                  R                  U 5      (       a/  UR                  [        R                  R                  X5      5        OTUR                  X5      R                  5        H1  nUR                  [        R                  R                  XQ5      5        M3     [        R                  R                  SS9nXFl        U$ )aê  Make 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)r¢  )r  r#   r2   r¾   rÝ  rÞ  r?   r™   rß  r  rè   rR  rï  r`  )r1  rš   r×   rR  r`  rà   Úress          r   Úmake_resolver_atr4  É  s²   € ð. ÑÜ'Ó)ˆØ?A€KÜ�%œ×Ñ¤#§(¡(×"5Ñ"5°e×"<Ñ"<Ø×Ñœ3Ÿ>™>×8Ñ8¸ÓEÕFà×,Ñ,¨UÓ;×EÑEÖGˆGØ×ÑœsŸ~™~×<Ñ<¸WÓKÖLñ Hä
�,‰,×
Ñ
¨%Ð
Ð
0€CØ!„OØ€Jr    c                 óH   • [        X
X¼5      R                  UUUUUUUUU	5	      $ )aY  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.
)r4  r÷  )r1  r9   r—   r˜   rT  rð  rU  rñ  rŸ  rV  rš   r×   rR  s                r   Ú
resolve_atr6  í  s9   € ô8 ˜E¨Ó:×BÑBØØØØØØØØØó
ð 
r    c           
      ó  • U[         R                  -  S:w  a  [        XX#XE5      $ U[         R                  [         R                  -  -  S:w  a%  [         R
                  " [         R                  S5      eU c(  Uc%  [         R
                  " [         R                  S5      e/ nS nU c  [        XX#XE5      $  [        R                  R                  U 5        [        XX#XE5      $ ! [         a     Of = f [        R                  X5      nUR                  5       nUR                  5       R!                  S5      nOu! [        R"                  R$                   a&    [         R
                  " [         R                  S5      e[         a&    [         R
                  " [         R&                  S5      ef = fS n	 Uc  Sn	O][)        U5      n	OQ! [         aD    U[         R*                  -  S:X  a*   [         R,                  " U5      n	 O! [         a      O
f = f Of = fU	c%  [         R
                  " [         R                  S5      e/ n
US:X  a!  [         R.                  [         R0                  /nOU/nU[         R2                  -  S:w  a  UnOSnU HS  u  pÞU HH  n[4        U    H8  n[        R                  R7                  XÙ4U5      nU
R9                  XãXLU45        M:     MJ     MU     [;        U
5      S:X  a%  [         R
                  " [         R                  S5      eU
$ )Nr   z*Non-recoverable failure in name resolutionúName or service not knownTz$Temporary failure in name resolutionÚ )rÚ   ÚAI_NUMERICHOSTÚ_original_getaddrinfoÚAI_ADDRCONFIGÚAI_V4MAPPEDÚgaierrorÚEAI_FAILÚ
EAI_NONAMEr¾   rÝ  Úaf_for_addressr8   Ú	_resolverr  rÜ   r7   r•  rR  r   Ú	EAI_AGAINrÆ   ÚAI_NUMERICSERVÚgetservbynameÚ
SOCK_DGRAMÚSOCK_STREAMÚAI_CANONNAMEÚ_protocols_for_socktypeÚlow_level_address_tupler?   r(   )ÚhostÚservicer×   ÚsocktypeÚprotorx  Úaddrsr7   rÔ   rš   ÚtuplesÚ	socktypesr;   ÚaddrÚafÚ
addr_tuples                   r   Ú_getaddrinforU  )  sÀ  € ð Œv×$Ñ$Ñ$¨Ó)ô % T°FÀeÓSÐSØ”×$Ñ$¤v×'9Ñ'9Ñ9Ñ:¸aÓ?ô �oŠoÜ�O‰OÐIó
ð 	
ð �|˜™Ü�oŠoœf×/Ñ/Ð1LÓMÐMØ€EØ€Nð �|Ü$ T°FÀeÓSÐSðô 	�‰×Ñ Ô%Ü$ T°FÀeÓSÐSøÜó Ùðúð
XÜ×(Ñ(¨Ó6ˆØ×.Ñ.Ó0ˆØ ×/Ñ/Ó1×9Ñ9¸$Ó?‰øÜ�<‰<× Ñ ó NÜ�oŠoœf×/Ñ/Ð1LÓMÐMÜó Xô �oŠoœf×.Ñ.Ð0VÓWÐWð	Xúð
 €Dðà‰?Ø‰Dä�w“<‰DøÜó Ø”6×(Ñ(Ñ(¨AÓ-ðÜ×+Ò+¨GÓ4’øÜó Úðúñ .ðúð �|Ü�oŠoœf×/Ñ/Ð1LÓMÐMØ€FØ�1ƒ}Ü×&Ñ&¬×(:Ñ(:Ð;‰	à�Jˆ	ØŒv×"Ñ"Ñ" aÓ'Ø‰àˆÛ‰ˆÛ!ˆHÜ0°Ô:�Ü ŸX™X×=Ñ=¸t¸lÈBÓO�
Ø—‘˜r¨U¸:ÐFÖGó ;ó "ñ ô
 ˆ6ƒ{�aÓÜ�oŠoœf×/Ñ/Ð1LÓMÐMØ€MsV   Â2+C Ã
C+Ã*C+Ã/AD4 Ä4A2F&Æ,F> Æ2F> Æ>!HÇ G8Ç8
HÈHÈHÈHÈHc                 ó  • U S   nU S   n[        U 5      S:X  a  U S   n[        R                  nOS n[        R                  n[	        X#U[        R
                  [        R                  S5      n[        U5      S:”  a  [        S5      eUS   S   S   nU[        R                  -  (       a  SnOSn[        R                  R                  U5      n	U[        R                  -  S:X  a@   [        R                  U	S5      n
U
R                  S   R                   R#                  S	5      nOUnUb  US[1        U5      -   -  nU[        R2                  -  (       a  [1        U5      nX¼4$ [        R4                  " X85      nX¼4$ ! [        R$                  R&                  [        R$                  R(                  4 aV    U[        R*                  -  (       a%  [        R,                  " [        R.                  S
5      eUnUb  US[1        U5      -   -  n NÌf = f)Nr   r.   é   ra   z'sockaddr resolved to multiple addressesÚudprT  r  Tr8  Ú%)r(   rÚ   rÝ   rÞ   rU  rG  ÚSOL_TCPr�  ÚNI_DGRAMr¾   r  r  ÚNI_NUMERICHOSTrB  r÷  rŸ   Útargetr•  rR  r   ru   ÚNI_NAMEREQDr>  r@  r2   ÚNI_NUMERICSERVÚgetservbyport)Úsockaddrrx  rK  rš   Úscoper×   rP  rR  Úpnamer9   rž   ÚhostnamerL  s                r   Ú_getnameinfore  }  sÃ  € Ø�A‰;€DØ�A‰;€DÜ
ˆ8ƒ}˜ÓØ˜‘ˆÜ—‘‰àˆÜ—‘ˆÜ˜$ f¬f×.@Ñ.@Ä&Ç.Á.ÐRSÓT€FÜ
ˆ6ƒ{�QƒÜÐ?Ó@Ð@Ø�!‰9�Q‰<˜‰?€DØŒv�‰×Ø‰àˆÜ�O‰O×(Ñ(¨Ó.€EØŒv×$Ñ$Ñ$¨Ó)ð	-Ü×&Ñ& u¨eÓ4ˆFØ—|‘| A‘×-Ñ-×5Ñ5°dÓ;‰Hð ˆØÑØ˜œc %›jÑ(Ñ(ˆHØŒv×$Ñ$×$Ü�d“)ˆð ÐÐô ×&Ò& tÓ3ˆØÐÐøô —‘×%Ñ%¤s§|¡|×'<Ñ'<Ð=ó 	-Ø”v×)Ñ)×)Ü—o’o¤f×&7Ñ&7Ð9TÓUÐUØˆHØÑ Ø˜C¤# e£*Ñ,Ñ,�ùð	-ús   Ã&>E: Å:BHÈHc                 óx   • U c  [         R                  " 5       n  [        U 5      u  n   nU $ ! [         a     U $ f = fr   )rÚ   r«  Ú_gethostbyaddrr8   )r¥   rö  s     r   Ú_getfqdnrh  ¤  sJ   € Ø�|Ü×!Ò!Ó#ˆðÜ% dÓ+‰ˆˆq�!ð
 €Køô ó ØØ€Kðús   š+ «
9¸9c                 ó$   • [        U 5      S   S   $ )Nr‚  r   )Ú_gethostbyname_exr$  s    r   Ú_gethostbynamerk  °  s   € Ü˜TÓ" 1Ñ% aÑ(Ð(r    c                 óò   • / n/ n[        U S[        R                  [        R                  [        R                  [        R
                  5      nUS   S   nU H  nUR                  US   S   5        M     XAU4$ )Nr   ra   rW  )rU  rÚ   rÞ   rG  rZ  rH  r?   )r¥   Úaliasesrè   rP  Ú	canonicalÚitems         r   rj  rj  ´  ss   € Ø€GØ€IÜØˆa”—‘¤×!3Ñ!3´V·^±^ÄV×EXÑEXó€Fð �q‘	˜!‘€IÛˆØ×Ñ˜˜a™ ™Ö$ñ ð  	Ð*Ð*r    c                 óú  •  [         R                  R                  U 5        U SSS4n[        R                  n[        U[        R                  5      u  p4/ n/ n[        USU[        R                  [        R                  [        R                  5      nUS   S   n[         R                   R#                  X 5      n	U HB  n
U
S   S   n[         R                   R#                  X+5      nXœ:X  d  M1  UR%                  U5        MD     X…U4$ ! [
         al     [         R                  R                  U 5        O3! [
         a&    [        R                  " [        R                  S5      ef = fU S4n[        R                  n GNBf = f)NéP   r   r8  ra   rW  )r¾   Úipv6Ú	inet_atonrÚ   rÝ   r8   Úipv4r>  r@  rÞ   re  r^  rU  rG  rZ  rH  rÝ  Ú	inet_ptonr?   )Úipra  r×   r¥   rö  rm  rè   rP  rn  Úbin_ipro  rR  Úbin_addrs                r   rg  rg  Á  sK  € ð
 Ü�‰×Ñ˜2ÔØ˜˜A˜q�>ˆÜ—‘ˆô ˜X¤v×'9Ñ'9Ó:�I€TØ€GØ€IÜØˆa�œ×+Ñ+¬V¯^©^¼V×=PÑ=Pó€Fð �q‘	˜!‘€Iô �X‰X×Ñ Ó+€FÛˆØ�A‰w�q‰zˆÜ—8‘8×%Ñ% fÓ3ˆØÕØ×Ñ˜TÖ"ñ	 ð  	Ð*Ð*øô1 ó  ð	RÜ�H‰H×Ñ˜rÕ"øÜó 	RÜ—/’/¤&×"3Ñ"3Ð5PÓQÐQð	Rúà˜�8ˆÜ—‘‹ð ús)   ‚5D Ä
E:ÄD/Ä.E:Ä/0EÅE:Å9E:c                 óÖ   • U c
  [        5       n U q[        [        l        [
        [        l        [        [        l        [        [        l
        [        [        l        [        [        l        g)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  rB  rU  rÚ   Úgetaddrinfore  Úgetnameinforh  Úgetfqdnrk  Úgethostbynamerj  Úgethostbyname_exrg  Úgethostbyaddr)rR  s    r   Úoverride_system_resolverr€  á  sF   € ð ÑÜ'Ó)ˆà€IÜ%„FÔÜ%„FÔÜ„F„NÜ)„FÔÜ/„FÔÜ)„FÕr    c                  ó¼   • Sq [        [        l        [        [        l        [        [        l        [        [        l	        [        [        l        [        [        l        g)z5Undo the effects of prior override_system_resolver().N)rB  r;  rÚ   rz  Ú_original_getnameinfor{  Ú_original_getfqdnr|  Ú_original_gethostbynamer}  Ú_original_gethostbyname_exr~  Ú_original_gethostbyaddrr  rO   r    r   Úrestore_system_resolverr‡  û  s8   € ð €IÜ.„FÔÜ.„FÔÜ&„F„NÜ2„FÔÜ8„FÔÜ2„FÕr    rû   r  )r   r   )zrT   r·  r}  rÚ   r¤  rÿ   r    rþ  Útypingr   r   r   r   r   r	   r
   r   Úurllib.parser   Údns._ddrr¾   Údns.ednsÚdns.exceptionÚ	dns.flagsÚdns.inetÚdns.ipv4Údns.ipv6Údns.messageÚdns.nameÚ	dns.rdataÚdns.nameserverÚ	dns.queryÚ	dns.rcodeÚdns.rdataclassÚdns.rdatatypeÚdns.rdtypes.svcbbaseÚdns.reversenameÚdns.tsigr¥  Údns.win32utilrŠ  ÚDNSExceptionr   r\   r2   rí   rÆ   r8   rÄ   r›  rë  rd   ÚTimeoutrf   ru   r€   rˆ   rŒ   r�   r’   r•   r)   rÊ   rÌ   rï   rý   r¥   r¿   rÀ   rÁ   rÂ   rÃ   r-  r  r/  r=  rQ  rS  rï  r  ré  r  r  rÒ   r’  r,  r÷  rz   r	  rÛ   r  r7   r  r0  r4  r6  rF  ÚSOL_UDPrG  rZ  rI  rB  rz  r;  r{  r‚  r|  rƒ  r}  r„  r~  r…  r  r†  rU  re  rh  rk  rj  rg  r€  r‡  rO   r    r   Ú<module>r      s©  ðò$ ã Û Û Û 
Û Û Û ß N× NÓ NÝ !ã Û Û Û Û Û Û Û Û Û Û Û Û Û Û Û Û Û à‡<�<�7ÓÛôU/ˆs�}‰}×)Ñ)ô U/ôpCˆs�}‰}×)Ñ)ô Cð ØˆS�MØØØ	ˆ)�Sˆ.ÑØˆS�[‰[× Ñ Ñ!ð	#ñ€
ð˜D Ñ,ð °°c±ô ô
�c—m‘m×+Ñ+ô 
ð, €ô'ˆs�}‰}×)Ñ)ô 'ô$
�C—M‘M×.Ñ.ô 
ô2P�#—-‘-×,Ñ,ô PôM�—‘×*Ñ*ô Mô+�C—M‘M×.Ñ.ô +ôP˜cŸm™m×8Ñ8ô P÷Bñ BôJ@ˆdô @ô.%�'ô .%÷b7ñ 7÷+ñ +ð> �—‘—‘ §¡× 7Ñ 7¸¿¹×9RÑ9RÐRÑS€ôLJˆIô LJ÷^#ñ #ô*lˆyô l÷^K!ñ K!÷\N(ñ N(ôb
[ˆ|ô [ð~ (,Ð �(˜8Ñ$Ó +ð˜hô ô"ð 36·-±-·/±/Ø58·^±^×5FÑ5FØØ Ø#ØØ $Ø!ñØ�—‘—‘ Ð#Ñ$ðà�#—-‘-×)Ñ)¨3Ð.Ñ/ðð �3—>‘>×,Ñ,¨cÐ1Ñ2ðð 
ð	ð
 �S‰Mðð ðð ðð �u‰oðð �T‰Nðð õðF 36·-±-·/±/Ø58·^±^×5FÑ5FØØ Ø#ØØ $ñØ�—‘—‘ Ð#Ñ$ðà�#—-‘-×)Ñ)¨3Ð.Ñ/ðð �3—>‘>×,Ñ,¨cÐ1Ñ2ðð 
ð	ð
 �S‰Mðð ðð ðð �u‰oðð õðBK˜Cð K¨ð K°sð K¸vô Kð 4:×3CÑ3Cñ	GØ
�—‘—‘˜sÐ"Ñ
#ð	GØ-0ð	GØORð	Gàõ	Gð7˜˜sŸx™xŸ}™}¨cÐ1Ñ2ð 7°s·x±x·}±}ô 7ñ4�eð 4 dõ 4ð *-¯©×):Ñ):ØØ#'Ø $ñRØ
�—‘—‘˜sÐ"Ñ
#ðRà�^‰^×&Ñ&ðRð 
ðRð �xÑ ð	Rð
 �u‰oðRð 	‡X�X‡]�]õRðn Ø×"Ñ"Ø#'ñ	!Ø�—‘—‘ Ð#Ñ$ð!à
ð!ð ð!ð �xÑ ð	!ð
 õ!ðN 36·-±-·/±/Ø58·^±^×5FÑ5FØØ Ø#ØØ $Ø!ØØ×"Ñ"Ø#'ñ&Ø�—‘—‘ Ð#Ñ$ð&à�—‘—‘ Ð#Ñ$ð&ð �#—-‘-×)Ñ)¨3Ð.Ñ/ð&ð �3—>‘>×,Ñ,¨cÐ1Ñ2ð	&ð
 
ð&ð �S‰Mð&ð ð&ð ð&ð �u‰oð&ð �T‰Nð&ð ð&ð ð&ð �xÑ ð&ð õ&ð^ ×Ñ˜Ÿ™Ð'Ø
×Ñ˜Ÿ™Ð(ðÐ ð
 €	Ø×*Ñ*Ð Ø×*Ñ*Ð Ø—N‘NÐ Ø ×.Ñ.Ð Ø#×4Ñ4Ð Ø ×.Ñ.Ð ð 
�t F×$4Ñ$4¸qÈÐQRôQôh$ôN	ò)ò
+ò+ñ@* x°Ñ'9ð *ÀTõ *õ4
3r    