/usr/lib/python3.9/site-packages/dns/__pycache__
NameSizeModeActions
asyncbackend.cpython-39.opt-1.pyc26160644editdlrm
asyncbackend.cpython-39.pyc26160644editdlrm
asyncquery.cpython-39.opt-1.pyc178050644editdlrm
asyncquery.cpython-39.pyc178170644editdlrm
asyncresolver.cpython-39.opt-1.pyc129580644editdlrm
asyncresolver.cpython-39.pyc130020644editdlrm
dnssec.cpython-39.opt-1.pyc321600644editdlrm
dnssec.cpython-39.pyc321880644editdlrm
dnssectypes.cpython-39.opt-1.pyc16160644editdlrm
dnssectypes.cpython-39.pyc16160644editdlrm
e164.cpython-39.opt-1.pyc34520644editdlrm
e164.cpython-39.pyc34520644editdlrm
edns.cpython-39.opt-1.pyc147200644editdlrm
edns.cpython-39.pyc147340644editdlrm
entropy.cpython-39.opt-1.pyc33480644editdlrm
entropy.cpython-39.pyc33480644editdlrm
enum.cpython-39.opt-1.pyc32490644editdlrm
enum.cpython-39.pyc32490644editdlrm
exception.cpython-39.opt-1.pyc55180644editdlrm
exception.cpython-39.pyc57140644editdlrm
flags.cpython-39.opt-1.pyc22080644editdlrm
flags.cpython-39.pyc22080644editdlrm
grange.cpython-39.opt-1.pyc10890644editdlrm
grange.cpython-39.pyc11330644editdlrm
immutable.cpython-39.opt-1.pyc24280644editdlrm
immutable.cpython-39.pyc24280644editdlrm
inet.cpython-39.opt-1.pyc46030644editdlrm
inet.cpython-39.pyc46030644editdlrm
ipv4.cpython-39.opt-1.pyc18440644editdlrm
ipv4.cpython-39.pyc18440644editdlrm
ipv6.cpython-39.opt-1.pyc39380644editdlrm
ipv6.cpython-39.pyc39380644editdlrm
message.cpython-39.opt-1.pyc506310644editdlrm
message.cpython-39.pyc506720644editdlrm
name.cpython-39.opt-1.pyc350740644editdlrm
name.cpython-39.pyc350890644editdlrm
namedict.cpython-39.opt-1.pyc29860644editdlrm
namedict.cpython-39.pyc29860644editdlrm
nameserver.cpython-39.opt-1.pyc89080644editdlrm
nameserver.cpython-39.pyc89080644editdlrm
node.cpython-39.opt-1.pyc116050644editdlrm
node.cpython-39.pyc116050644editdlrm
opcode.cpython-39.opt-1.pyc24750644editdlrm
opcode.cpython-39.pyc24750644editdlrm
query.cpython-39.opt-1.pyc402980644editdlrm
query.cpython-39.pyc403430644editdlrm
rcode.cpython-39.opt-1.pyc32530644editdlrm
rcode.cpython-39.pyc32530644editdlrm
rdata.cpython-39.opt-1.pyc236090644editdlrm
rdata.cpython-39.pyc236090644editdlrm
rdataclass.cpython-39.opt-1.pyc27920644editdlrm
rdataclass.cpython-39.pyc27920644editdlrm
rdataset.cpython-39.opt-1.pyc154370644editdlrm
rdataset.cpython-39.pyc154510644editdlrm
rdatatype.cpython-39.opt-1.pyc66730644editdlrm
rdatatype.cpython-39.pyc66730644editdlrm
renderer.cpython-39.opt-1.pyc98220644editdlrm
renderer.cpython-39.pyc98410644editdlrm
resolver.cpython-39.opt-1.pyc524720644editdlrm
resolver.cpython-39.pyc526250644editdlrm
reversename.cpython-39.opt-1.pyc30550644editdlrm
reversename.cpython-39.pyc30550644editdlrm
rrset.cpython-39.opt-1.pyc78850644editdlrm
rrset.cpython-39.pyc78990644editdlrm
serial.cpython-39.opt-1.pyc29330644editdlrm
serial.cpython-39.pyc29330644editdlrm
set.cpython-39.opt-1.pyc87990644editdlrm
set.cpython-39.pyc87990644editdlrm
tokenizer.cpython-39.opt-1.pyc172420644editdlrm
tokenizer.cpython-39.pyc172560644editdlrm
transaction.cpython-39.opt-1.pyc202610644editdlrm
transaction.cpython-39.pyc202610644editdlrm
tsig.cpython-39.opt-1.pyc103810644editdlrm
tsig.cpython-39.pyc103810644editdlrm
tsigkeyring.cpython-39.opt-1.pyc18350644editdlrm
tsigkeyring.cpython-39.pyc18350644editdlrm
ttl.cpython-39.opt-1.pyc16800644editdlrm
ttl.cpython-39.pyc16800644editdlrm
update.cpython-39.opt-1.pyc88860644editdlrm
update.cpython-39.pyc88860644editdlrm
version.cpython-39.opt-1.pyc5630644editdlrm
version.cpython-39.pyc5630644editdlrm
versioned.cpython-39.opt-1.pyc87230644editdlrm
versioned.cpython-39.pyc87750644editdlrm
win32util.cpython-39.opt-1.pyc56530644editdlrm
win32util.cpython-39.pyc56530644editdlrm
wire.cpython-39.opt-1.pyc33270644editdlrm
wire.cpython-39.pyc33550644editdlrm
xfr.cpython-39.opt-1.pyc77710644editdlrm
xfr.cpython-39.pyc77890644editdlrm
zone.cpython-39.opt-1.pyc452680644editdlrm
zone.cpython-39.pyc454120644editdlrm
zonefile.cpython-39.opt-1.pyc176630644editdlrm
zonefile.cpython-39.pyc176870644editdlrm
zonetypes.cpython-39.opt-1.pyc10230644editdlrm
zonetypes.cpython-39.pyc10230644editdlrm
_asyncbackend.cpython-39.opt-1.pyc42080644editdlrm
_asyncbackend.cpython-39.pyc42080644editdlrm
_asyncio_backend.cpython-39.opt-1.pyc89840644editdlrm
_asyncio_backend.cpython-39.pyc90020644editdlrm
_ddr.cpython-39.opt-1.pyc40710644editdlrm
_ddr.cpython-39.pyc40710644editdlrm
_features.cpython-39.opt-1.pyc23670644editdlrm
_features.cpython-39.pyc23670644editdlrm
_immutable_ctx.cpython-39.opt-1.pyc21590644editdlrm
_immutable_ctx.cpython-39.pyc21590644editdlrm
__init__.cpython-39.opt-1.pyc6670644editdlrm
__init__.cpython-39.pyc6670644editdlrm
Edit: /usr/lib/python3.9/site-packages/dns/__pycache__/asyncresolver.cpython-39.pyc (13002B)
a àMÒe¼Eã@sÖdZddlZddlZddlmZmZmZmZmZddl Z ddl Z ddl Z ddl Z ddlZ ddlZ ddlZ ddlZ ddlZ ddlmZmZmZmZe jjZe jjZGdd„de jjƒZdaedœdd „Z ddœd d „Z!e j"j#e j$j%d dd ddddf ee j&j'e(fee j"j)e(fee j$j*e(fe+ee(e+e,ee-ee+ee j.j/e jj0dœ dd„Z1e(eee jj0dœdd„Z2ej3fee j&j'e(fe,ee jj4dœdd„Z5ee j&j'e(fe j&j'dœdd„Z6d(e-ddœdd„Z7e j$j%d ddfee j&j'e(fe j$j*e+eeee j.j/e j&j'dœdd „Z8d!ej3dfee j&j'e(fe,e,eeed"œd#d$„Z9e j"j#e j$j%d dd ddddd!ej3df ee j&j'e(fee j&j'e(fee j"j)e(fee j$j*e(fe+ee(e+e,ee-ee+ee j.j/e,e,eee jj0d%œd&d'„Z:dS))úAsynchronous DNS stub resolver.éN)ÚAnyÚDictÚListÚOptionalÚUnion)ÚNXDOMAINÚNoAnswerÚ NoRootSOAÚ NotAbsolutec @sþeZdZdZejjejjdddddddf e ej j e fe ejj e fe ejje feee eeeeeeeejjejjdœ dd„Ze eeejjd œd d „Zejfe ej j e feeejjd œd d„Ze ej j e fej j dœdd„Zdeddœdd„ZdS)ÚResolverrFNTr© ÚqnameÚrdtypeÚrdclassÚtcpÚsourceÚraise_on_no_answerÚ source_portÚlifetimeÚsearchÚbackendÚreturnc  Ãstj ||||||| ¡} | s&tj ¡} t ¡} |  ¡\} }|durF|S| dusRJ‚d}|s.|  ¡\}}}|r||  |¡IdH|  | || j ¡}z |j | ||||| d�IdH}Wn@t yì}z(|   d|¡\}}WYd}~qVWYd}~n d}~00|   |d¡\}}|durV|SqVq.dS)a�Query nameservers asynchronously to find the answer to the question. *backend*, a ``dns.asyncbackend.Backend``, or ``None``. If ``None``, the default, then dnspython will use the default backend. See :py:func:`dns.resolver.Resolver.resolve()` for the documentation of the other parameters, exceptions, and return type of this method. NF)ÚtimeoutrrZmax_sizer)ÚdnsÚresolverZ _ResolutionÚ asyncbackendZget_default_backendÚtimeZ next_requestZnext_nameserverÚsleepÚ_compute_timeoutÚerrorsZ async_queryÚ ExceptionZ query_result)ÚselfrrrrrrrrrrZ resolutionÚstartZrequestÚanswerZdoneÚ nameserverZbackoffrÚresponseÚexÚ_©r)ú5/usr/lib/python3.9/site-packages/dns/asyncresolver.pyÚresolve-s>ÿ   ú"zResolver.resolve©ÚipaddrÚargsÚkwargsrcÏsLi}| |¡tjj|d<tjj|d<|jtj |¡g|¢Ri|¤ŽIdHS)a¿Use an asynchronous 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. rrN) ÚupdaterÚ rdatatypeZPTRÚ rdataclassÚINr+Z reversenameZ from_address)r"r-r.r/Úmodified_kwargsr)r)r*Úresolve_addressns    ÿÿÿzResolver.resolve_address©ÚnameÚfamilyr/rc ËsXi}| |¡| dd¡tjj|d<|tjkr^|j|tjj fi|¤ŽIdH}tj j j |d�S|tj kr–|j|tjjfi|¤ŽIdH}tj j j |d�S|tjkr®td|›�ƒ‚| dd¡}| d d¡}t ¡} |j|tjjfd | | |¡d œ|¤ŽIdH}|j}|j|tjj fd | | |¡d œ|¤ŽIdH}tj j j ||| d �} | �sTt|jd �‚| S)aUse an asynchronous 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. rNr)Úv4)Úv6zunknown address family rTrF)rr)r:r9Z add_empty)r&)r0Úpoprr2r3ÚsocketZAF_INETr+r1ÚArÚ HostAnswersZmakeZAF_INET6ZAAAAÚ AF_UNSPECÚNotImplementedErrorrrrr r&) r"r7r8r/r4r9r:rrr#Úanswersr)r)r*Ú resolve_nameŠsP        þ üû þ üû ÿ zResolver.resolve_name©r7rc ÃsRz|j|dd�IdH}|j}Wn.tjjyL}z|j}WYd}~n d}~00|S)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+Úcanonical_namerrr)r"r7r$rDÚer)r)r*rDÏs  zResolver.canonical_nameç@)rrcÃstz\t ¡|}|jtjjd|d�IdH}tj |¡}tj ||¡IdH}t|ƒdkrZ||_ Wnt ynYn0dS)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. Zsvcb)rNr) rr+rZ_ddrZ_local_resolver_nameÚqueryZ _remainingZ_get_nameservers_asyncÚlenÚ nameserversr!)r"rZ expirationr$rrIr)r)r*Útry_ddräs  ÿ     zResolver.try_ddr)rF) Ú__name__Ú __module__Ú __qualname__Ú__doc__rr1r=r2r3rr7ÚNameÚstrÚ RdataTypeÚ RdataClassÚboolrÚintÚfloatrÚBackendrÚAnswerr+rr5r<r?r>rBrDrJr)r)r)r*r *sFõ ô Bþ ýû E r )rcCstdurtƒtdusJ‚tS)zDGet the default asynchronous resolver, initializing it if necessary.N)Údefault_resolverÚreset_default_resolverr)r)r)r*Úget_default_resolvers rZcCs tƒadS)z¤Re-initialize default asynchronous resolver. Note that the resolver configuration (i.e. /etc/resolv.conf on UNIX systems) will be re-read immediately. N)r rXr)r)r)r*rYsrYFTr c Ãs$tƒ |||||||||| ¡ IdHS)a Query nameservers asynchronously to find the answer to the question. This is a convenience function that uses the default resolver object to make the query. See :py:func:`dns.asyncresolver.Resolver.resolve` for more information on the parameters. N)rZr+) rrrrrrrrrrr)r)r*r+sör+r,cÏs tƒj|g|¢Ri|¤ŽIdHS)z¦Use a resolver to run a reverse query for PTR records. See :py:func:`dns.asyncresolver.Resolver.resolve_address` for more information on the parameters. N)rZr5)r-r.r/r)r)r*r5=s r5r6cËstƒj||fi|¤ŽIdHS)z¨Use a resolver to asynchronously query for address records. See :py:func:`dns.asyncresolver.Resolver.resolve_name` for more information on the parameters. N)rZrB)r7r8r/r)r)r*rBIs rBrCcÃstƒ |¡IdHS)z©Determine the canonical name of *name*. See :py:func:`dns.resolver.Resolver.canonical_name` for more information on the parameters and possible exceptions. N)rZrD)r7r)r)r*rDUsrDrF)rrcÃstƒ |¡IdHS)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. N)rZrJ)rr)r)r*rJ_srJ)r7rrrrrc ÃsÂt|tƒrtj |tjj¡}|dur*tƒ}| ¡s:t|ƒ‚zB|j |tj j |||d�IdH}|j dushJ‚|j j|krz|WSWnt tfy’Yn0z | ¡}Wq:tjjyºt‚Yq:0q:dS)z½Find the name of the zone which contains the specified name. See :py:func:`dns.resolver.Resolver.zone_for_name` for more information on the parameters and possible exceptions. N)r)Ú isinstancerPrr7Z from_textÚrootrZÚ is_absoluter r+r1ZSOAZrrsetrr ÚparentZNoParentr )r7rrrrr$r)r)r*Ú zone_for_nameis& ÿ    r_é5)ÚwhereÚportr8rrcÃsŠ|durtƒ}g}t|tƒr>tj |¡r>| tj ||¡¡n4|  ||¡IdH}|  ¡D]}| tj ||¡¡qXtj j dd�}||_ |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.asyncresolver.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. NF)Z configure)rZr[rPrZinetZ is_addressÚappendr%ZDo53NameserverrBZ addressesZ asyncresolverr rI)rarbr8rrIrAZaddressÚresr)r)r*Úmake_resolver_at�s re)rarrrrrrrrrrrbr8rrc Ãs6t|| | | ƒIdH}| ||||||||| | ¡ IdHS)a‘Query nameservers to find the answer to the question. This is a convenience function that calls ``dns.asyncresolver.make_resolver_at()`` to make a resolver, and then uses it to resolve the query. See ``dns.asyncresolver.Resolver.resolve`` for more information on the resolution parameters, and ``dns.asyncresolver.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.asyncresolver.make_resolver_at()`` and then use that resolver for the queries instead of calling ``resolve_at()`` multiple times. N)rer+)rarrrrrrrrrrrbr8rrdr)r)r*Ú resolve_at²sörf)rF);rNr<rÚtypingrrrrrZdns._ddrrZdns.asyncbackendZdns.asyncqueryZ dns.exceptionZdns.nameZ dns.queryZdns.rdataclassZ dns.rdatatypeZ dns.resolverrr r r Z asyncqueryZudpZ_udprZ_tcprZ BaseResolverr rXrZrYr1r=r2r3r7rOrPrQrRrSrTrUrrVrWr+r5r?r>rBrDrJr_rerfr)r)r)r*ÚsÎ[ ö õ $þ ÿþ  û ú &üû (ò ñ