| Server IP : 162.144.4.212 / Your IP : 216.73.216.108 Web Server : Apache System : Linux gator2125.hostgator.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64 User : cozeellc ( 2980) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/site-packages/isc/__pycache__/ |
Upload File : |
a
��j� � @ 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.9/site-packages/isc/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��
� \}}|�� D ]h}t|�t
ur�|�d�}t�d|�r�qn|�� } |r�t| d �|kr�t| d �}| d d krnt| d �}qn|| _|| _ 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�_�line�fieldsr r r �__init__ s2 ��
zkeyzone.__init__N)r r r �__doc__r'