Module client
Available on crate features
dns and std only.Modules§
- hickory
hickory - dns using the
hickory_resolvercrate - lb
- DNS-based client-side load balancer.
- resolver
Structs§
- Deny
AllDns Resolver - a
DnsResolverimplementation which denies all incoming DNS requests with aDnsDeniedError. - DnsAddress
Source - Adapt a DNS resolver to the lazy
AddressCandidatestransport contract. - DnsConnector
- A connector service that stamps a lazy DNS
ConnectorTargetStreamfor a domain target, then forwards the input to the inner transport connector. - DnsConnector
Layer - A
Layerwhich wraps a transport connector with DNS resolution. - DnsDenied
Error - Dns resolve denied
- DnsTimeout
Error - A DNS lookup that ran out of time.
- Empty
DnsResolver - a
DnsResolverimplementation which returns an empty stream for any DNS resolve call. - Global
DnsResolver - Hickory
DnsResolver - DNS Resolver using the
hickory_resolvercrate - Https
Service Binding - One compatible HTTPS record and its effective physical endpoint.
- Https
Service Bindings - The result of one bounded HTTPS alias traversal.
- Linux
DnsResolver - Tokio
DnsCname Unsupported Error - Tokio DNS resolver does not support CNAME lookups
- Tokio
DnsResolver - Portable DNS resolver backed by the host’s
getaddrinfo, run on tokio’s blocking pool. - Tokio
DnsService Binding Unsupported Error - Tokio DNS resolver does not support SVCB or HTTPS lookups; boxed dispatch preserves this type for downcasting
- Tokio
DnsTxt Unsupported Error - Tokio DNS resolver does not support TXT lookups
Constants§
- DEFAULT_
HTTPS_ ALIAS_ LIMIT - Default maximum number of HTTPS AliasMode records to follow. This traversal limit is independent of per-RRset resolver limits.
Functions§
- init_
global_ dns_ resolver - Initialises the global
DnsResolver. - lookup_
https_ service_ bindings - Discover HTTPS services using a borrowed resolver, following at most
max_aliasesAliasMode records. UseDEFAULT_HTTPS_ALIAS_LIMITfor the standard traversal bound andsuper::resolver::BoundedDnsResolverfor independently configured per-RRset limits. - order_
service_ binding_ records - Collect a complete SVCB or HTTPS RRset, ordered by increasing priority with random ordering among equal priorities (including AliasMode records).
- try_
init_ global_ dns_ resolver - Tries to initialise the global
DnsResolver.
Type Aliases§
- Native
DnsResolver Linux