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

Module dns.e164

DNS E.164 helpers
Function Summary
dns.name.Name object from_e164(text, origin)
Convert an E.164 number in textual form into a Name object whose value is the ENUM domain name for that number.
  query(number, domains, resolver)
Look for NAPTR RRs for the specified number in the specified domains.
str to_e164(name, origin, want_plus_prefix)
Convert an ENUM domain name into an E.164 number.

Variable Summary
dns.name.Name object public_enum_domain: The DNS public ENUM domain, e164.arpa.

Function Details

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.
Parameters:
text - an E.164 number in textual form.
           (type=str)
origin - The domain in which the number should be constructed. The default is e164.arpa.
Returns:
dns.name.Name object

query(number, domains, resolver=None)

Look for NAPTR RRs for the specified number in the specified domains.

e.g. lookup('16505551212', ['e164.dnspython.org.', 'e164.arpa.'])

to_e164(name, origin=<DNS name e164.arpa.>, want_plus_prefix=True)

Convert an ENUM domain name into an E.164 number.
Parameters:
name - the ENUM domain name.
           (type=dns.name.Name object.)
origin - 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

Variable Details

public_enum_domain

The DNS public ENUM domain, e164.arpa.
Type:
dns.name.Name object
Value:
<DNS name e164.arpa.>                                                  

Generated by Epydoc 2.1 on Sun Dec 10 12:46:08 2006 http://epydoc.sf.net