stand-alone application for DoH (DNS-over-HTTPS) name resolves and lookups
The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:
A libcurl-using application that resolves a host name using DNS-over-HTTPS (DoH).
This code uses POST requests unconditionally for this.
doh [options] host [DoH URL]
If DoH URL is left out, the Cloudflare DoH server will be used. See also list of public servers
$ doh www.example.com www.example.com from https://dns.cloudflare.com/dns-query TTL: 2612 seconds A: 18.104.22.168 AAAA: 2606:2800:0220:0001:0248:1893:25c8:1946
$ doh www.yahoo.com https://dns.google/dns-query www.yahoo.com from https://dns.google/dns-query TTL: 36 seconds A: 22.214.171.124 A: 126.96.36.199 AAAA: 2a00:1288:0110:001c:0000:0000:0000:0004 AAAA: 2a00:1288:0110:001c:0000:0000:0000:0003 CNAME: atsv2-fp.wg1.b.yahoo.com CNAME: atsv2-fp.wg1.b.yahoo.com