Quad9DNS / dnscrypt-settings

DNSCrypt Information for Quad9
Creative Commons Zero v1.0 Universal
54 stars 8 forks source link

Is there any plan to support DOH queries in JSON format ? #5

Open PaTTeeL opened 1 year ago

PaTTeeL commented 1 year ago

Does Quad9 have any plan to server a JSON API ? I found Google and Cloudflare servers different APIs which makes the DNS query result easy to read in JSON format.

Google JSON API (https://developers.google.com/speed/public-dns/docs/doh/json)

Cloudflare JSON API (https://developers.cloudflare.com/1.1.1.1/dns-over-https/json-format/)

jedisct1 commented 1 year ago

FWIW, JSON encoding for DNS has never been standardized.

But in JavaScript, the dns-packet package is great to build/parse DNS packets, so you can query DoH servers. I'd recommend using this, as it works with all DoH servers.

PaTTeeL commented 1 year ago

Thanks for reply. I've seached about JSON encoding for DNS for days. And I found RFC 8427 in https://datatracker.ietf.org/doc/html/rfc8427 & https://www.rfc-editor.org/rfc/rfc8427. So is RFC 8427 just a draft, or what makes the JSON APIs different between Google and Cloudflare?