Open PaTTeeL opened 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.
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?
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/)