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
int CH
int HS
int IN
int NONE
int RESERVED0
str x
int y

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                                                                      

x

Type:
str
Value:
'RESERVED0'                                                            

y

Type:
int
Value:
0                                                                      

Generated by Epydoc 1.1 on Sat Sep 6 01:38:31 2003 http://epydoc.sf.net