Struct c_ares_resolver::Resolver [] [src]

pub struct Resolver { /* fields omitted */ }

An asynchronous DNS resolver.

Methods

impl Resolver
[src]

Create a new Resolver, using default Options.

Create a new Resolver, with the given Options.

Set the list of servers to contact, instead of the servers specified in resolv.conf or the local named.

String format is host[:port]. IPv6 addresses with ports require square brackets eg [2001:4860:4860::8888]:53.

Set the local IPv4 address from which to make queries.

Set the local IPv6 address from which to make queries.

Set the local device from which to make queries.

Look up the A records associated with name.

On completion, handler is called with the result.

Search for the A records associated with name.

On completion, handler is called with the result.

Look up the AAAA records associated with name.

On completion, handler is called with the result.

Search for the AAAA records associated with name.

On completion, handler is called with the result.

Look up the CNAME records associated with name.

On completion, handler is called with the result.

Search for the CNAME records associated with name.

On completion, handler is called with the result.

Look up the MX records associated with name.

On completion, handler is called with the result.

Search for the MX records associated with name.

On completion, handler is called with the result.

Look up the NAPTR records associated with name.

On completion, handler is called with the result.

Search for the NAPTR records associated with name.

On completion, handler is called with the result.

Look up the NS records associated with name.

On completion, handler is called with the result.

Search for the NS records associated with name.

On completion, handler is called with the result.

Look up the PTR records associated with name.

On completion, handler is called with the result.

Search for the PTR records associated with name.

On completion, handler is called with the result.

Look up the SOA record associated with name.

On completion, handler is called with the result.

Search for the SOA record associated with name.

On completion, handler is called with the result.

Look up the SRV records associated with name.

On completion, handler is called with the result.

Search for the SRV records associated with name.

On completion, handler is called with the result.

Look up the TXT records associated with name.

On completion, handler is called with the result.

Search for the TXT records associated with name.

On completion, handler is called with the result.

Perform a host query by address.

On completion, handler is called with the result.

Perform a host query by name.

On completion, handler is called with the result.

Address-to-nodename translation in protocol-independent manner.

On completion, handler is called with the result.

Initiate a single-question DNS query for name. The class and type of the query are per the provided parameters, taking values as defined in arpa/nameser.h.

On completion, handler is called with the result.

This method is provided so that users can query DNS types for which c-ares does not provide a parser; or in case a third-party parser is preferred. Usually, if a suitable query_xxx() is available, that should be used.

Initiate a series of single-question DNS queries for name. The class and type of the query are per the provided parameters, taking values as defined in arpa/nameser.h.

On completion, handler is called with the result.

This method is provided so that users can query DNS types for which c-ares does not provide a parser; or in case a third-party parser is preferred. Usually, if a suitable search_xxx() is available, that should be used.

Cancel all requests made on this Resolver.

Trait Implementations

impl Drop for Resolver
[src]

A method called when the value goes out of scope. Read more