Crate dnsoverhttps [−] [src]
Resolve hostnames by sending DNS queries over HTTPS.
dns.google.com to send the base64-encoded DNS query over HTTPS.
- TLS Certificate is not checked. The connection is done using a static IPv4 address for the server. TLS Certificate validation had to be disabled, as there's currently no way to pass the right hostname into the request library.
- Uses a fixed IP for the
dns.google.comserver. This is not configurable at the moment.
- 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");
Resolve the host specified by