Function lookup_host_via_proxy

Source
pub fn lookup_host_via_proxy(
    host: &str,
    proxy_addr: SocketAddr,
) -> Result<Vec<IpAddr>, Error>
Available on non-WebAssembly only.
Expand description

Lookup host by DNS-over-HTTPS (DoH) through a SOCKS5 proxy. Returns both A (IPv4) and AAAA (IPv6) records. Only Google sees the actual DNS query but doesn’t learn our IP.