Home | Trees | Index | Help |
|
---|
Package dns :: Module rdata :: Class Rdata |
|
object
--+
|
Rdata
GenericRdata
,
MXBase
,
NSBase
,
CERT
,
DS
,
GPOS
,
HINFO
,
ISDN
,
KEY
,
LOC
,
NXT
,
RP
,
SIG
,
SOA
,
TXT
,
X25
,
AAAA
,
APL
,
A
,
NAPTR
,
NSAP
,
PX
,
SRV
,
WKS
Method Summary | |
---|---|
Initialize an rdata. | |
__eq__(self,
other)
| |
__ge__(self,
other)
| |
__getstate__(...)
| |
__gt__(self,
other)
| |
__le__(self,
other)
| |
__lt__(self,
other)
| |
__ne__(self,
other)
| |
a new object with type S, a subtype of T |
|
__repr__(self)
| |
__str__(self)
| |
Convert any domain names in the rdata to the specified relativization. | |
int |
DNS SIG rdatas apply to a specific type; this type is returned by the covers() function. |
int |
Return a 32-bit type value, the least significant 16 bits of which are the ordinary DNS type, and the upper 16 bits of which are the "covered" type, if any. |
string |
Convert an rdata to text format. |
string |
Convert an rdata to wire format. |
Compare an rdata with another rdata of the same rdtype and rdclass. |
Class Variable Summary | |
---|---|
list |
__slots__
|
classmethod |
from_text
|
classmethod |
from_wire
|
member_descriptor |
rdclass
|
member_descriptor |
rdtype
|
Method Details |
---|
__init__(self,
rdclass,
rdtype)
Initialize an rdata.
|
__new__(S, ...)
|
choose_relativity(self, origin=None, relativize=1)Convert any domain names in the rdata to the specified relativization. |
covers(self)DNS SIG rdatas apply to a specific type; this type is returned by the covers() function. If the rdata type is not SIG, dns.rdatatype.NONE is returned. This is useful when creating rdatasets, allowing the rdataset to contain only SIGs of a particular type, e.g. SIG(NS).
|
extended_rdatatype(self)Return a 32-bit type value, the least significant 16 bits of which are the ordinary DNS type, and the upper 16 bits of which are the "covered" type, if any.
|
to_text(self, origin=None, relativize=1, **kw)Convert an rdata to text format.
|
to_wire(self, file, compress=None, origin=None)Convert an rdata to wire format.
|
_cmp(self, other)Compare an rdata with another rdata of the same rdtype and rdclass. Return < 0 if self < other in the DNSSEC ordering, 0 if self == other, and > 0 if self > other. |
Class Variable Details |
---|
__slots__
|
from_text
|
from_wire
|
rdclass
|
rdtype
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 1.1 on Sat Sep 6 01:38:34 2003 | http://epydoc.sf.net |