Crate dnsoverhttps [−] [src]
Resolve hostnames by sending DNS queries over HTTPS.
https://188.8.131.52 as the DNS resolver by default, hosted by Cloudflare.
According to Cloudflare it is a privacy-first consumer DNS service.
See https://184.108.40.206 for more information.
- When specifing a URL, the hostname has to be specified as well for use in HTTP. The TLS Certificate received from the server is validated, but not checked for the correct hostname..
- Only handles A and AAAA records for now (IPv4 & IPv6, this implicitely handles CNAMES when they are resolved recursively)
let addr = dnsoverhttps::resolve_host("example.com");
let client = dnsoverhttps::Client::from_url_with_hostname("https://220.127.116.11/experimental", "dns.google.com".to_string()).unwrap(); let addr = client.resolve_host("example.com");
A DoH client
Resolve the host specified by