class documentation

class BindAuthority(FileAuthority): (source)

View In Hierarchy

An Authority that loads BIND zone files.

Supports only $ORIGIN and $TTL directives.

Method add​Record Add a record to our authority. Expand domain with origin if necessary.
Method class_​IN Simulate a class IN and recurse into the actual class.
Method collapse​Continuations Transform multiline statements into single lines.
Method load​File Load records from filename.
Method parse​Lines Parse lines.
Method parse​Record​Line Parse a line from a zone file respecting origin and ttl.
Method strip​Comments Strip comments from lines.
Instance Variable origin 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 addRecord(self, owner, ttl, type, domain, cls, rdata): (source)
Add a record to our authority. Expand domain with origin if necessary.
Parameters
owner:bytesorigin?
ttl:inttime to live for the record
type:strrecord type
domain:bytesthe domain for which the record is to be added
cls:strrecord class
rdata:list of bytesrecord data
def class_IN(self, ttl, type, domain, rdata): (source)
Simulate a class IN and recurse into the actual class.
Parameters
ttl:inttime to live for the record
type:strrecord type
domain:bytesthe domain
rdata:bytes
def collapseContinuations(self, lines): (source)
Transform multiline statements into single lines.
Parameters
lines:iterable of byteslines to work on
Returns
iterable of continuous lines
def loadFile(self, filename): (source)
Load records from filename.
Parameters
filename:bytesfile to read from
def parseLines(self, lines): (source)
Parse lines.
Parameters
lines:iterable of byteslines to work on
def parseRecordLine(self, origin, ttl, line): (source)

Parse a line from a zone file respecting origin and ttl.

Add resulting records to authority.

Parameters
origin:bytesstarting point for the zone
ttl:inttime to live for the record
line:list of byteszone file line to parse; split by word
def stripComments(self, lines): (source)
Strip comments from lines.
Parameters
lines:iterable of byteslines to work on
Returns
lines sans comments.
origin = (source)

Undocumented