hickory_proto::rustls::tls_client_stream

Function tls_client_connect

Source
pub fn tls_client_connect<P: RuntimeProvider>(
    name_server: SocketAddr,
    dns_name: String,
    client_config: Arc<ClientConfig>,
    provider: P,
) -> (Pin<Box<dyn Future<Output = Result<TlsClientStream<P::Tcp>, ProtoError>> + Send + Unpin>>, BufDnsStreamHandle)
Available on crate feature dns-over-rustls only.
Expand description

Creates a new TlsStream to the specified name_server

ยงArguments

  • name_server - IP and Port for the remote DNS resolver
  • bind_addr - IP and port to connect from
  • dns_name - The DNS name associated with a certificate