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

Module dns.rdataclass

DNS Rdata Classes.
Exceptions
UnknownRdataclass Raised when a class is unknown.

Function Summary
int from_text(text)
Convert text into a DNS rdata class value.
bool is_metaclass(rdclass)
True if the class is a metaclass.
string to_text(value)
Convert a DNS rdata class to text.

Variable Summary
int ANY = 255                                                                   
int CH = 3                                                                     
int HS = 4                                                                     
int IN = 1                                                                     
int NONE = 254                                                                   
int RESERVED0 = 0                                                                     

Function Details

from_text(text)

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

is_metaclass(rdclass)

True if the class is a metaclass.
Parameters:
rdclass - the rdata class
           (type=int)
Returns:
bool

to_text(value)

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

Variable Details

ANY

Type:
int
Value:
255                                                                   

CH

Type:
int
Value:
3                                                                     

HS

Type:
int
Value:
4                                                                     

IN

Type:
int
Value:
1                                                                     

NONE

Type:
int
Value:
254                                                                   

RESERVED0

Type:
int
Value:
0                                                                     

Generated by Epydoc 2.1 on Fri Jun 2 14:38:19 2006 http://epydoc.sf.net