%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/dns/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/dns/__pycache__/nameserver.cpython-312.pyc

�

5��e�&����ddlmZmZddlmZddlZddlZddlZddl	Zddl
ZGd�d�ZGd�de�ZGd�d	e�Z
Gd
�de�ZGd�d
e�ZGd�de�Zy)�)�Optional�Union)�urlparseNc�|�eZdZd�Zd�Zdefd�Zdefd�Zdefd�Z	de
fd�Z		ddejjd	ed
eede
ded
ededejj"fd�Z		ddejjd	ed
eede
dedej&j(d
ededejj"fd�Zy)�
Nameserverc��y�N���selfs �0/usr/lib/python3/dist-packages/dns/nameserver.py�__init__zNameserver.__init__s���c��t�r	��NotImplementedErrorrs r
�__str__zNameserver.__str__���!�!r�returnc��t�r	rrs r
�kindzNameserver.kindrrc��t�r	rrs r
�is_always_max_sizezNameserver.is_always_max_sizerrc��t�r	rrs r
�answer_nameserverzNameserver.answer_nameserverrrc��t�r	rrs r
�answer_portzNameserver.answer_portrr�request�timeout�source�source_port�max_size�one_rr_per_rrset�ignore_trailingc��t�r	r�rrrr r!r"r#r$s        r
�queryzNameserver.querys
��"�!r�backendc	��K�t��wr	r�	rrrr r!r"r(r#r$s	         r
�async_queryzNameserver.async_query*s����"�!�s�	N�FF)�__name__�
__module__�__qualname__rr�strr�boolrr�intr�dns�message�QueryMessage�floatr�Messager'�asyncbackend�Backendr+r
rr
rrs8��
�"�"�c�"�"�D�"�"�3�"�"�S�"�"'� %�
"����)�)�
"��
"���
�	
"�
�
"��
"��
"��
"�

���	�	�
"�("'� %�"����)�)�"��"���
�	"�
�"��
"��!�!�)�)�"��"��"�

���	�	�"rrc�^��eZdZdedef�fd�Zdefd�Zdefd�Zd�Z	defd�Z
defd	�Z�xZS)
�AddressAndPortNameserver�address�portc�>��t�|��||_||_yr	)�superrr<r=�rr<r=�	__class__s   �r
rz!AddressAndPortNameserver.__init__9s���
���������	rrc��t�r	rrs r
rzAddressAndPortNameserver.kind>rrc��y)NFr
rs r
rz+AddressAndPortNameserver.is_always_max_sizeA���rc�^�|j�}|�d|j�d|j��S)N�:�@)rr<r=)r�ns_kinds  r
rz AddressAndPortNameserver.__str__Ds,���)�)�+����!�D�L�L�>��4�9�9�+�6�6rc��|jSr	)r<rs r
rz*AddressAndPortNameserver.answer_nameserverHs���|�|�rc��|jSr	)r=rs r
rz$AddressAndPortNameserver.answer_portKs���y�y�r)
r-r.r/r0r2rrr1rrrr�
__classcell__�rAs@r
r;r;8sK������3��
"�c�"��D��7��3���S�rr;c�d��eZdZddedef�fd�
Zd�Z		ddejjde
deeded	ed
ededejjfd
�Z		ddejjde
deeded	edejj d
ededejjfd�Z�xZS)�Do53Nameserverr<r=c�&��t�|�||�yr	)r?rr@s   �r
rzDo53Nameserver.__init__Ps���
����$�'rc��y)N�Do53r
rs r
rzDo53Nameserver.kindSs��rrrr r!r"r#r$rc
��|r=tjj||j||j||||��}|Stjj||j||j||d||dd��}|S)N)rr=r r!r#r$T)	rr=r r!�raise_on_truncationr#r$�
ignore_errors�ignore_unexpected)r3r'�tcpr<r=�udp)	rrrr r!r"r#r$�responses	         r
r'zDo53Nameserver.queryVs�����y�y�}�}�������Y�Y��'�!1� /�%�	�H�0���y�y�}�}�������Y�Y��'�$(�!1� /�"�"&�%��H��rr(c	��4K�|rFtjj||j||j|||||��	�d{���}	|	Stjj||j||j||d|||dd���d{���}	|	S7�O7��w)N)rr=r r!r(r#r$T)
rr=r r!rSr(r#r$rTrU)r3�
asyncqueryrVr<r=rW)
rrrr r!r"r(r#r$rXs
          r
r+zDo53Nameserver.async_query{s������ �^�^�/�/�������Y�Y��'��!1� /�0�
�
�H�4��!�^�^�/�/�������Y�Y��'�$(��!1� /�"�"&�0�
�
�H���5
��
�s%�AB�B�AB�
B�B�B)�5r,)r-r.r/r0r2rrr3r4r5r6rr1r7r'r8r9r+rKrLs@r
rNrNOs���(��(�3�(��"'� %�#����)�)�#��#���
�	#�
�#��
#��#��#�

���	�	�#�Z"'� %�&����)�)�&��&���
�	&�
�&��
&��!�!�)�)�&��&��&�

���	�	�&rrNc���eZdZ			ddedeedeeefdef�fd�
Zd�Zdefd�Z	d	�Z
defd
�Zdefd�Z
			ddejj d
edeedededededejj$fd�Z		ddejj d
edeedededej(j*dededejj$fd�Z�xZS)�
DoHNameserver�url�bootstrap_address�verify�want_getc�Z��t�|��||_||_||_||_yr	)r?rr^r_r`ra)rr^r_r`rarAs     �r
rzDoHNameserver.__init__�s-���	�������!2������ ��
rc��y)N�DoHr
rs r
rzDoHNameserver.kind�rDrrc��y)NTr
rs r
rz DoHNameserver.is_always_max_size�s��rc��|jSr	�r^rs r
rzDoHNameserver.__str__�����x�x�rc��|jSr	rgrs r
rzDoHNameserver.answer_nameserver�rhrc�L�t|j�j}|�d}|S)Ni�)rr^r=)rr=s  r
rzDoHNameserver.answer_port�s%������!�&�&���<��D��rrrr r!r"r#r$c��tjj||j||||j|||j
|j��
S�N)rr r!r_r#r$r`�post)r3r'�httpsr^r_r`rar&s        r
r'zDoHNameserver.query�sQ���y�y�����H�H���#�"�4�4�-�+��;�;��m�m�#��
�	
rr(c	���K�tjj||j||||j|||j
|j��
�d{���S7��wrl)r3rZrnr^r_r`rar*s	         r
r+zDoHNameserver.async_query�sa�����^�^�)�)���H�H���#�"�4�4�-�+��;�;��m�m�#�*�
�
�	
�
�s�AA�A�A)NTF�FFFr,)r-r.r/r0rrr1rrrrrr2rr3r4r5r6r7r'r8r9r+rKrLs@r
r]r]�ss���,0�#'��!�
�!�$�C�=�!��d�C�i� �	!�
�!���D����3���S���!&� %�
����)�)�
��
���
�	
�
�
��

��
��
�

���	�	�
�>"'� %�
����)�)�
��
���
�	
�
�
��

��!�!�)�)�
��
��
�

���	�	�
rr]c���eZdZ			ddededeedeeeff�fd�
Zd�Z				dde
jjde
d	eed
ededed
ede
jjfd�Z		dde
jjde
d	eed
edede
j j"ded
ede
jjfd�Z�xZS)�
DoTNameserverr<r=�hostnamer`c�B��t�|�||�||_||_yr	)r?rrsr`)rr<r=rsr`rAs     �r
rzDoTNameserver.__init__�s"���	����$�'� ��
���rc��y)N�DoTr
rs r
rzDoTNameserver.kindrDrrrr r!r"r#r$rc
��tjj||j|j||||j
|j��S�N)r=rr#r$�server_hostnamer`)r3r'�tlsr<r=rsr`r&s        r
r'zDoTNameserver.querysF���y�y�}�}���L�L�����-�+� �M�M��;�;��	
�		
rr(c	
��K�tjj||j|j||||j
|j���d{���S7��wrx)r3rZrzr<r=rsr`r*s	         r
r+zDoTNameserver.async_querysV�����^�^�'�'���L�L�����-�+� �M�M��;�;�(�	
�	
�		
�	
���AA�A�A)�UNTrpr,)r-r.r/r0r2rrr1rrr3r4r5r6r7r'r8r9r+rKrLs@r
rrrr�sJ����"&�#'�	��	��	��3�-�		�
�d�C�i� �	���!&� %�
����)�)�
��
���
�	
�
�
��

��
��
�

���	�	�
�:"'� %�
����)�)�
��
���
�	
�
�
��

��!�!�)�)�
��
��
�

���	�	�
rrrc���eZdZ			ddededeeefdeef�fd�
Zd�Z				dde
jjde
d	eed
ededed
ede
jjfd�Z		dde
jjde
d	eed
edede
j j"ded
ede
jjfd�Z�xZS)�
DoQNameserverr<r=r`ryc�B��t�|�||�||_||_yr	)r?rr`ry)rr<r=r`ryrAs     �r
rzDoQNameserver.__init__0s#���	����$�'����.��rc��y)N�DoQr
rs r
rzDoQNameserver.kind;rDrrrr r!r"r#r$rc
��tjj||j|j||||j
|j��S�N)r=rr#r$r`ry)r3r'�quicr<r=r`ryr&s        r
r'zDoQNameserver.query>sH���y�y�~�~���L�L�����-�+��;�;� �0�0��	
�		
rr(c	
��K�tjj||j|j||||j
|j���d{���S7��wr�)r3rZr�r<r=r`ryr*s	         r
r+zDoQNameserver.async_querySsX�����^�^�(�(���L�L�����-�+��;�;� �0�0�)�	
�	
�		
�	
�r|)r}TNrpr,)r-r.r/r0r2rr1rrrr3r4r5r6r7r'r8r9r+rKrLs@r
rr/sJ����#'�)-�	/��	/��	/��d�C�i� �		/�
"�#��	/���!&� %�
����)�)�
��
���
�	
�
�
��

��
��
�

���	�	�
�:"'� %�
����)�)�
��
���
�	
�
�
��

��!�!�)�)�
��
��
�

���	�	�
rr)�typingrr�urllib.parser�dns.asyncbackendr3�dns.asyncquery�dns.inet�dns.message�	dns.queryrr;rNr]rrrr
rr
�<module>r�sk��"�!������*"�*"�Z�z��.R�-�R�jM
�J�M
�`8
�,�8
�v8
�,�8
r

Zerion Mini Shell 1.0