Visual RFC.
ALL RFCs / RFC 8484
Read the RFC ↗
RFC 8484 / PROTOCOL MECHANISMS

Send DNS using GET or POST

02

GET encodes a DNS wire message in a base64url query variable; POST carries the binary message in the body.

RFC 8484 · § 4.1EXAMPLE
3 / 3
03
Send the HTTPS request with the appropriate media-type handling.

Send the HTTPS request with the appropriate media-type handling.

Send DNS using GET or POSTGET encodes a DNS wire message in a base64url query variable; POST carries the binary message in the body.DNS wire queryGET?dns=base64urlPOSTbinary DNS bodyapplication/dns-messageTwo HTTP mappings; not a JSON DNS API

Key idea: DoH servers must implement both GET and POST.

Terms

Look up a term in the glossary ↗

Rules & examples
  • 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
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
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.

All chapters in RFC 8484

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗