[hide private]
[frames] | no frames]

[ Module Hierarchy | Class Hierarchy ]

# Class Hierarchy

- object: The most base type
  - dns.rdtypes.IN.APL.APLItem: An APL list item.
  - dns.resolver.Answer: DNS stub resolver answer
  - exceptions.BaseException: Common base class for all exceptions
    - exceptions.Exception: Common base class for all non-exit exceptions.
      - dns.exception.DNSException: Abstract base class shared by all dnspython exceptions.
        - dns.name.AbsoluteConcatenation: Raised if an attempt is made to append anything other than the empty name to an absolute name.
        - dns.rdtypes.ANY.RRSIG.BadSigTime: Raised when a SIG or RRSIG RR's time cannot be parsed.
        - dns.tsig.BadSignature: Raised if the TSIG signature fails to verify.
        - dns.tsig.BadTime: Raised if the current time is not within the TSIG's validity time.
        - dns.zone.BadZone: The zone is malformed.
          - dns.zone.NoNS: The zone has no NS RRset at its origin.
          - dns.zone.NoSOA: The zone has no SOA RR at its origin.
          - dns.zone.UnknownOrigin: The zone's origin is unknown.
        - dns.rdataset.DifferingCovers: Raised if an attempt is made to add a SIG/RRSIG whose covered type is not the same as that of the other rdatas in the rdataset.
        - dns.exception.FormError: DNS message is malformed.
          - dns.message.BadEDNS: Raised if an OPT record occurs somewhere other than the start of the additional data section.
          - dns.name.BadLabelType: Raised if the label type of a wire format name is unknown.
          - dns.name.BadPointer: Raised if a compression pointer points forward instead of backward.
          - dns.query.BadResponse: Raised if a query response does not respond to the question asked.
          - dns.message.BadTSIG: Raised if a TSIG record occurs somewhere other than the end of the additional data section.
          - dns.name.NameTooLong: Raised if a name is > 255 octets long.
          - dns.message.ShortHeader: Raised if the DNS packet passed to from_wire() is too short.
          - dns.message.TrailingJunk: Raised if the DNS packet passed to from_wire() has extra junk at the end of it.
        - dns.rdataset.IncompatibleTypes: Raised if an attempt is made to add rdata of an incompatible type.
        - dns.resolver.NXDOMAIN: The query name does not exist.
        - dns.name.NeedAbsoluteNameOrOrigin: Raised if an attempt is made to convert a non-absolute name to wire when there is also a non-absolute (or missing) origin.
        - dns.resolver.NoAnswer: The response did not contain an answer to the question.
        - dns.resolver.NoMetaqueries: Metaqueries are not allowed.
        - dns.resolver.NoNameservers: No non-broken nameservers are available to answer the query.
        - dns.name.NoParent: Raised if an attempt is made to get the parent of the root name or the empty name.
        - dns.resolver.NoRootSOA: Raised if for some reason there is no SOA at the root name.
        - dns.resolver.NotAbsolute: Raised if an absolute domain name is required but a relative name was provided.
        - dns.tsig.PeerError: Base class for all TSIG errors generated by the remote peer
          - dns.tsig.PeerBadKey: Raised if the peer didn't know the key we used
          - dns.tsig.PeerBadSignature: Raised if the peer didn't like the signature we sent
          - dns.tsig.PeerBadTime: Raised if the peer didn't like the time we sent
          - dns.tsig.PeerBadTruncation: Raised if the peer didn't like amount of truncation in the TSIG we sent
        - dns.exception.SyntaxError: Text input is malformed.
          - dns.name.BadEscape: Raised if an escaped code in a text format name is invalid.
          - dns.ttl.BadTTL
          - dns.name.EmptyLabel: Raised if a label is empty.
          - dns.name.LabelTooLong: Raised if a label is > 63 octets long.
          - dns.exception.UnexpectedEnd: Raised if text input ends unexpectedly.
        - dns.exception.Timeout: The operation timed out.
        - dns.exception.TooBig: The message is too big.
        - dns.query.UnexpectedSource: Raised if a query response comes from an unexpected address or port.
        - dns.tokenizer.UngetBufferFull: Raised when an attempt is made to unget a token when the unget buffer is full.
        - dns.message.UnknownHeaderField: Raised if a header field name is not recognized when converting from text into a message.
        - dns.opcode.UnknownOpcode: Raised if an opcode is unknown.
        - dns.rcode.UnknownRcode: Raised if an rcode is unknown.
        - dns.rdataclass.UnknownRdataclass: Raised when a class is unknown.
        - dns.rdatatype.UnknownRdatatype: Raised if a type is unknown.
        - dns.message.UnknownTSIGKey: Raised if we got a TSIG but don't know the key.
        - dns.dnssec.UnsupportedAlgorithm: Raised if an algorithm is not supported.
        - dns.dnssec.ValidationFailure: The DNSSEC signature is invalid.
        - dns.resolver.YXDOMAIN: The query name is too long after DNAME substitution.
  - dns.resolver.Cache: Simple DNS answer cache.
  - dns.dnssec.ECKeyWrapper
  - dns.entropy.EntropyPool
  - dns.resolver.LRUCache: Bounded least-recently-used DNS answer cache.
  - dns.resolver.LRUCacheNode: LRUCache node.
  - dns.message.Message: A DNS message.
    - dns.update.Update
  - dns.name.Name: A DNS name.
  - dns.node.Node: A DNS node.
  - dns.edns.Option: Base class for all EDNS option types.
    - dns.edns.GenericOption: Generate Rdata Class
  - dns.rdata.Rdata: Base class for all DNS rdata types.
    - dns.rdtypes.IN.A.A: A record.
    - dns.rdtypes.IN.AAAA.AAAA: AAAA record.
    - dns.rdtypes.IN.APL.APL: APL record.
    - dns.rdtypes.ANY.CERT.CERT: CERT record
    - dns.rdtypes.IN.DHCID.DHCID: DHCID record
    - dns.rdtypes.ANY.DNSKEY.DNSKEY: DNSKEY record
    - dns.rdtypes.dsbase.DSBase: Base class for rdata that is like a DS record
      - dns.rdtypes.ANY.DLV.DLV: DLV record
      - dns.rdtypes.ANY.DS.DS: DS record
    - dns.rdtypes.ANY.GPOS.GPOS: GPOS record
    - dns.rdata.GenericRdata: Generate Rdata Class
    - dns.rdtypes.ANY.HINFO.HINFO: HINFO record
    - dns.rdtypes.ANY.HIP.HIP: HIP record
    - dns.rdtypes.IN.IPSECKEY.IPSECKEY: IPSECKEY record
    - dns.rdtypes.ANY.ISDN.ISDN: ISDN record
    - dns.rdtypes.ANY.LOC.LOC: LOC record
    - dns.rdtypes.mxbase.MXBase: Base class for rdata that is like an MX record.
      - dns.rdtypes.ANY.MX.MX: MX record
      - dns.rdtypes.mxbase.UncompressedDowncasingMX: Base class for rdata that is like an MX record, but whose name is not compressed when convert to DNS wire format.
        - dns.rdtypes.ANY.AFSDB.AFSDB: AFSDB record
        - dns.rdtypes.ANY.RT.RT: RT record
      - dns.rdtypes.mxbase.UncompressedMX: 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.
        - dns.rdtypes.IN.KX.KX: KX record
    - dns.rdtypes.IN.NAPTR.NAPTR: NAPTR record
    - dns.rdtypes.IN.NSAP.NSAP: NSAP record.
    - dns.rdtypes.nsbase.NSBase: Base class for rdata that is like an NS record.
      - dns.rdtypes.ANY.CNAME.CNAME: CNAME record
      - dns.rdtypes.ANY.NS.NS: NS record
      - dns.rdtypes.ANY.PTR.PTR: PTR record
      - dns.rdtypes.nsbase.UncompressedNS: 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.
        - dns.rdtypes.ANY.DNAME.DNAME: DNAME record
        - dns.rdtypes.IN.NSAP_PTR.NSAP_PTR: NSAP-PTR record
    - dns.rdtypes.ANY.NSEC.NSEC: NSEC record
    - dns.rdtypes.ANY.NSEC3.NSEC3: NSEC3 record
    - dns.rdtypes.ANY.NSEC3PARAM.NSEC3PARAM: NSEC3PARAM record
    - dns.rdtypes.IN.PX.PX: PX record.
    - dns.rdtypes.ANY.RP.RP: RP record
    - dns.rdtypes.ANY.RRSIG.RRSIG: RRSIG record
    - dns.rdtypes.ANY.SOA.SOA: SOA record
    - dns.rdtypes.IN.SRV.SRV: SRV record
    - dns.rdtypes.ANY.SSHFP.SSHFP: SSHFP record
    - dns.rdtypes.ANY.TLSA.TLSA: TLSA record
    - dns.rdtypes.txtbase.TXTBase: Base class for rdata that is like a TXT record
      - dns.rdtypes.ANY.SPF.SPF: SPF record
      - dns.rdtypes.ANY.TXT.TXT: TXT record
    - dns.rdtypes.IN.WKS.WKS: WKS record
    - dns.rdtypes.ANY.X25.X25: X25 record
  - dns.renderer.Renderer: Helper class for building DNS wire-format messages.
  - dns.resolver.Resolver: DNS stub resolver
  - dns.set.Set: A simple set class.
    - dns.rdataset.Rdataset: A DNS rdataset.
      - dns.rrset.RRset: A DNS RRset (named rdataset).
  - dns.tokenizer.Token: A DNS master file format token.
  - dns.tokenizer.Tokenizer: A DNS master file format tokenizer.
  - dns.zone.Zone: A DNS zone.
  - dns.zone._MasterReader: Read a DNS master file
  - dns.message._TextReader: Text format reader.
  - dns.message._WireReader: Wire format reader.
  - basestring: Type basestring cannot be instantiated; it is the base for str and unicode.
    - str: str(object='') -> string
      - dns.wiredata.WireData
      - dns.wiredata._SliceUnspecifiedBound
  - dict: dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list.
    - dns.namedict.NameDict: A dictionary whose keys are dns.name.Name objects.