Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PaTTeeL opened this issue Feb 21, 2023 · 3 comments
Open

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

PaTTeeL opened this issue Feb 21, 2023 · 3 comments

Comments

@PaTTeeL
Copy link

PaTTeeL commented Feb 21, 2023

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
Copy link

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
Copy link
Author

PaTTeeL commented Mar 3, 2023

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?

@ztheory
Copy link

ztheory commented Jan 7, 2025

Quad9 has had a service around with JSON for a long time:
https://dns.quad9.net:5053/dns-query?type=txt&name=quad9.net

However, it is being retired in about 4 months:
https://quad9.net/news/blog/quad9-json-based-dns-service-retires-5-may-2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants