rdtypes Package

rdtypes Package

DNS rdata type classes

dsbase Module

class pytomo.dns.rdtypes.dsbase.DSBase(rdclass, rdtype, key_tag, algorithm, digest_type, digest)[source]

Bases: pytomo.dns.rdata.Rdata

Base class for rdata that is like a DS record

@ivar key_tag: the key tag @type key_tag: int @ivar algorithm: the algorithm @type algorithm: int @ivar digest_type: the digest type @type digest_type: int @ivar digest: the digest @type digest: int @see: draft-ietf-dnsext-delegation-signer-14.txt

algorithm
digest
digest_type
classmethod from_text(rdclass, rdtype, tok, origin=None, relativize=True)[source]
classmethod from_wire(rdclass, rdtype, wire, current, rdlen, origin=None)[source]
key_tag
to_text(origin=None, relativize=True, **kw)[source]
to_wire(file, compress=None, origin=None)[source]

keybase Module

class pytomo.dns.rdtypes.keybase.KEYBase(rdclass, rdtype, flags, protocol, algorithm, key)[source]

Bases: pytomo.dns.rdata.Rdata

KEY-like record base

@ivar flags: the key flags @type flags: int @ivar protocol: the protocol for which this key may be used @type protocol: int @ivar algorithm: the algorithm used for the key @type algorithm: int @ivar key: the public key @type key: string

algorithm
flags
classmethod from_text(rdclass, rdtype, tok, origin=None, relativize=True)[source]
classmethod from_wire(rdclass, rdtype, wire, current, rdlen, origin=None)[source]
key
protocol
to_text(origin=None, relativize=True, **kw)[source]
to_wire(file, compress=None, origin=None)[source]

mxbase Module

MX-like base classes.

class pytomo.dns.rdtypes.mxbase.MXBase(rdclass, rdtype, preference, exchange)[source]

Bases: pytomo.dns.rdata.Rdata

Base class for rdata that is like an MX record.

@ivar preference: the preference value @type preference: int @ivar exchange: the exchange name @type exchange: dns_name.Name object

choose_relativity(origin=None, relativize=True)[source]
exchange
classmethod from_text(rdclass, rdtype, tok, origin=None, relativize=True)[source]
classmethod from_wire(rdclass, rdtype, wire, current, rdlen, origin=None)[source]
preference
to_digestable(origin=None)[source]
to_text(origin=None, relativize=True, **kw)[source]
to_wire(file, compress=None, origin=None)[source]
class pytomo.dns.rdtypes.mxbase.UncompressedDowncasingMX(rdclass, rdtype, preference, exchange)[source]

Bases: pytomo.dns.rdtypes.mxbase.MXBase

Base class for rdata that is like an MX record, but whose name is not compressed when convert to DNS wire format.

to_wire(file, compress=None, origin=None)[source]
class pytomo.dns.rdtypes.mxbase.UncompressedMX(rdclass, rdtype, preference, exchange)[source]

Bases: pytomo.dns.rdtypes.mxbase.MXBase

Base class for rdata that is like an MX record, but whose name is not compressed when converted to DNS wire format, and whose digestable form is not downcased.

to_digestable(origin=None)[source]
to_wire(file, compress=None, origin=None)[source]

nsbase Module

NS-like base classes.

class pytomo.dns.rdtypes.nsbase.NSBase(rdclass, rdtype, target)[source]

Bases: pytomo.dns.rdata.Rdata

Base class for rdata that is like an NS record.

@ivar target: the target name of the rdata @type target: dns_name.Name object

choose_relativity(origin=None, relativize=True)[source]
classmethod from_text(rdclass, rdtype, tok, origin=None, relativize=True)[source]
classmethod from_wire(rdclass, rdtype, wire, current, rdlen, origin=None)[source]
target
to_digestable(origin=None)[source]
to_text(origin=None, relativize=True, **kw)[source]
to_wire(file, compress=None, origin=None)[source]
class pytomo.dns.rdtypes.nsbase.UncompressedNS(rdclass, rdtype, target)[source]

Bases: pytomo.dns.rdtypes.nsbase.NSBase

Base class for rdata that is like an NS record, but whose name is not compressed when convert to DNS wire format, and whose digestable form is not downcased.

to_digestable(origin=None)[source]
to_wire(file, compress=None, origin=None)[source]

sigbase Module

exception pytomo.dns.rdtypes.sigbase.BadSigTime[source]

Bases: pytomo.dns.exception.DNSException

Raised when a SIG or RRSIG RR’s time cannot be parsed.

class pytomo.dns.rdtypes.sigbase.SIGBase(rdclass, rdtype, type_covered, algorithm, labels, original_ttl, expiration, inception, key_tag, signer, signature)[source]

Bases: pytomo.dns.rdata.Rdata

SIG-like record base

@ivar type_covered: the rdata type this signature covers @type type_covered: int @ivar algorithm: the algorithm used for the sig @type algorithm: int @ivar labels: number of labels @type labels: int @ivar original_ttl: the original TTL @type original_ttl: long @ivar expiration: signature expiration time @type expiration: long @ivar inception: signature inception time @type inception: long @ivar key_tag: the key tag @type key_tag: int @ivar signer: the signer @type signer: dns_name.Name object @ivar signature: the signature @type signature: string

algorithm
choose_relativity(origin=None, relativize=True)[source]
covers()[source]
expiration
classmethod from_text(rdclass, rdtype, tok, origin=None, relativize=True)[source]
classmethod from_wire(rdclass, rdtype, wire, current, rdlen, origin=None)[source]
inception
key_tag
labels
original_ttl
signature
signer
to_text(origin=None, relativize=True, **kw)[source]
to_wire(file, compress=None, origin=None)[source]
type_covered
pytomo.dns.rdtypes.sigbase.posixtime_to_sigtime(what)[source]
pytomo.dns.rdtypes.sigbase.sigtime_to_posixtime(what)[source]

txtbase Module

TXT-like base class.

class pytomo.dns.rdtypes.txtbase.TXTBase(rdclass, rdtype, strings)[source]

Bases: pytomo.dns.rdata.Rdata

Base class for rdata that is like a TXT record

@ivar strings: the text strings @type strings: list of string @see: RFC 1035

classmethod from_text(rdclass, rdtype, tok, origin=None, relativize=True)[source]
classmethod from_wire(rdclass, rdtype, wire, current, rdlen, origin=None)[source]
strings
to_text(origin=None, relativize=True, **kw)[source]
to_wire(file, compress=None, origin=None)[source]

Table Of Contents

Previous topic

dns Package

Next topic

ANY Package

This Page