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 |
dict
mapping DNS protocol failure response codes to
exception classes which will be used to represent those failures.
dns.Message.rCode
to an exception instance representing it.Present Since | 10.0 |
query
to the method which can handle its type.Parameters | query | The DNS query being issued, to which a response is to be generated. (type: twisted.names.dns.Query ) |
Returns | A 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 . |
See Also | twisted.names.client.lookupAddress |
See Also | twisted.names.client.lookupIPV6Address |
See Also | twisted.names.client.lookupMailExchange |
See Also | twisted.names.client.lookupNameservers |
See Also | twisted.names.client.lookupCanonicalName |
See Also | twisted.names.client.lookupMailGroup |
See Also | twisted.names.client.lookupMailRename |
See Also | twisted.names.client.lookupAuthority |
See Also | twisted.names.client.lookupWellKnownServices |
See Also | twisted.names.client.lookupMailboxInfo |
See Also | twisted.names.client.lookupSenderPolicy |
See Also | twisted.names.client.lookupResponsibility |
See Also | twisted.names.client.lookupAFSDatabase |
See Also | twisted.names.client.lookupNamingAuthorityPointer |
See Also | twisted.names.client.lookupAllRecords |
See Also | twisted.names.client.getHostByName |