%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/
Upload File :
Create Path :
Current File : //proc/self/root/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/reversename.pyc

�
�ac@s�dZddlZddlZddlZddlZddlmZejj	d�Z
ejj	d�Zd�Zd�Z
dS(sDNS Reverse Map Names.i����N(tPY3s
in-addr.arpa.s	ip6.arpa.cCs(y�tjj|�}tjj|�r�trQg|dD]}d|^q8}n'g|dD]}dt|�^q\}t}n4gttj	|�j
��D]}|^q�}t}WnFtk
r�gt
tjj|��D]}d|^q�}t}nX|j�tjjdj|�d|�S(sTConvert an IPv4 or IPv6 address in textual form into a Name object whose
    value is the reverse-map domain name of the address.

    *text*, a ``text``, is an IPv4 or IPv6 address in textual form
    (e.g. '127.0.0.1', '::1')

    Raises ``dns.exception.SyntaxError`` if the address is badly formed.

    Returns a ``dns.name.Name``.
    is%dt.torigin(tdnstipv6t	inet_atont	is_mappedRtordtipv4_reverse_domaintstrtbinasciithexlifytdecodetipv6_reverse_domaint	Exceptiont	bytearraytipv4treversetnamet	from_texttjoin(ttexttv6tbytetpartsRtx((sD/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/reversename.pytfrom_address s$'	.

,

cCs0|jt�rb|jt�}t|j�}|j�dj|�}tjj	tjj
|��S|jt�r|jt�}t|j�}|j�g}d}t|�}x;||kr�|j
dj|||d!��|d7}q�Wdj|�}tjj	tjj
|��Stjjd��dS(sConvert a reverse map domain name into textual address form.

    *name*, a ``dns.name.Name``, an IPv4 or IPv6 address in reverse-map name
    form.

    Raises ``dns.exception.SyntaxError`` if the name does not have a
    reverse-map form.

    Returns a ``text``.
    Ritit:s"unknown reverse-map address familyN(tis_subdomainRt
relativizetlisttlabelsRRRRt	inet_ntoaRR
tlentappendRt	exceptiontSyntaxError(RR RRtitl((sD/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/reversename.pyt
to_address?s&

!(t__doc__R
tdns.nameRtdns.ipv6tdns.ipv4tdns._compatRRRRR
RR((((sD/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/reversename.pyt<module>s	

Zerion Mini Shell 1.0