class IResolver(IResolverSimple): (source)
Known implementations: twisted.names.client
, twisted.names.common.ResolverBase
, twisted.names.resolve.ResolverChain
Undocumented
Method | lookup |
Perform an A record lookup. |
Method | lookup |
Perform an A6 record lookup. |
Method | lookup |
Perform an AFSDB record lookup. |
Method | lookup |
Perform an ALL_RECORD lookup. |
Method | lookup |
Perform an SOA record lookup. |
Method | lookup |
Perform a CNAME record lookup. |
Method | lookup |
Perform a HINFO record lookup. |
Method | lookup |
Perform an AAAA record lookup. |
Method | lookup |
Perform an MB record lookup. |
Method | lookup |
Perform an MINFO record lookup. |
Method | lookup |
Perform an MX record lookup. |
Method | lookup |
Perform an MG record lookup. |
Method | lookup |
Perform an MR record lookup. |
Method | lookup |
Perform an NS record lookup. |
Method | lookup |
Perform a NAPTR record lookup. |
Method | lookup |
Perform a NULL record lookup. |
Method | lookup |
Perform a PTR record lookup. |
Method | lookup |
Perform an RP record lookup. |
Method | lookup |
Perform a SPF record lookup. |
Method | lookup |
Perform an SRV record lookup. |
Method | lookup |
Perform a TXT record lookup. |
Method | lookup |
Perform a WKS record lookup. |
Method | lookup |
Perform an AXFR record lookup. |
Method | query |
Dispatch query to the method which can handle its type. |
Inherited from IResolverSimple
:
Method | get |
Resolve the domain name name into an IP address. |
str
, timeout: Sequence[ int]
) -> Deferred[ Tuple[ RRHeader, RRHeader, RRHeader]]
:
(source)
¶
Perform an A record lookup.
Parameters | |
name:str | DNS name to resolve. |
timeout:Sequence[ | Number of seconds after which to reissue the query. When the last timeout expires, the query is considered failed. |
Returns | |
Deferred[ | 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. |
str
, timeout: Sequence[ int]
) -> Deferred[ Tuple[ RRHeader, RRHeader, RRHeader]]
:
(source)
¶
Perform an A6 record lookup.
Parameters | |
name:str | DNS name to resolve. |
timeout:Sequence[ | Number of seconds after which to reissue the query. When the last timeout expires, the query is considered failed. |
Returns | |
Deferred[ | 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. |
str
, timeout: Sequence[ int]
) -> Deferred[ Tuple[ RRHeader, RRHeader, RRHeader]]
:
(source)
¶
Perform an AFSDB record lookup.
Parameters | |
name:str | DNS name to resolve. |
timeout:Sequence[ | Number of seconds after which to reissue the query. When the last timeout expires, the query is considered failed. |
Returns | |
Deferred[ | 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. |
str
, timeout: Sequence[ int]
) -> Deferred[ Tuple[ RRHeader, RRHeader, RRHeader]]
:
(source)
¶
Perform an ALL_RECORD lookup.
Parameters | |
name:str | DNS name to resolve. |
timeout:Sequence[ | Number of seconds after which to reissue the query. When the last timeout expires, the query is considered failed. |
Returns | |
Deferred[ | 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. |
str
, timeout: Sequence[ int]
) -> Deferred[ Tuple[ RRHeader, RRHeader, RRHeader]]
:
(source)
¶
Perform an SOA record lookup.
Parameters | |
name:str | DNS name to resolve. |
timeout:Sequence[ | Number of seconds after which to reissue the query. When the last timeout expires, the query is considered failed. |
Returns | |
Deferred[ | 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. |
str
, timeout: Sequence[ int]
) -> Deferred[ Tuple[ RRHeader, RRHeader, RRHeader]]
:
(source)
¶
Perform a CNAME record lookup.
Parameters | |
name:str | DNS name to resolve. |
timeout:Sequence[ | Number of seconds after which to reissue the query. When the last timeout expires, the query is considered failed. |
Returns | |
Deferred[ | 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. |
str
, timeout: Sequence[ int]
) -> Deferred[ Tuple[ RRHeader, RRHeader, RRHeader]]
:
(source)
¶
Perform a HINFO record lookup.
Parameters | |
name:str | DNS name to resolve. |
timeout:Sequence[ | Number of seconds after which to reissue the query. When the last timeout expires, the query is considered failed. |
Returns | |
Deferred[ | 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. |
str
, timeout: Sequence[ int]
) -> Deferred[ Tuple[ RRHeader, RRHeader, RRHeader]]
:
(source)
¶
Perform an AAAA record lookup.
Parameters | |
name:str | DNS name to resolve. |
timeout:Sequence[ | Number of seconds after which to reissue the query. When the last timeout expires, the query is considered failed. |
Returns | |
Deferred[ | 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. |
str
, timeout: Sequence[ int]
) -> Deferred[ Tuple[ RRHeader, RRHeader, RRHeader]]
:
(source)
¶
Perform an MB record lookup.
Parameters | |
name:str | DNS name to resolve. |
timeout:Sequence[ | Number of seconds after which to reissue the query. When the last timeout expires, the query is considered failed. |
Returns | |
Deferred[ | 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. |
str
, timeout: Sequence[ int]
) -> Deferred[ Tuple[ RRHeader, RRHeader, RRHeader]]
:
(source)
¶
Perform an MINFO record lookup.
Parameters | |
name:str | DNS name to resolve. |
timeout:Sequence[ | Number of seconds after which to reissue the query. When the last timeout expires, the query is considered failed. |
Returns | |
Deferred[ | 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. |
str
, timeout: Sequence[ int]
) -> Deferred[ Tuple[ RRHeader, RRHeader, RRHeader]]
:
(source)
¶
Perform an MX record lookup.
Parameters | |
name:str | DNS name to resolve. |
timeout:Sequence[ | Number of seconds after which to reissue the query. When the last timeout expires, the query is considered failed. |
Returns | |
Deferred[ | 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. |
str
, timeout: Sequence[ int]
) -> Deferred[ Tuple[ RRHeader, RRHeader, RRHeader]]
:
(source)
¶
Perform an MG record lookup.
Parameters | |
name:str | DNS name to resolve. |
timeout:Sequence[ | Number of seconds after which to reissue the query. When the last timeout expires, the query is considered failed. |
Returns | |
Deferred[ | 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. |
str
, timeout: Sequence[ int]
) -> Deferred[ Tuple[ RRHeader, RRHeader, RRHeader]]
:
(source)
¶
Perform an MR record lookup.
Parameters | |
name:str | DNS name to resolve. |
timeout:Sequence[ | Number of seconds after which to reissue the query. When the last timeout expires, the query is considered failed. |
Returns | |
Deferred[ | 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. |
str
, timeout: Sequence[ int]
) -> Deferred[ Tuple[ RRHeader, RRHeader, RRHeader]]
:
(source)
¶
Perform an NS record lookup.
Parameters | |
name:str | DNS name to resolve. |
timeout:Sequence[ | Number of seconds after which to reissue the query. When the last timeout expires, the query is considered failed. |
Returns | |
Deferred[ | 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. |
str
, timeout: Sequence[ int]
) -> Deferred[ Tuple[ RRHeader, RRHeader, RRHeader]]
:
(source)
¶
Perform a NAPTR record lookup.
Parameters | |
name:str | DNS name to resolve. |
timeout:Sequence[ | Number of seconds after which to reissue the query. When the last timeout expires, the query is considered failed. |
Returns | |
Deferred[ | 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. |
str
, timeout: Sequence[ int]
) -> Deferred[ Tuple[ RRHeader, RRHeader, RRHeader]]
:
(source)
¶
Perform a NULL record lookup.
Parameters | |
name:str | DNS name to resolve. |
timeout:Sequence[ | Number of seconds after which to reissue the query. When the last timeout expires, the query is considered failed. |
Returns | |
Deferred[ | 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. |
str
, timeout: Sequence[ int]
) -> Deferred[ Tuple[ RRHeader, RRHeader, RRHeader]]
:
(source)
¶
Perform a PTR record lookup.
Parameters | |
name:str | DNS name to resolve. |
timeout:Sequence[ | Number of seconds after which to reissue the query. When the last timeout expires, the query is considered failed. |
Returns | |
Deferred[ | 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. |
str
, timeout: Sequence[ int]
) -> Deferred[ Tuple[ RRHeader, RRHeader, RRHeader]]
:
(source)
¶
Perform an RP record lookup.
Parameters | |
name:str | DNS name to resolve. |
timeout:Sequence[ | Number of seconds after which to reissue the query. When the last timeout expires, the query is considered failed. |
Returns | |
Deferred[ | 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. |
str
, timeout: Sequence[ int]
) -> Deferred[ Tuple[ RRHeader, RRHeader, RRHeader]]
:
(source)
¶
Perform a SPF record lookup.
Parameters | |
name:str | DNS name to resolve. |
timeout:Sequence[ | Number of seconds after which to reissue the query. When the last timeout expires, the query is considered failed. |
Returns | |
Deferred[ | 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. |
str
, timeout: Sequence[ int]
) -> Deferred[ Tuple[ RRHeader, RRHeader, RRHeader]]
:
(source)
¶
Perform an SRV record lookup.
Parameters | |
name:str | DNS name to resolve. |
timeout:Sequence[ | Number of seconds after which to reissue the query. When the last timeout expires, the query is considered failed. |
Returns | |
Deferred[ | 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. |
str
, timeout: Sequence[ int]
) -> Deferred[ Tuple[ RRHeader, RRHeader, RRHeader]]
:
(source)
¶
Perform a TXT record lookup.
Parameters | |
name:str | DNS name to resolve. |
timeout:Sequence[ | Number of seconds after which to reissue the query. When the last timeout expires, the query is considered failed. |
Returns | |
Deferred[ | 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. |
str
, timeout: Sequence[ int]
) -> Deferred[ Tuple[ RRHeader, RRHeader, RRHeader]]
:
(source)
¶
Perform a WKS record lookup.
Parameters | |
name:str | DNS name to resolve. |
timeout:Sequence[ | Number of seconds after which to reissue the query. When the last timeout expires, the query is considered failed. |
Returns | |
Deferred[ | 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. |
str
, timeout: Sequence[ int]
) -> Deferred[ Tuple[ RRHeader, RRHeader, RRHeader]]
:
(source)
¶
Perform an AXFR record lookup.
NB This is quite different from other DNS requests. See http://cr.yp.to/djbdns/axfr-notes.html for more information.
NB Unlike other lookup* methods, the timeout here is not a list of ints, it is a single int.
Parameters | |
name:str | DNS name to resolve. |
timeout:Sequence[ | When this timeout expires, the query is considered failed. |
Returns | |
Deferred[ | 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 and third elements are always empty. The Deferred may instead fail with one of the exceptions defined in twisted.names.error or with NotImplementedError. |
Query
, timeout: Sequence[ int]
) -> Deferred[ Tuple[ RRHeader, RRHeader, RRHeader]]
:
(source)
¶
Dispatch query to the method which can handle its type.
Parameters | |
query:Query | The DNS query being issued, to which a response is to be generated. |
timeout:Sequence[ | Number of seconds after which to reissue the query. When the last timeout expires, the query is considered failed. |
Returns | |
Deferred[ | 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. |