%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/proc/thread-self/root/lib64/python2.7/site-packages/dns/
Upload File :
Create Path :
Current File : //proc/self/root/proc/thread-self/root/lib64/python2.7/site-packages/dns/reversename.pyc

�
#�Sc@sddZddlZddlZddlZejjd�Zejjd�Zd�Z	d�Z
dS(sDNS Reverse Map Names.

@var ipv4_reverse_domain: The DNS IPv4 reverse-map domain, in-addr.arpa.
@type ipv4_reverse_domain: dns.name.Name object
@var ipv6_reverse_domain: The DNS IPv6 reverse-map domain, ip6.arpa.
@type ipv6_reverse_domain: dns.name.Name object
i����Ns
in-addr.arpa.s	ip6.arpa.cCs�ystjj|�}tjj|�rWg|dD]}dt|�^q2}t}nt|jd��}t}Wn<gtj	j|�D]}dt|�^q�}t}nX|j
�tjjdj
|�d|�S(sConvert an IPv4 or IPv6 address in textual form into a Name object whose
    value is the reverse-map domain name of the address.
    @param text: an IPv4 or IPv6 address in textual form (e.g. '127.0.0.1',
    '::1')
    @type text: str
    @rtype: dns.name.Name object
    is%dt	hex_codect.torigin(tdnstipv6t	inet_atont	is_mappedtordtipv4_reverse_domaintlisttencodetipv6_reverse_domaintipv4treversetnamet	from_texttjoin(ttexttv6tbytetpartsR((s5/usr/lib64/python2.7/site-packages/dns/reversename.pytfrom_addresss'	
/

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(s�Convert a reverse map domain name into textual address form.
    @param name: an IPv4 or IPv6 address in reverse-map form.
    @type name: dns.name.Name object
    @rtype: str
    Ritit:s"unknown reverse-map address familyN(tis_subdomainRt
relativizeR	tlabelsR
RRRt	inet_ntoaRRtlentappendRt	exceptiontSyntaxError(RRRRtitl((s5/usr/lib64/python2.7/site-packages/dns/reversename.pyt
to_address5s&

!(t__doc__tdns.nameRtdns.ipv6tdns.ipv4RRRRRR"(((s5/usr/lib64/python2.7/site-packages/dns/reversename.pyt<module>s	

Zerion Mini Shell 1.0