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

Module dns.rcode

DNS Result Codes.
Exceptions
UnknownRcode Raised if an rcode is unknown.

Function Summary
int from_flags(flags, ednsflags)
Return the rcode value encoded by flags and ednsflags.
int from_text(text)
Convert text into an rcode.
(int, int) tuple to_flags(value)
Return a (flags, ednsflags) tuple which encodes the rcode.
string to_text(value)
Convert rcode into text.

Variable Summary
int BADVERS = 16                                                                    
int FORMERR = 1                                                                     
int NOERROR = 0                                                                     
int NOTAUTH = 9                                                                     
int NOTIMP = 4                                                                     
int NOTZONE = 10                                                                    
int NXDOMAIN = 3                                                                     
int NXRRSET = 8                                                                     
int REFUSED = 5                                                                     
int SERVFAIL = 2                                                                     
int YXDOMAIN = 6                                                                     
int YXRRSET = 7                                                                     

Function Details

from_flags(flags, ednsflags)

Return the rcode value encoded by flags and ednsflags.
Parameters:
flags - the DNS flags
           (type=int)
ednsflags - the EDNS flags
           (type=int)
Returns:
int
Raises:
ValueError - rcode is < 0 or > 4095

from_text(text)

Convert text into an rcode.
Parameters:
text - the texual rcode
           (type=string)
Returns:
int
Raises:
UnknownRcode - the rcode is unknown

to_flags(value)

Return a (flags, ednsflags) tuple which encodes the rcode.
Parameters:
value - the rcode
           (type=int)
Returns:
(int, int) tuple
Raises:
ValueError - rcode is < 0 or > 4095

to_text(value)

Convert rcode into text.
Parameters:
value - the rcode
           (type=int)
Returns:
string

Variable Details

BADVERS

Type:
int
Value:
16                                                                    

FORMERR

Type:
int
Value:
1                                                                     

NOERROR

Type:
int
Value:
0                                                                     

NOTAUTH

Type:
int
Value:
9                                                                     

NOTIMP

Type:
int
Value:
4                                                                     

NOTZONE

Type:
int
Value:
10                                                                    

NXDOMAIN

Type:
int
Value:
3                                                                     

NXRRSET

Type:
int
Value:
8                                                                     

REFUSED

Type:
int
Value:
5                                                                     

SERVFAIL

Type:
int
Value:
2                                                                     

YXDOMAIN

Type:
int
Value:
6                                                                     

YXRRSET

Type:
int
Value:
7                                                                     

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