Resolve hostnames by sending DNS queries over HTTPS. It uses
https://22.214.171.124 as the DNS resolver by default, hosted by Cloudflare. According to Cloudflare it is a privacy-first consumer DNS service. See https://126.96.36.199 for more information.
let addr = dnsoverhttps::resolve_host("example.com");
let client = dnsoverhttps::Client::from_url_with_hostname("https://188.8.131.52/experimental", "dns.google.com".to_string()).unwrap(); let addr = client.resolve_host("example.com");
dnsoverhttps comes with a small CLI utility providing
host functionality to resolve hostnames:
$ host example.com example.com has address 2606:2800:220:1:248:1893:25c8:1946 example.com has address 184.108.40.206
cargo install dnsoverhttps
MIT. See LICENSE.