Part of twisted.names.client View Source View In Hierarchy
Implements interfaces: twisted.internet.interfaces.IResolver
| Method | __init__ | No summary |
| Method | __getstate__ | Undocumented |
| Method | __setstate__ | Undocumented |
| Method | maybeParseConfig | Undocumented |
| Method | parseConfig | Undocumented |
| Method | pickServer | Return the address of a nameserver. |
| Method | connectionMade | Undocumented |
| Method | messageReceived | Undocumented |
| Method | queryUDP | Make a number of DNS queries via UDP. |
| Method | queryTCP | Make a number of DNS queries via TCP. |
| Method | filterAnswers | Extract results from the given message. |
| Method | lookupZone | Perform an AXFR request. This is quite different from usual DNS requests. See http://cr.yp.to/djbdns/axfr-notes.html for more information. |
| Method | _reissue | Undocumented |
| Method | _lookup | Undocumented |
| Method | _timeoutZone | Undocumented |
| Method | _cbLookupZone | Undocumented |
Inherited from ResolverBase:
| Method | query | Undocumented |
| 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 | lookupResponsibility | |
| Method | lookupAFSDatabase | |
| Method | lookupAllRecords | |
| Method | getHostByName | |
| Method | _cbRecords | Undocumented |
resolv.conf(5)-format file given by resolv as
well as those in the given servers list. Servers are queried
in a round-robin fashion. If given, resolv is periodically
checked for modification and re-parsed if it is noticed to have
changed.
| Parameters | servers | If not None, interpreted as a list of addresses of domain
name servers to attempt to use for this lookup. Addresses should be in
dotted-quad form. If specified, overrides resolv.
(type: list of (str, int) or None
) |
| resolv | Filename to read and parse as a resolver(5) configuration file.
(type: str
) | |
| timeout | Default number of seconds after which to reissue the query. When the
last timeout expires, the query is considered failed.
(type: Sequence of int
) | |
| Raises | ValueError | Raised if no nameserver addresses can be found. |
Return the address of a nameserver.
TODO: Weight servers for response time so faster ones can be preferred.| Parameters | queries | The queries to make.
(type: A list of dns.Query instances
) |
| timeout | Number of seconds after which to reissue the query. When the last
timeout expires, the query is considered failed.
(type: Sequence of int
) | |
| Returns | (type: Deferred @raise
twisted.internet.defer.TimeoutError: When the query times
out.
) | |
| Parameters | queries | The queries to make.
(type: Any non-zero number of dns.Query instances
) |
| timeout | The number of seconds after which to fail.
(type: int
) | |
| Returns | (type: Deferred
) | |
Extract results from the given message.
If the message was truncated, re-attempt the query over TCP and return a Deferred which will fire with the results of that query.
If the message's result code is not dns.OK, return a
Failure indicating the type of error which occurred.