| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.7/site-packages/isc/__pycache__/ |
Upload File : |
B
��e]� � @ sJ d dl Z d dlZd dlZd dlmZmZ G dd� de�ZG dd� d�ZdS )� N)�Popen�PIPEc @ s e Zd ZdS )�KeyZoneExceptionN)�__name__�
__module__�__qualname__� r r �/usr/lib/python3.7/keyzone.pyr s r c @ s e Zd ZdZdd� ZdS )�keyzonez/reads a zone file to find data relevant to keysc
C s� d | _ d | _|sd S |r2tj�|�r2t�|tj�s>td��d S d }}t|dd||gt t d��
� \}}xt|�� D ]h}t|�t
k r�|�d�}t�d|�r�qp|�� } |r�t| d �|kr�t| d �}| d d krpt| d �}qpW || _|| _ d S )
Nz"named-compilezone" not foundz-o�-)�stdout�stderr�asciiz^[:space:]*;� � ZDNSKEY)�maxttl�keyttl�os�path�isfile�access�X_OKr r r Zcommunicate�
splitlines�type�str�decode�re�search�split�int)
�self�name�filenameZczpathr r �fp�_�lineZfieldsr r r �__init__ s.
zkeyzone.__init__N)r r r �__doc__r&