Part of twisted.names View Source
Asynchronous client DNS
The functions exposed in this module can be used for asynchronous name resolution and dns queries.
If you need to create a resolver with specific requirements, such as
needing to do queries against a particular host, the createResolver
function will return an IResolver
.
Author | Jp Calderone |
Class | Resolver | No summary |
Class | AXFRController | Undocumented |
Class | ThreadedResolver | Undocumented |
Class | DNSClientFactory | Undocumented |
Function | createResolver | Create and return a Resolver. |
Function | getResolver | Get a Resolver instance. |
Function | getHostByName | Resolve a name to a valid ipv4 or ipv6 address. |
Function | lookupAddress | Perform an A record lookup. |
Function | lookupIPV6Address | Perform an AAAA record lookup. |
Function | lookupAddress6 | Perform an A6 record lookup. |
Function | lookupMailExchange | Perform an MX record lookup. |
Function | lookupNameservers | Perform an NS record lookup. |
Function | lookupCanonicalName | Perform a CNAME record lookup. |
Function | lookupMailBox | Perform an MB record lookup. |
Function | lookupMailGroup | Perform an MG record lookup. |
Function | lookupMailRename | Perform an MR record lookup. |
Function | lookupPointer | Perform a PTR record lookup. |
Function | lookupAuthority | Perform an SOA record lookup. |
Function | lookupNull | Perform a NULL record lookup. |
Function | lookupWellKnownServices | Perform a WKS record lookup. |
Function | lookupService | Perform an SRV record lookup. |
Function | lookupHostInfo | Perform a HINFO record lookup. |
Function | lookupMailboxInfo | Perform an MINFO record lookup. |
Function | lookupText | Perform a TXT record lookup. |
Function | lookupResponsibility | Perform an RP record lookup. |
Function | lookupAFSDatabase | Perform an AFSDB record lookup. |
Function | lookupZone | Perform an AXFR record lookup. |
Function | lookupAllRecords | ALL_RECORD lookup. |
Function | lookupNamingAuthorityPointer | NAPTR lookup. |
Parameters | servers | If not None , interpreted as a list of addresses of domain
name servers to attempt to use. Addresses should be in dotted-quad
form.
(type: list of (str, int) or None
) |
resolvconf | If not None , on posix systems will be interpreted as an
alternate resolv.conf to use. Will do nothing on windows systems. If
None , /etc/resolv.conf will be used.
(type: str or None
) | |
hosts | If not None , an alternate hosts file to use. If
None on posix systems, /etc/hosts will be used. On windows,
C:\windows\hosts will be used.
(type: str or None
) | |
Returns | (type: IResolver
) |
Get a Resolver instance.
Create twisted.names.client.theResolver if it isNone
, and
then return that value.
Returns | (type: IResolver
) |
Resolve a name to a valid ipv4 or ipv6 address.
Will errback withDNSQueryTimeoutError
on a timeout,
DomainError
or AuthoritativeDomainError
(or
subclasses) on other errors.
Parameters | name | DNS name to resolve.
(type: str
) |
timeout | Number of seconds after which to reissue the query. When the last
timeout expires, the query is considered failed.
(type: Sequence of int
) | |
effort | How many times CNAME and NS records to follow while resolving this
name.
(type: int
) | |
Returns | (type: Deferred
) |
Parameters | name | DNS name to resolve.
(type: str
) |
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
) |
Parameters | name | DNS name to resolve.
(type: str
) |
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
) |
Parameters | name | DNS name to resolve.
(type: str
) |
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
) |
Parameters | name | DNS name to resolve.
(type: str
) |
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
) |
Parameters | name | DNS name to resolve.
(type: str
) |
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
) |
Parameters | name | DNS name to resolve.
(type: str
) |
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
) |
Parameters | name | DNS name to resolve.
(type: str
) |
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
) |
Parameters | name | DNS name to resolve.
(type: str
) |
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
) |
Parameters | name | DNS name to resolve.
(type: str
) |
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
) |
Parameters | name | DNS name to resolve.
(type: str
) |
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
) |
Parameters | name | DNS name to resolve.
(type: str
) |
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
) |
Parameters | name | DNS name to resolve.
(type: str
) |
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
) |
Parameters | name | DNS name to resolve.
(type: str
) |
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
) |
Parameters | name | DNS name to resolve.
(type: str
) |
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
) |
Parameters | name | DNS name to resolve.
(type: str
) |
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
) |
Parameters | name | DNS name to resolve.
(type: str
) |
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
) |
Parameters | name | DNS name to resolve.
(type: str
) |
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
) |
Parameters | name | DNS name to resolve.
(type: str
) |
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
) |
Parameters | name | DNS name to resolve.
(type: str
) |
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
) |
Parameters | name | DNS name to resolve.
(type: str
) |
timeout | When this timeout expires, the query is considered failed.
(type: int
) | |
Returns | (type: Deferred
) |
Parameters | name | DNS name to resolve.
(type: str
) |
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
) |
Parameters | name | DNS name to resolve.
(type: str
) |
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
) |