Package dns :: Module rrset :: Class RRset
[show private | hide private]
[frames | no frames]

Class RRset

object --+        
         |        
 SimpleSet --+    
             |    
      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
  __init__(self, name, rdclass, rdtype, covers, deleting)
Create a new RRset.
bool __eq__(self, other)
Two RRsets are equal if they have the same name and the same rdataset
  __getstate__(...)
  __iter__(self)
(inherited from SimpleSet)
  __len__(self)
(inherited from SimpleSet)
  __ne__(self, other)
(inherited from Rdataset)
a new object with type S, a subtype of T __new__(S, ...)
  __repr__(self)
  __str__(self)
  add(self, rd, ttl)
Add the specified rdata to the rdataset. (inherited from Rdataset)
  clear(self)
Make the set empty. (inherited from SimpleSet)
  match(self, name, rdclass, rdtype, covers, deleting)
Returns True if this rrset matches the specified class, type, covers, and deletion state.
  to_text(self, origin, relativize, **kw)
Convert the RRset into DNS master file format.
  to_wire(self, file, compress, origin, **kw)
Convert the RRset to wire format.
  update(self, other)
Add all rdatas in other to self. (inherited from Rdataset)
  update_ttl(self, ttl)
Set the TTL of the rdataset to be the lesser of the set's current TTL or the specified TTL. (inherited from Rdataset)

Class Variable Summary
list __slots__
member_descriptor deleting
member_descriptor name

Method Details

__init__(self, name, rdclass, rdtype, covers=0, deleting=None)
(Constructor)

Create a new RRset.

__eq__(self, other)
(Equality operator)

Two RRsets are equal if they have the same name and the same rdataset
Returns:
bool

__new__(S, ...)

Returns:
a new object with type S, a subtype of T

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=1, **kw)

Convert the RRset into DNS master file format.
Parameters:
origin - The origin for relative names, or None.
           (type=dns.name.Name object)
relativize - True if names should names be relativized
           (type=bool)

See also:

dns.name.Name.choose_relativity for more information on how origin and relativize determine the way names are emitted.

Any additional keyword arguments are passed on to the rdata to_text() method.

to_wire(self, file, compress=None, origin=None, **kw)

Convert the RRset to wire format.

Class Variable Details

__slots__

Type:
list
Value:
['name', 'deleting']                                                   

deleting

Type:
member_descriptor
Value:
<member 'deleting' of 'RRset' objects>                                 

name

Type:
member_descriptor
Value:
<member 'name' of 'RRset' objects>                                     

Generated by Epydoc 1.1 on Sat Jul 19 02:54:32 2003 http://epydoc.sf.net