Struct async_std_resolver::config::NameServerConfig
source · [−]pub struct NameServerConfig {
pub socket_addr: SocketAddr,
pub protocol: Protocol,
pub tls_dns_name: Option<String>,
pub trust_nx_responses: bool,
}
Expand description
Configuration for the NameServer
Fields
socket_addr: SocketAddr
The address which the DNS NameServer is registered at.
protocol: Protocol
The protocol to use when communicating with the NameServer.
tls_dns_name: Option<String>
SPKI name, only relevant for TLS connections
trust_nx_responses: bool
Default to not trust negative responses from upstream nameservers
When a SERVFAIL, NXDOMAIN and NoError/Empty response is received, the query will be retried against other configured name servers.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for NameServerConfig
impl Send for NameServerConfig
impl Sync for NameServerConfig
impl Unpin for NameServerConfig
impl UnwindSafe for NameServerConfig
Blanket Implementations
Mutably borrows from an owned value. Read more