Home | Trees | Index | Help |
|
---|
Package dns :: Module rdata :: Class Rdata |
|
object
--+
|
Rdata
A
,
AAAA
,
APL
,
CERT
,
DS
,
GenericRdata
,
GPOS
,
HINFO
,
ISDN
,
KEYBase
,
LOC
,
MXBase
,
NAPTR
,
NSAP
,
NSBase
,
NSEC
,
NXT
,
PX
,
RP
,
SIGBase
,
SOA
,
SRV
,
SSHFP
,
TXT
,
WKS
,
X25
Method Summary | |
---|---|
Initialize an rdata. | |
__eq__(self,
other)
| |
__ge__(self,
other)
| |
__gt__(self,
other)
| |
__le__(self,
other)
| |
__lt__(self,
other)
| |
__ne__(self,
other)
| |
__repr__(self)
| |
__str__(self)
| |
Convert any domain names in the rdata to the specified relativization. | |
int |
DNS SIG/RRSIG 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. |
dns.rdata.Rdata instance |
Build an rdata object from text format. (Class method) |
dns.rdata.Rdata instance |
Build an rdata object from wire format (Class method) |
string |
Convert an rdata to text format. |
string |
Convert an rdata to wire format. |
Check that the current contents of the rdata's fields are valid. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value |
Class Variable Summary | |
---|---|
list |
__slots__ = ['rdclass', 'rdtype']
|
member_descriptor |
rdclass = <member 'rdclass' of 'Rdata' objects>
|
member_descriptor |
rdtype = <member 'rdtype' of 'Rdata' objects>
|
Instance Method Details |
---|
__init__(self,
rdclass,
rdtype)
Initialize an rdata.
|
choose_relativity(self, origin=None, relativize=True)Convert any domain names in the rdata to the specified relativization. |
covers(self)DNS SIG/RRSIG rdatas apply to a specific type; this type is returned by the covers() function. If the rdata type is not SIG or RRSIG, dns.rdatatype.NONE is returned. This is useful when creating rdatasets, allowing the rdataset to contain only RRSIGs of a particular type, e.g. RRSIG(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=True, **kw)Convert an rdata to text format.
|
to_wire(self, file, compress=None, origin=None)Convert an rdata to wire format.
|
validate(self)Check that the current contents of the rdata's fields are valid. If you change an rdata by assigning to its fields, it is a good idea to call validate() when you are done making changes. |
Class Method Details |
---|
from_text(cls, rdclass, rdtype, tok, origin=None, relativize=True)Build an rdata object from text format.
|
from_wire(cls, rdclass, rdtype, wire, current, rdlen, origin=None)Build an rdata object from wire format
|
Class Variable Details |
---|
__slots__
|
rdclass
|
rdtype
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Fri Jun 2 14:38:18 2006 | http://epydoc.sf.net |