Home | Trees | Index | Help |
|
---|
Package dns :: Module rrset :: Class RRset |
|
object
--+ |Set
--+ |Rdataset
--+ | RRset
A DNS RRset (named rdataset).
RRset inherits from Rdataset, and RRsets can be treated as Rdatasets in most cases. There are, however, a few notable exceptions. RRsets have different to_wire() and to_text() method arguments, reflecting the fact that RRsets always have an owner name.Method Summary | |
---|---|
Create a new RRset. | |
bool |
Two RRsets are equal if they have the same name and the same rdataset |
__repr__(self)
| |
__str__(self)
| |
Returns True if this rrset matches the specified class, type, covers, and deletion state. | |
Convert the RRset into DNS master file format. | |
Convert the RRset to wire format. | |
Inherited from Rdataset | |
| |
Add the specified rdata to the rdataset. | |
Update the set, removing any elements from other which are not in both sets. | |
Update the set, adding any elements from other which are not already in the set. | |
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. | |
Inherited from Set | |
| |
| |
Make a (shallow) copy of the set. | |
| |
| |
| |
| |
| |
| |
| |
| |
Make the set empty. | |
Make a (shallow) copy of the set. | |
the same type as self |
Return a new set which self - other, i.e. |
Update the set, removing any elements from other which are in the set. | |
Remove an item from the set if present. | |
the same type as self |
Return a new set which is the intersection of self and other. |
bool |
Is self a subset of other? |
bool |
Is self a superset of other? |
Remove an item from the set. | |
the same type as self |
Return a new set which is the union of self and other. |
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 |
Instance Variable Summary | |
---|---|
Inherited from Rdataset | |
int | covers : The covered type. |
int | rdclass : The class of the rdataset |
int | rdtype : The type of the rdataset |
int | ttl : The DNS TTL (Time To Live) value |
Inherited from Set | |
list | items : A list of the items which are in the set |
Class Variable Summary | |
---|---|
list |
__slots__ = ['name', 'deleting']
|
member_descriptor |
deleting = <member 'deleting' of 'RRset' objects>
|
member_descriptor |
name = <member 'name' of 'RRset' objects>
|
Method Details |
---|
__init__(self,
name,
rdclass,
rdtype,
covers=0,
deleting=None)
Create a new RRset.
|
__eq__(self,
other)
Two RRsets are equal if they have the same name and the same
rdataset
|
match(self, name, rdclass, rdtype, covers, deleting=None)Returns True if this rrset matches the specified class, type, covers, and deletion state.
|
to_text(self, origin=None, relativize=True, **kw)Convert the RRset into DNS master file format.
|
to_wire(self, file, compress=None, origin=None, **kw)Convert the RRset to wire format.
|
Class Variable Details |
---|
__slots__
|
deleting
|
name
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sun Jan 30 10:41:35 2005 | http://epydoc.sf.net |