t.n.c.ResolverBase : class documentation

Part of twisted.names.common View Source View In Hierarchy

Known subclasses: twisted.names.authority.FileAuthority, twisted.names.cache.CacheResolver, twisted.names.client.Resolver, twisted.names.hosts.Resolver, twisted.names.resolve.ResolverChain, twisted.names.root.Resolver, twisted.names.secondary.SecondaryAuthority

ResolverBase is a base class for implementations of IResolver which deals with a lot of the boilerplate of implementing all of the lookup methods.
Method __init__ Undocumented
Method exceptionForCode Convert a response code (one of the possible values of dns.Message.rCode to an exception instance representing it.
Method query Dispatch query to the method which can handle its type.
Method lookupAddress
Method lookupIPV6Address
Method lookupAddress6
Method lookupMailExchange
Method lookupNameservers
Method lookupCanonicalName
Method lookupMailBox
Method lookupMailGroup
Method lookupMailRename
Method lookupPointer
Method lookupAuthority
Method lookupNull
Method lookupWellKnownServices
Method lookupService
Method lookupHostInfo
Method lookupMailboxInfo
Method lookupText
Method lookupSenderPolicy
Method lookupResponsibility
Method lookupAFSDatabase
Method lookupZone
Method lookupNamingAuthorityPointer
Method lookupAllRecords
Method getHostByName
Class Variable _errormap A dict mapping DNS protocol failure response codes to exception classes which will be used to represent those failures.
Method _lookup Undocumented
Method _cbRecords Undocumented
_errormap =
A dict mapping DNS protocol failure response codes to exception classes which will be used to represent those failures.
def __init__(self): (source)
Undocumented
def exceptionForCode(self, responseCode): (source)
Convert a response code (one of the possible values of dns.Message.rCode to an exception instance representing it.
Present Since10.0
def query(self, query, timeout=None): (source)
Dispatch query to the method which can handle its type.
ParametersqueryThe DNS query being issued, to which a response is to be generated. (type: twisted.names.dns.Query)
ReturnsA Deferred which fires with a three-tuple of lists of twisted.names.dns.RRHeader instances. The first element of the tuple gives answers. The second element of the tuple gives authorities. The third element of the tuple gives additional information. The Deferred may instead fail with one of the exceptions defined in twisted.names.error or with NotImplementedError.
def _lookup(self, name, cls, type, timeout): (source)
Undocumented
def lookupAddress(self, name, timeout=None): (source)
See Alsotwisted.names.client.lookupAddress
def lookupIPV6Address(self, name, timeout=None): (source)
See Alsotwisted.names.client.lookupIPV6Address
def lookupAddress6(self, name, timeout=None): (source)
See Alsotwisted.names.client.lookupAddress6
def lookupMailExchange(self, name, timeout=None): (source)
See Alsotwisted.names.client.lookupMailExchange
def lookupNameservers(self, name, timeout=None): (source)
See Alsotwisted.names.client.lookupNameservers
def lookupCanonicalName(self, name, timeout=None): (source)
See Alsotwisted.names.client.lookupCanonicalName
def lookupMailBox(self, name, timeout=None): (source)
See Alsotwisted.names.client.lookupMailBox
def lookupMailGroup(self, name, timeout=None): (source)
See Alsotwisted.names.client.lookupMailGroup
def lookupMailRename(self, name, timeout=None): (source)
See Alsotwisted.names.client.lookupMailRename
def lookupPointer(self, name, timeout=None): (source)
See Alsotwisted.names.client.lookupPointer
def lookupAuthority(self, name, timeout=None): (source)
See Alsotwisted.names.client.lookupAuthority
def lookupNull(self, name, timeout=None): (source)
See Alsotwisted.names.client.lookupNull
def lookupWellKnownServices(self, name, timeout=None): (source)
See Alsotwisted.names.client.lookupWellKnownServices
def lookupService(self, name, timeout=None): (source)
See Alsotwisted.names.client.lookupService
def lookupHostInfo(self, name, timeout=None): (source)
See Alsotwisted.names.client.lookupHostInfo
def lookupMailboxInfo(self, name, timeout=None): (source)
See Alsotwisted.names.client.lookupMailboxInfo
def lookupText(self, name, timeout=None): (source)
See Alsotwisted.names.client.lookupText
def lookupSenderPolicy(self, name, timeout=None): (source)
See Alsotwisted.names.client.lookupSenderPolicy
def lookupResponsibility(self, name, timeout=None): (source)
See Alsotwisted.names.client.lookupResponsibility
def lookupAFSDatabase(self, name, timeout=None): (source)
See Alsotwisted.names.client.lookupAFSDatabase
def lookupZone(self, name, timeout=None): (source)
See Alsotwisted.names.client.lookupZone
def lookupNamingAuthorityPointer(self, name, timeout=None): (source)
See Alsotwisted.names.client.lookupNamingAuthorityPointer
def lookupAllRecords(self, name, timeout=None): (source)
See Alsotwisted.names.client.lookupAllRecords
def getHostByName(self, name, timeout=None, effort=10): (source)
See Alsotwisted.names.client.getHostByName
def _cbRecords(self, records, name, effort): (source)
Undocumented
API Documentation for Twisted, generated by pydoctor at 2012-12-26 12:18:15.