Skip to content

Conversation

@SebastiaanYN
Copy link
Contributor

Summary

Adds a warning about the lack of RFC to the DoH JSON format documentation, and point users to the wireformat for critical use cases.

Screenshots (optional)

image

Documentation checklist

@SebastiaanYN SebastiaanYN requested review from a team and RebeccaTamachiro as code owners February 5, 2025 14:19
@github-actions github-actions bot added the product:1.1.1.1 Related to 1.1.1.1 product label Feb 5, 2025
@RebeccaTamachiro RebeccaTamachiro enabled auto-merge (squash) February 6, 2025 14:48
@RebeccaTamachiro RebeccaTamachiro merged commit d9cb63f into cloudflare:production Feb 6, 2025
6 checks passed
---

Cloudflare respects DNS wireformat as defined in [RFC 1035](https://datatracker.ietf.org/doc/html/rfc1035).
Cloudflare respects DNS wireformat as defined in [RFC 1035](https://www.rfc-editor.org/rfc/rfc1035.html).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SebastiaanYN can we point to certain section in this RFC that contains the specifics we're following here? Like section 7. RESOLVER IMPLEMENTATION

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case we're referring to the RFC as a whole because it's about the data format, which is defined in multiple sections of the RFC (2/3/4)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, then let's keep it as suggested 👍

For critical use cases, it is recommended to use the [DNS over HTTPS wireformat](/1.1.1.1/encryption/dns-over-https/make-api-requests/dns-wireformat/), which is defined in [RFC 1035](https://www.rfc-editor.org/rfc/rfc1035.html).
:::

Cloudflare's DNS over HTTPS endpoint also supports JSON format for querying DNS data. For lack of an agreed upon JSON schema for DNS over HTTPS in the Internet Engineering Task Force (IETF), Cloudflare has chosen to follow the same schema as Google's DNS over HTTPS resolver.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wondering if we should phrase this a bit more generally like

(...) chosen to follow the same schema as Google's DNS over HTTPS resolver other common public resolvers' DNS over HTTPS implementation. 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:1.1.1.1 Related to 1.1.1.1 product size/xs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants