Struct trust_dns_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,
pub bind_addr: Option<SocketAddr>,
}Expand description
Configuration for the NameServer
Fields§
§socket_addr: SocketAddrThe address which the DNS NameServer is registered at.
protocol: ProtocolThe protocol to use when communicating with the NameServer.
tls_dns_name: Option<String>SPKI name, only relevant for TLS connections
trust_nx_responses: boolWhether to trust NXDOMAIN responses from upstream nameservers.
When this is true, and an empty NXDOMAIN response is received, the
query will not be retried against other configured name servers.
(On an empty NoError response, or a response with any other error
response code, the query will still be retried regardless of this
configuration setting.)
Defaults to false.
bind_addr: Option<SocketAddr>The client address (IP and port) to use for connecting to the server.
Trait Implementations§
source§impl Clone for NameServerConfig
impl Clone for NameServerConfig
source§fn clone(&self) -> NameServerConfig
fn clone(&self) -> NameServerConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more