Crate dns_resolver

Crate dns_resolver 

Source

Structs§

AggregateResolver
AggregateResolver aggregates the results from multiple resolver instances. This is most useful when you want to overlay or otherwise force in test data to take precedence over real resolver results. In that situation, you’d push a TestResolver ahead of the HickoryResolver that you want to use for real DNS resolution.
Answer
HickoryResolver
IpAddresses
A set of resolved IP addresses together with whether the DNS lookup that produced them was DNSSEC validated (secure). The secure flag is what lets the delivery path decide DANE eligibility without performing a second lookup; see ResolvedAddress::is_secure.
IpDisplay
MailExchanger
Name
A domain name
TLSA
RFC 6698, DNS-Based Authentication for TLS
TestResolver
UnboundResolver

Enums§

CertUsage
RFC 6698, DNS-Based Authentication for TLS
DaneStatus
The outcome of attempting to resolve DANE TLSA records for an MX host, per https://datatracker.ietf.org/doc/html/rfc7672.
DnsError
DomainClassification
Helper to reason about a domain name string. It can either be name that needs to be resolved, or some kind of IP literal. We also allow for an optional port number to be present in the domain name string.
IpLookupStrategy
Matching
RFC 6698, DNS-Based Authentication for TLS
ResolvedMxAddresses
SecureCnameStatus
The outcome of an explicit CNAME lookup used to decide DANE eligibility for an MX host whose address chain was not fully DNSSEC-secure.
Selector
RFC 6698, DNS-Based Authentication for TLS

Traits§

Resolver

Functions§

fully_qualify
get_mx_negative_ttl
get_mx_timeout
get_resolver
has_colon_port
If the provided parameter ends with :PORT and PORT is a valid u16, then crack apart and return the LABEL and PORT number portions. Otherwise, returns None
ip_lookup
ipv4_lookup
ipv6_lookup
ptr_host
reconfigure_resolver
resolve_a_or_aaaa
resolve_dane
Resolves DANE TLSA records for the given MX host and port, applying the RFC 7672 rules required for downgrade-resistant DANE SMTP.
resolve_secure_cname
Performs an explicit CNAME lookup for mx_host to determine whether it is a securely published alias.
resolve_socket_addr
Resolve a [ResolvableSocketAddr] to a list of concrete [ResolvedAddress]es.
reverse_ip
set_mx_concurrency_limit
set_mx_negative_cache_ttl
set_mx_timeout