twisted.names.client.lookupMailExchange(name, timeout=None)
function documentationtwisted.names.client
View Source
Perform an MX record lookup.
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 | 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 . (type: Deferred ) |