dns :: rdtypes :: nsbase :: NSBase :: Class NSBase
[hide private]
[frames] | no frames]

Class NSBase

source code

 object --+    
          |    
rdata.Rdata --+
              |
             NSBase
Known Subclasses:

Base class for rdata that is like an NS record.

Instance Methods [hide private]
 
__init__(self, rdclass, rdtype, target)
Initialize an rdata.
source code
 
choose_relativity(self, origin=None, relativize=True)
Convert any domain names in the rdata to the specified relativization.
source code
 
to_digestable(self, origin=None)
Convert rdata to a format suitable for digesting in hashes.
source code
 
to_text(self, origin=None, relativize=True, **kw)
Convert an rdata to text format.
source code
 
to_wire(self, file, compress=None, origin=None)
Convert an rdata to wire format.
source code

Inherited from rdata.Rdata: __eq__, __ge__, __gt__, __hash__, __le__, __lt__, __ne__, __repr__, __str__, covers, extended_rdatatype, validate

Inherited from rdata.Rdata (private): _cmp

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]
 
from_text(cls, rdclass, rdtype, tok, origin=None, relativize=True) source code
 
from_wire(cls, rdclass, rdtype, wire, current, rdlen, origin=None) source code
Instance Variables [hide private]
dns.name.Name object target
the target name of the rdata
Properties [hide private]

Inherited from rdata.Rdata: rdclass, rdtype

Inherited from object: __class__

Method Details [hide private]

__init__(self, rdclass, rdtype, target)
(Constructor)

source code 

Initialize an rdata.

*rdclass*, an ``int`` is the rdataclass of the Rdata. *rdtype*, an ``int`` is the rdatatype of the Rdata.

Overrides: object.__init__
(inherited documentation)

choose_relativity(self, origin=None, relativize=True)

source code 

Convert any domain names in the rdata to the specified relativization.

Overrides: rdata.Rdata.choose_relativity
(inherited documentation)

from_text(cls, rdclass, rdtype, tok, origin=None, relativize=True)
Class Method

source code 
Overrides: rdata.Rdata.from_text

from_wire(cls, rdclass, rdtype, wire, current, rdlen, origin=None)
Class Method

source code 
Overrides: rdata.Rdata.from_wire

to_digestable(self, origin=None)

source code 

Convert rdata to a format suitable for digesting in hashes. This is also the DNSSEC canonical form.

Returns a ``binary``.

Overrides: rdata.Rdata.to_digestable
(inherited documentation)

to_text(self, origin=None, relativize=True, **kw)

source code 

Convert an rdata to text format.

Returns a ``text``.

Overrides: rdata.Rdata.to_text
(inherited documentation)

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

source code 

Convert an rdata to wire format.

Returns a ``binary``.

Overrides: rdata.Rdata.to_wire
(inherited documentation)