File: //usr/local/CyberPanel/lib64/python3.10/site-packages/DNS/__pycache__/Base.cpython-310.pyc
o
��h}? �
@ s4 d Z ddlZddlZddlZddlZddlZddlZddlmZm Z m
Z
zddlmZ e� ZW n ddlZY G dd� de
�ZG dd � d e�ZG d
d� de�ZG dd
� d
e�ZG dd� de�ZG dd� de�ZddlmZ dde
jejddddg d� ad$dd�Zdd� Zdd� Zdd� ZG d d!� d!�Zd"d#� ZdS )%u<
$Id$
This file is part of the py3dns project.
Homepage: https://launchpad.net/py3dns
This code is covered by the standard Python License. See LICENSE for details.
Changes for Python3 port © 2011-14 Scott Kitterman <scott@kitterman.com>
Base functionality. Request and Response classes, that sort of thing.
� N� )�Type�Class�Opcode)�SystemRandomc @ � e Zd ZdS )�DNSErrorN��__name__�
__module__�__qualname__� r
r
�>/usr/local/CyberPanel/lib/python3.10/site-packages/DNS/Base.pyr � r c @ r )�
ArgumentErrorNr r
r
r
r r r r c @ r )�SocketErrorNr r
r
r
r r r r c @ r )�TimeoutErrorNr r
r
r
r r ! r r c @ s e Zd Zdd� ZdS )�ServerErrorc C s t �| ||� || _|| _d S �N)r �__init__�message�rcode)�selfr r r
r
r r $ s
zServerError.__init__N)r
r r r r
r
r
r r # s r c @ r )�IncompleteReplyErrorNr r
r
r
r r ) r r )�Lib�udp�5 � ) �protocol�port�opcode�qtype�rd�timing�timeout�
server_rotate�server�/etc/resolv.confc C s\ zt | d��
}t|�W d � W S 1 sw Y W dS ty- td �d� Y S w )zCparses the /etc/resolv.conf file and sets defaults for name servers�rNr&