dnspython  1.16.0
About: dnspython is a DNS toolkit (for Python 2.x) that supports almost all record types.
  Fossies Dox: dnspython-1.16.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

dns.resolver.NXDOMAIN Class Reference
Inheritance diagram for dns.resolver.NXDOMAIN:
[legend]
Collaboration diagram for dns.resolver.NXDOMAIN:
[legend]

Public Member Functions

def __str__ (self)
 
def canonical_name (self)
 
def __add__ (self, e_nx)
 
def qnames (self)
 
def responses (self)
 
def response (self, qname)
 
- Public Member Functions inherited from dns.exception.DNSException
def __init__ (self, *args, **kwargs)
 

Static Public Attributes

dictionary supp_kwargs = {'qnames', 'responses'}
 
 fmt = None
 
- Static Public Attributes inherited from dns.exception.DNSException
 msg = None
 
 supp_kwargs = set()
 
 fmt = None
 

Properties

 canonical_name
 

Private Member Functions

def _check_kwargs (self, qnames, responses=None)
 

Additional Inherited Members

- Public Attributes inherited from dns.exception.DNSException
 kwargs
 

Detailed Description

The DNS query name does not exist.

Definition at line 50 of file resolver.py.

Member Function Documentation

◆ __add__()

def dns.resolver.NXDOMAIN.__add__ (   self,
  e_nx 
)
Augment by results from another NXDOMAIN exception.

Definition at line 96 of file resolver.py.

References dns.hash.get(), and dns.exception.DNSException.kwargs.

◆ __str__()

def dns.resolver.NXDOMAIN.__str__ (   self)

Reimplemented from dns.exception.DNSException.

Definition at line 67 of file resolver.py.

References dns.exception.DNSException.kwargs.

◆ _check_kwargs()

def dns.resolver.NXDOMAIN._check_kwargs (   self,
  qnames,
  responses = None 
)
private

Definition at line 55 of file resolver.py.

◆ canonical_name()

def dns.resolver.NXDOMAIN.canonical_name (   self)

◆ qnames()

def dns.resolver.NXDOMAIN.qnames (   self)
All of the names that were tried.

Returns a list of ``dns.name.Name``.

Definition at line 108 of file resolver.py.

References dns.exception.DNSException.kwargs.

◆ response()

def dns.resolver.NXDOMAIN.response (   self,
  qname 
)
The response for query *qname*.

Returns a ``dns.message.Message``.

Definition at line 123 of file resolver.py.

References dns.exception.DNSException.kwargs.

◆ responses()

def dns.resolver.NXDOMAIN.responses (   self)
A map from queried names to their NXDOMAIN responses.

Returns a dict mapping a ``dns.name.Name`` to a
``dns.message.Message``.

Definition at line 115 of file resolver.py.

References dns.exception.DNSException.kwargs.

Member Data Documentation

◆ fmt

dns.resolver.NXDOMAIN.fmt = None
static

Definition at line 53 of file resolver.py.

◆ supp_kwargs

dictionary dns.resolver.NXDOMAIN.supp_kwargs = {'qnames', 'responses'}
static

Definition at line 52 of file resolver.py.

Property Documentation

◆ canonical_name

dns.resolver.NXDOMAIN.canonical_name
static
Initial value:
= property(canonical_name, doc=(
"Return the unresolved canonical name."))

Definition at line 93 of file resolver.py.

Referenced by dns.resolver.NXDOMAIN.canonical_name().


The documentation for this class was generated from the following file: