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

# Module e164

source code

DNS E.164 helpers

Functions | [hide private]
dns.name.Name object |
from_e164(text, origin=<DNS name e164.arpa.>) Convert an E.164 number in textual form into a Name object whose value is the ENUM domain name for that number. | source code
str |
to_e164(name, origin=<DNS name e164.arpa.>, want_plus_prefix=True) Convert an ENUM domain name into an E.164 number. | source code
query(number, domains, resolver=None) Look for NAPTR RRs for the specified number in the specified domains. | source code

Variables | [hide private]
dns.name.Name object | public_enum_domain = `<DNS name e164.arpa.>` The DNS public ENUM domain, e164.arpa.
| __package__ = ``'``dns``'``

Function Details | [hide private]

### from_e164(text, origin=<DNS name e164.arpa.>) | source code
Convert an E.164 number in textual form into a Name object whose value is the ENUM domain name for that number. Parameters: `text` (str) - an E.164 number in textual form. `origin` (dns.name.Name object or None) - The domain in which the number should be constructed. The default is e164.arpa. Returns: dns.name.Name object

### to_e164(name, origin=<DNS name e164.arpa.>, want_plus_prefix=True) | source code
Convert an ENUM domain name into an E.164 number. Parameters: `name` (dns.name.Name object.) - the ENUM domain name. `origin` (dns.name.Name object or None) - A domain containing the ENUM domain name. The name is relativized to this domain before being converted to text. `want_plus_prefix` - if True, add a '+' to the beginning of the returned number. Returns: str

### query(number, domains, resolver=None) | source code
Look for NAPTR RRs for the specified number in the specified domains. e.g. lookup('16505551212', ['e164.dnspython.org.', 'e164.arpa.'])