Server IP : 192.158.238.246 / Your IP : 3.133.87.185 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3.6/site-packages/isc/__pycache__/ |
Upload File : |
3 �g� � @ 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.6/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 | s8tjj|� s8tj|tj� rDtd��d S d }}t|dd||gt t d�j � \}}xv|j� D ]j}t|�t k r�|jd�}tjd|�r�qv|j� } | s�t| d �|kr�t| d �}| d d krvt| d �}qvW || _|| _ 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&