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.

Variable Summary
int A
int A6
int AAAA
int AFSDB
int ANY
int APL
int AXFR
int CERT
int CNAME
int DNAME
int DS
int GPOS
int HINFO
int ISDN
int IXFR
int KEY
int KX
int LOC
int MAILA
int MAILB
int MB
int MD
dict metatypes - If an rdatatype is a metatype, there will be a mapping whose key is the rdatatype value and whose value is True in this dictionary.
int MF
int MG
int MINFO
int MR
int MX
int NAPTR
int NONE
int NS
int NSAP
int NSAP_PTR
int NULL
int NXT
int OPT
int PTR
int PX
int RP
int RT
int SIG
dict singletons - If an rdatatype is a singleton, there will be a mapping whose key is the rdatatype value and whose value is True in this dictionary.
int SOA
int SRV
int TKEY
int TSIG
int TXT
int UNSPEC
int WKS
int X25
dict _by_text - The rdata type textual name to value mapping
dict _by_value - The rdata type value to textual name mapping
SRE_Pattern _unknown_type_pattern

Function Details

from_text(text)

Convert text into a DNS rdata type value.
Returns:
int

is_metatype(rdtype)

True if the type is a metatype.
Returns:
bool

is_singleton(rdtype)

True if the type is a singleton.
Returns:
bool

to_text(value)

Convert a DNS rdata type to text.
Returns:
string

Variable Details

A

Type:
int
Value:
1                                                                      

A6

Type:
int
Value:
38                                                                     

AAAA

Type:
int
Value:
28                                                                     

AFSDB

Type:
int
Value:
18                                                                     

ANY

Type:
int
Value:
255                                                                    

APL

Type:
int
Value:
42                                                                     

AXFR

Type:
int
Value:
252                                                                    

CERT

Type:
int
Value:
37                                                                     

CNAME

Type:
int
Value:
5                                                                      

DNAME

Type:
int
Value:
39                                                                     

DS

Type:
int
Value:
43                                                                     

GPOS

Type:
int
Value:
27                                                                     

HINFO

Type:
int
Value:
13                                                                     

ISDN

Type:
int
Value:
20                                                                     

IXFR

Type:
int
Value:
251                                                                    

KEY

Type:
int
Value:
25                                                                     

KX

Type:
int
Value:
36                                                                     

LOC

Type:
int
Value:
29                                                                     

MAILA

Type:
int
Value:
254                                                                    

MAILB

Type:
int
Value:
253                                                                    

MB

Type:
int
Value:
7                                                                      

MD

Type:
int
Value:
3                                                                      

metatypes

If an rdatatype is a metatype, there will be a mapping whose key is the rdatatype value and whose value is True in this dictionary.
Type:
dict
Value:
{41: True}                                                             

MF

Type:
int
Value:
4                                                                      

MG

Type:
int
Value:
8                                                                      

MINFO

Type:
int
Value:
14                                                                     

MR

Type:
int
Value:
9                                                                      

MX

Type:
int
Value:
15                                                                     

NAPTR

Type:
int
Value:
35                                                                     

NONE

Type:
int
Value:
0                                                                      

NS

Type:
int
Value:
2                                                                      

NSAP

Type:
int
Value:
22                                                                     

NSAP_PTR

Type:
int
Value:
23                                                                     

NULL

Type:
int
Value:
10                                                                     

NXT

Type:
int
Value:
30                                                                     

OPT

Type:
int
Value:
41                                                                     

PTR

Type:
int
Value:
12                                                                     

PX

Type:
int
Value:
26                                                                     

RP

Type:
int
Value:
17                                                                     

RT

Type:
int
Value:
21                                                                     

SIG

Type:
int
Value:
24                                                                     

singletons

If an rdatatype is a singleton, there will be a mapping whose key is the rdatatype value and whose value is True in this dictionary.
Type:
dict
Value:
{30: True, 6: True, 39: True}                                          

SOA

Type:
int
Value:
6                                                                      

SRV

Type:
int
Value:
33                                                                     

TKEY

Type:
int
Value:
249                                                                    

TSIG

Type:
int
Value:
250                                                                    

TXT

Type:
int
Value:
16                                                                     

UNSPEC

Type:
int
Value:
103                                                                    

WKS

Type:
int
Value:
11                                                                     

X25

Type:
int
Value:
19                                                                     

_by_text

The rdata type textual name to value mapping
Type:
dict
Value:
{'A': 1,
 'A6': 38,
 'AAAA': 28,
 'AFSDB': 18,
 'ANY': 255,
 'APL': 42,
 'AXFR': 252,
 'CERT': 37,
...                                                                    

_by_value

The rdata type value to textual name mapping
Type:
dict
Value:
{0: 'NONE',
 1: 'A',
 2: 'NS',
 3: 'MD',
 4: 'MF',
 5: 'CNAME',
 6: 'SOA',
 7: 'MB',
...                                                                    

_unknown_type_pattern

Type:
SRE_Pattern
Value:
TYPE([0-9]+)$                                                          

Generated by Epydoc 1.1 on Sat Jun 21 20:52:30 2003 http://epydoc.sf.net