Package dns :: Module reversename |
[hide private]
[frames] | no frames]

# Module reversename

source code

DNS Reverse Map Names.

Functions | [hide private]
dns.name.Name object |
from_address(text) Convert an IPv4 or IPv6 address in textual form into a Name object whose value is the reverse-map domain name of the address. | source code
str |
to_address(name) Convert a reverse map domain name into textual address form. | source code

Variables | [hide private]
dns.name.Name object | ipv4_reverse_domain = `<DNS name in-addr.arpa.>` The DNS IPv4 reverse-map domain, in-addr.arpa.
dns.name.Name object | ipv6_reverse_domain = `<DNS name ip6.arpa.>` The DNS IPv6 reverse-map domain, ip6.arpa.
| __package__ = ``'``dns``'``

Function Details | [hide private]

### from_address(text) | source code
Convert an IPv4 or IPv6 address in textual form into a Name object whose value is the reverse-map domain name of the address. Parameters: `text` (str) - an IPv4 or IPv6 address in textual form (e.g. '127.0.0.1', '::1') Returns: dns.name.Name object

### to_address(name) | source code
Convert a reverse map domain name into textual address form. Parameters: `name` (dns.name.Name object) - an IPv4 or IPv6 address in reverse-map form. Returns: str