Module dns
DNS Resolution used by the HttpConnector.
This module contains:
- A
GaiResolverthat is the default resolver for theHttpConnector. - The
Nametype used as an argument to custom resolvers.
Resolvers are Services
A resolver is just a
Service<Name, Response = impl Iterator<Item = SocketAddr>>.
A simple resolver that ignores the name and always returns a specific address:
use ;
let resolver = service_fn;
Structs
-
GaiAddrs
An iterator of IP addresses returned from
getaddrinfo. -
GaiFuture
A future to resolve a name returned by
GaiResolver. -
GaiResolver
A resolver using blocking
getaddrinfocalls in a threadpool. - InvalidNameError Error indicating a given string was not a valid domain name.
- Name A domain name to resolve into IP addresses.