Send DNS using GET or POST
02GET encodes a DNS wire message in a base64url query variable; POST carries the binary message in the body.
Send the HTTPS request with the appropriate media-type handling.
Key idea: DoH servers must implement both GET and POST.
Rules & examples
DoH servers must implement both GET and POST.
- DoH servers must implement both GET and POST.
- The media type is application/dns-message; this RFC is not a JSON DNS API.
The drawing is a simplified worked example. Follow the linked RFC and its updates for implementation requirements.
Sources
New to this? Start hereA quick picture + helpful background
A request starts a conversation.
A client asks for a resource. A server sends a response. The method, address, headers, and status explain what that conversation means.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.