Home | Trees | Index | Help |
|
---|
Package dns :: Module rdataset :: Class Rdataset |
|
object
--+ |SimpleSet
--+ | Rdataset
RRset
Method Summary | |
---|---|
Create a new rdataset of the specified class and type. | |
bool |
Two rdatasets are equal if they have the same class, type, and covers, and contain the same rdata. |
__getstate__(...)
| |
__iter__(self)
(inherited from SimpleSet )
| |
__len__(self)
(inherited from SimpleSet )
| |
__ne__(self,
other)
| |
a new object with type S, a subtype of T |
|
__repr__(self)
| |
__str__(self)
| |
Add the specified rdata to the rdataset. | |
Make the set empty. (inherited from SimpleSet )
| |
Returns True if this rdataset matches the specified class, type, and covers | |
Convert the rdataset into DNS master file format. | |
int |
Convert the rdataset to wire format. |
Add all rdatas in other to self. | |
Set the TTL of the rdataset to be the lesser of the set's current TTL or the specified TTL. |
Instance Variable Summary | |
---|---|
covers
- The covered type. | |
rdclass
- The class of the rdataset | |
rdtype
- The type of the rdataset | |
ttl
- The DNS TTL (Time To Live) value |
Class Variable Summary | |
---|---|
list |
__slots__
|
int | covers
|
int | rdclass
|
int | rdtype
|
int | ttl
|
Method Details |
---|
__init__(self,
rdclass,
rdtype,
covers=0)
Create a new rdataset of the specified class and type.
|
__eq__(self,
other)
Two rdatasets are equal if they have the same class, type, and covers,
and contain the same rdata.
|
__new__(S, ...)
|
add(self, rd, ttl=None)Add the specified rdata to the rdataset. If the optional ttl parameter is supplied, then self.update_ttl(ttl) will be called prior to adding the rdata.
|
match(self, rdclass, rdtype, covers)Returns True if this rdataset matches the specified class, type, and covers |
to_text(self, name=None, origin=None, relativize=1, override_rdclass=None, **kw)Convert the rdataset into DNS master file format.
|
to_wire(self, name, file, compress=None, origin=None, override_rdclass=None, want_shuffle=1)Convert the rdataset to wire format.
|
update(self, other)Add all rdatas in other to self.
|
update_ttl(self, ttl)Set the TTL of the rdataset to be the lesser of the set's current TTL or the specified TTL. If the set contains no rdatas, set the TTL to the specified TTL.
|
Instance Variable Details |
---|
rdclassThe class of the rdataset |
rdtypeThe type of the rdataset |
ttlThe DNS TTL (Time To Live) value |
Class Variable Details |
---|
__slots__
|
covers
|
rdclass
|
rdtype
|
ttl
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 1.1 on Wed Jul 30 23:38:04 2003 | http://epydoc.sf.net |