Home | Trees | Index | Help |
|
---|
Package DNS :: Module rdataset :: Class Rdataset |
|
object
--+ |SimpleSet
--+ | Rdataset
Method Summary | |
---|---|
Create a new rdataset of the specified class and type. | |
bool |
Two rdatasets are equal if they have the same class, type, covers, deletion state, and contain the same rdata. |
__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, covers and optional deletion state. | |
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 | |
---|---|
int | covers
- The covered type. |
int | deleting
- If non-zero, the value of deleting should be the class to use when
converting the rdataset to text or wire format. |
int | rdclass
- The class of the rdataset |
int | rdtype
- The type of the rdataset |
int | ttl
- The DNS TTL (Time To Live) value |
Method Details |
---|
__init__(self,
rdclass,
rdtype,
deleting=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, covers,
deletion state, 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, deleting=0)Returns True if this rdataset matches the specified class, type, covers and optional deletion state. |
to_text(self, name=None, origin=None, relativize=True, **kw)Convert the rdataset into DNS master file format.
|
to_wire(self, name, file, compress=None, origin=None, question=False)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
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 1.1 on Tue Jun 17 03:55:11 2003 | http://epydoc.sf.net |