pub struct DnsOverTls {
pub props: Props,
pub addr: Option<Addr>,
pub hashi: Vec<[u8; 32]>,
pub hostname: String,
pub bootstrap_ipi: Vec<IpAddr>,
}Expand description
DNS over TLS configuration
Fields§
§props: Propsserver properties
addr: Option<Addr>addr is the IP address of the server. It can be an empty string, or just a port number, represented with a preceding colon (:443). In that case, the host name will be resolved to an IP address using another resolver.
hashi: Vec<[u8; 32]>hashi is the SHA256 digest of one of the TBS certificate found in the validation chain, typically the certificate used to sign the resolver’s certificate. Multiple hashes can be provided for seamless rotations.
hostname: Stringhostname is the server host name which will also be used as a SNI name. If the host name contains characters outside the URL-permitted range, these characters should be sent as-is, without any extra encoding (neither URL-encoded nor punycode).
bootstrap_ipi: Vec<IpAddr>bootstrap_ipi are IP addresses of recommended resolvers accessible over standard DNS in order to resolve hostname. This is optional, and clients can ignore this information.
Implementations§
Trait Implementations§
Source§impl Clone for DnsOverTls
impl Clone for DnsOverTls
Source§fn clone(&self) -> DnsOverTls
fn clone(&self) -> DnsOverTls
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more