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

Frame DNS messages inside the stream

03

DoT uses the two-octet DNS-over-TCP length prefix inside TLS.

RFC 7858 · § 3.3EXAMPLE
3 / 3
03
The receiver reads the length, then that complete DNS message.

The receiver reads the length, then that complete DNS message.

Frame DNS messages inside the streamDoT uses the two-octet DNS-over-TCP length prefix inside TLS.DNS FRAMING INSIDE THE TLS STREAM2 bytesDNS message bytesTLS record ATLS record Bread declared lengthone complete DNS messageTLS-record boundaries need not equal DNS-message boundaries

Key idea: TLS records and DNS message boundaries need not coincide.

Terms

Look up a term in the glossary ↗

Rules & examples
  • TLS records and DNS message boundaries need not coincide.
  • Clients and servers should support pipelining and match responses using the DNS rules.

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 message needs an address.

Think of a packet as a small addressed envelope. Devices pass it onward; transport protocols decide what delivery promises an application gets.

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 7858

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 ↗