Module dns

Source
Available on crate feature client only.
Expand description

DNS resolution utilities.

Structs§

ConstantResolver
A resolver that always returns the same address.
FirstAddrFuture
Future returned by FirstAddrResolver when resolving
FirstAddrResolver
Converts a standard resolver (which can return multiple addresses) into a resolver that only returns the first address as an IP address, suitable for use with a TCP transport that doesn’t do multiple connections.
GaiResolver
GetAddrInfo based resolver.
JoinHandleFuture
Future returned by GaiResolver when resolving via getaddrinfo.
ParseAddressResolver
A resolver that parses the input hostname as an IP address.
SocketAddrs
A collection of socket addresses.

Enums§

IpVersion
IP version.

Traits§

FirstAddrExt
Extension trait for resolvers that can be converted to a FirstAddrResolver.
IpVersionExt
Extension trait for IpAddr and SocketAddr to get the IP version.
ResolverExt
Extension trait for resolvers.

Type Aliases§

GaiFuture
A future returned by GaiResolver when resolving via getaddrinfo in a worker thread.