Package dns :: Package rdtypes :: Package IN :: Module A :: Class A |
[hide private]
[frames] | no frames]

# Class A

source code

     object --+
              |
    rdata.Rdata --+
                  |
                 A

A record.

Instance Methods | [hide private]
__init__(self, rdclass, rdtype, address) Initialize an rdata. | source code
string |
to_text(self, origin=None, relativize=True, **kw) Convert an rdata to text format. | source code
string |
to_wire(self, file, compress=None, origin=None) Convert an rdata to wire format. | source code
_cmp(self, other) Compare an rdata with another rdata of the same rdtype and rdclass. | source code
Inherited from `rdata.Rdata`: `__eq__`, `__ge__`, `__gt__`, `__hash__`, `__le__`, `__lt__`, `__ne__`, `__repr__`, `__str__`, `choose_relativity`, `covers`, `extended_rdatatype`, `to_digestable`, `validate` Inherited from `rdata.Rdata` (private): `_wire_cmp` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__sizeof__`, `__subclasshook__`

Class Methods | [hide private]
dns.rdata.Rdata instance |
from_text(cls, rdclass, rdtype, tok, origin=None, relativize=True) Build an rdata object from text format. | source code
dns.rdata.Rdata instance |
from_wire(cls, rdclass, rdtype, wire, current, rdlen, origin=None) Build an rdata object from wire format | source code

Instance Variables | [hide private]
string (in the standard "dotted quad" format) | address an IPv4 address

Properties | [hide private]
Inherited from `rdata.Rdata`: `rdclass`, `rdtype` Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, rdclass, rdtype, address) (Constructor) | source code
Initialize an rdata. Parameters: `rdclass` - The rdata class `rdtype` - The rdata type Overrides: object.__init__ (inherited documentation)

### to_text(self, origin=None, relativize=True, **kw) | source code
Convert an rdata to text format. Returns: string Overrides: rdata.Rdata.to_text (inherited documentation)

### from_text(cls, rdclass, rdtype, tok, origin=None, relativize=True) Class Method | source code
Build an rdata object from text format. Parameters: `rdclass` - The rdata class `rdtype` - The rdata type `tok` - The tokenizer `origin` - The origin to use for relative names `relativize` - should names be relativized? Returns: dns.rdata.Rdata instance Overrides: rdata.Rdata.from_text (inherited documentation)

### to_wire(self, file, compress=None, origin=None) | source code
Convert an rdata to wire format. Returns: string Overrides: rdata.Rdata.to_wire (inherited documentation)

### from_wire(cls, rdclass, rdtype, wire, current, rdlen, origin=None) Class Method | source code
Build an rdata object from wire format Parameters: `rdclass` - The rdata class `rdtype` - The rdata type `wire` - The wire-format message `current` - The offet in wire of the beginning of the rdata. `rdlen` - The length of the wire-format rdata `origin` - The origin to use for relative names Returns: dns.rdata.Rdata instance Overrides: rdata.Rdata.from_wire (inherited documentation)

### _cmp(self, other) | source code
Compare an rdata with another rdata of the same rdtype and rdclass. Return < 0 if self < other in the DNSSEC ordering, 0 if self == other, and > 0 if self > other. Overrides: rdata.Rdata._cmp (inherited documentation)