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

Module dns.rdatatype

DNS Rdata Types.
Exceptions
UnknownRdatatype Raised if a type is unknown.

Function Summary
int from_text(text)
Convert text into a DNS rdata type value.
bool is_metatype(rdtype)
True if the type is a metatype.
bool is_singleton(rdtype)
True if the type is a singleton.
string to_text(value)
Convert a DNS rdata type to text.

Function Details

from_text(text)

Convert text into a DNS rdata type value.
Parameters:
text - the text
           (type=string)
Returns:
int
Raises:
dns.rdatatype.UnknownRdatatype - the type is unknown
ValueError - the rdata type value is not >= 0 and <= 65535

is_metatype(rdtype)

True if the type is a metatype.
Parameters:
rdtype - the type
           (type=int)
Returns:
bool

is_singleton(rdtype)

True if the type is a singleton.
Parameters:
rdtype - the type
           (type=int)
Returns:
bool

to_text(value)

Convert a DNS rdata type to text.
Parameters:
value - the rdata type value
           (type=int)
Returns:
string
Raises:
ValueError - the rdata type value is not >= 0 and <= 65535

Generated by Epydoc 2.1 on Sun Nov 25 17:43:05 2007 http://epydoc.sf.net