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 DNSKEY
int DS
int GPOS
int HINFO
int ISDN
int IXFR
int KEY
int KX
int LOC
int MAILA
int MAILB
int MB
int MD
int MF
int MG
int MINFO
int MR
int MX
int NAPTR
int NONE
int NS
int NSAP
int NSAP_PTR
int NSEC
int NULL
int NXT
int OPT
int PTR
int PX
int RP
int RRSIG
int RT
int SIG
int SOA
int SRV
int SSHFP
int TKEY
int TSIG
int TXT
int UNSPEC
int WKS
str x
int X25
int y

Function Details

from_text(text)

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

is_metatype(rdtype)

True if the type is a metatype.
Parameters:
rdtype - the type
           (type=int)
Returns:
bool

is_singleton(rdtype)

True if the type is a singleton.
Parameters:
rdtype - the type
           (type=int)
Returns:
bool

to_text(value)

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

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                                                                     

DNSKEY

Type:
int
Value:
48                                                                     

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                                                                      

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                                                                     

NSEC

Type:
int
Value:
47                                                                     

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                                                                     

RRSIG

Type:
int
Value:
46                                                                     

RT

Type:
int
Value:
21                                                                     

SIG

Type:
int
Value:
24                                                                     

SOA

Type:
int
Value:
6                                                                      

SRV

Type:
int
Value:
33                                                                     

SSHFP

Type:
int
Value:
44                                                                     

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                                                                     

x

Type:
str
Value:
'MX'                                                                   

X25

Type:
int
Value:
19                                                                     

y

Type:
int
Value:
15                                                                     

Generated by Epydoc 1.1 on Sun Jun 6 13:48:45 2004 http://epydoc.sf.net