class documentation

class PySourceAuthority(FileAuthority): (source)

View In Hierarchy

A FileAuthority that is built up from Python source code.
Method load​File Load DNS records from a file.
Method setup​Config​Namespace Undocumented
Method wrap​Record Undocumented
Instance Variable records Undocumented
Instance Variable soa Undocumented

Inherited from FileAuthority:

Method __init__ Undocumented
Method __setstate__ Undocumented
Method lookup​Zone Perform an AXFR record lookup.
Instance Variable __dict__ Undocumented
Method _additional​Records Find locally known information that could be useful to the consumer of the response and construct appropriate records to include in the additional section of that response.
Method _cb​All​Records Undocumented
Method _lookup Determine a response to a particular DNS query.
Constant _ADDITIONAL​_PROCESSING​_TYPES Record types for which additional processing will be done.
Constant _ADDRESS​_TYPES Record types which are useful for inclusion in the additional section generated during additional processing.
Instance Variable _cache Undocumented

Inherited from ResolverBase (via FileAuthority):

Method exception​For​Code Convert a response code (one of the possible values of dns.Message.rCode to an exception instance representing it.
Method get​Host​By​Name Resolve the domain name name into an IP address.
Method lookup​Address Perform an A record lookup.
Method lookup​Address6 Perform an A6 record lookup.
Method lookup​AFSDatabase Perform an AFSDB record lookup.
Method lookup​All​Records Perform an ALL_RECORD lookup.
Method lookup​Authority Perform an SOA record lookup.
Method lookup​Canonical​Name Perform a CNAME record lookup.
Method lookup​Host​Info Perform a HINFO record lookup.
Method lookup​IPV6​Address Perform an AAAA record lookup.
Method lookup​Mail​Box Perform an MB record lookup.
Method lookup​Mailbox​Info Perform an MINFO record lookup.
Method lookup​Mail​Exchange Perform an MX record lookup.
Method lookup​Mail​Group Perform an MG record lookup.
Method lookup​Mail​Rename Perform an MR record lookup.
Method lookup​Nameservers Perform an NS record lookup.
Method lookup​Naming​Authority​Pointer Perform a NAPTR record lookup.
Method lookup​Null Perform a NULL record lookup.
Method lookup​Pointer Perform a PTR record lookup.
Method lookup​Responsibility Perform an RP record lookup.
Method lookup​Sender​Policy Perform a SPF record lookup.
Method lookup​Service Perform an SRV record lookup.
Method lookup​Text Perform a TXT record lookup.
Method lookup​Well​Known​Services Perform a WKS record lookup.
Method query Dispatch query to the method which can handle its type.
Instance Variable type​To​Method Undocumented
Method _cb​Records Undocumented
Class Variable _errormap A dict mapping DNS protocol failure response codes to exception classes which will be used to represent those failures.
Class Variable _log Undocumented
def loadFile(self, filename): (source)

Load DNS records from a file.

This method populates the soa and records attributes. It must be overridden in a subclass. It is called once from the initializer.

Parameters
filenameThe filename parameter that was passed to the initilizer.
Returns
None -- the return value is ignored
def setupConfigNamespace(self): (source)

Undocumented

def wrapRecord(self, type): (source)

Undocumented