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.
string 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
int FORMERR
int NOERROR
int NOTAUTH
int NOTIMP
int NOTZONE
int NXDOMAIN
int NXRRSET
int REFUSED
int SERVFAIL
int YXDOMAIN
int YXRRSET
dict _by_text
dict _by_value

Function Details

from_flags(flags, ednsflags)

Return the rcode value encoded by flags and ednsflags.
Returns:
int

from_text(text)

Convert text into an rcode.
Returns:
string

to_flags(value)

Return a (flags, ednsflags) tuple which encodes the rcode.
Returns:
(int, int) tuple

to_text(value)

Convert rcode into text.
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                                                                      

_by_text

Type:
dict
Value:
{'BADVERS': 16,
 'FORMERR': 1,
 'NOERROR': 0,
 'NOTAUTH': 9,
 'NOTIMP': 4,
 'NOTZONE': 10,
 'NXDOMAIN': 3,
 'NXRRSET': 8,
...                                                                    

_by_value

Type:
dict
Value:
{0: 'NOERROR',
 1: 'FORMERR',
 2: 'SERVFAIL',
 3: 'NXDOMAIN',
 4: 'NOTIMP',
 5: 'REFUSED',
 6: 'YXDOMAIN',
 7: 'YXRRSET',
...                                                                    

Generated by Epydoc 1.1 on Mon Jun 30 15:54:10 2003 http://epydoc.sf.net