How the Internet works

Names and Trust, chapter 24 of 36

DNS: The Namespace and the Wire Format

The root has 13 server letters because 13 is what name compression could fit into 512 octets.

The browser has a name and needs an address. Its built-in resolver writes 33 bytes, a 12-byte header and one question, and the laptop sends them in a 75-byte frame to the ISP's resolver at 198.51.100.53, port 53. Two more questions, for AAAA and HTTPS, leave beside it. About four milliseconds later 49 bytes come back, and the last four are C0 00 02 50, which is 192.0.2.80.

C0 0C
two bytes in the answer that stand in for the 17 bytes of www.example.net.
1,436
top-level domains in the root zone on 13 November 2026, 151 of them IDNs
4 of 13
root letters that set TC when the net glue did not fit in 512 octets (13 November 2026, one vantage point)

The 49-byte answer, taken apart

Step through the resolver's answer from the ID to the address. Then move the slider to aim the compression pointer C0 0C at another offset and watch what a decoder makes of it.

Who answers for which part of the tree?

A zone is the part of the tree that one set of servers answers for with authority, and it ends wherever its owner cuts off a subtree and hands it to someone else (RFC 1034, Section 4.2). The cut appears twice: as NS records in the parent, without authority, and as the same records at the child's apex, next to its SOA.

The net zone also holds glue, the addresses of ns1.example.net and ns2.example.net. Without it a resolver would have to ask ns1.example.net for its own address.

Who runs the root?

The root zone names thirteen servers, a.root-servers.net to m.root-servers.net. Their operators' FAQ counts 12 operators, because one runs two letters [RSOFAQ2026].

Thirteen is what fit into 512 octets. By April 1993 the response listing the root servers was approaching 512 bytes, under names such as terp.umd.edu and ns.nasa.gov, which share little that compression can remove. In 1995 Mark Kosters began renaming the servers into root-servers.net, after a proposal by Bill Manning and Paul Vixie. The shared suffix made room for J to M, added in January 1997 [RSSAC2016].

Why 512 octets, and what happens to an answer that does not fit?

The 1983 design assumed datagrams of up to 512 octets, and the 1987 standard kept the limit for UDP. RFC 2671, Section 4.5.1 gives the arithmetic: a 512-octet payload needs the 576-octet reassembly buffer that every IPv4 host must have.

A response that does not fit is cut, and the TC bit tells the client to ask again over TCP. Since 1997, TC means that a required RRset did not fit, and merely useful records are dropped silently. Glue inside the delegated domain now counts as required.

How did EDNS(0) extend a format with no room left?

In 1999 Paul Vixie listed what was running short, from flag bits to label types. His answer, refined in 2013, is a pseudo-record of type OPT (41) in the additional section, never cached or stored in a zone. Its CLASS carries the requestor's UDP payload size (RFC 6891, Section 6.1.2), and its TTL holds 8 more RCODE bits, a version, and the DO flag (RFC 6891, Section 6.1.3).

RFC 10029 (July 2026) adds an option that asks for more types beside the one in the question. One message of 52 bytes replaces our three of 33.

How long may an answer be kept?

The 1987 specification calls the TTL signed in two places and unsigned in a third. RFC 2181, Section 8 chose unsigned with the top bit zero, a maximum of 2,147,483,647 seconds or about 68 years, and gave caches the last word: a TTL is a maximum time to live.

Bugs in early BIND versions made TTLs of 99999999 seconds popular. RFC 8767, Section 4 (2020) reads the field as 32 unsigned bits again, recommends a cap of 604,800 seconds, seven days, and lets a resolver use an expired record when it cannot refresh it. Unbound caps positive answers at one day by default [Unbound2026].

Why can the zone apex not be a CNAME?

A CNAME makes its owner an alias, and RFC 2181, Section 10.1 makes the choice exclusive: a name with a CNAME holds no other records, apart from those of DNSSEC. The apex of a zone must hold the SOA and the NS RRset, so it cannot be an alias, though hosting and CDN customers want exactly that.

AliasMode of the HTTPS record solves it: example.net. HTTPS 0 pool.cdn.example.com. aliases the HTTPS service of the apex and leaves its SOA and NS records alone (RFC 9460, Section 2.4.2). Chromium in November 2026 does not follow such aliases [Chromium2026].

root zone .net zoneorg zoneexample.net zone NS a to m.gtld-servers.netNSNS ns1, ns2 plus glue
From the book: Delegations from the root to example.net; org stands for the other 1,435 TLDs

The book keeps asking

This chapter has 5,738 words and 17 questions. These 11 are answered only in the book and the audiobook.

  • What did the laptop ask?
  • Why did names need a database at all?
  • What is a name on the wire?
  • What does a resource record carry?
  • How do 49 bytes hold the answer?
  • Is TCP optional?
  • How does DNS say that something does not exist?
  • Why does a wildcard not match everything?
  • What does an HTTPS record add?
  • How does a name in another script travel?
  • How do the copies of a zone stay in step?

Open the sources

  • RFC 1034 Domain names - concepts and facilities 1987, Internet Standard, STD 13
  • RFC 1035 Domain names - implementation and specification 1987, Internet Standard, STD 13
  • RFC 2181 Clarifications to the DNS Specification 1997, Proposed Standard
  • RFC 2308 Negative Caching of DNS Queries (DNS NCACHE) 1998, Proposed Standard
  • RFC 6891 Extension Mechanisms for DNS (EDNS(0)) 2013, Internet Standard, STD 75
  • RFC 7766 DNS Transport over TCP - Implementation Requirements 2016, Proposed Standard
  • RFC 9460 Service Binding and Parameter Specification via the DNS (SVCB and HTTPS Resource Records) 2023, Proposed Standard
  • RFC 9499 DNS Terminology 2024, Best Current Practice, BCP 219

All 60 documents this chapter cites, each with a link to its publisher and a copy kept here.

Names and Trust, chapter 25 of 36

Resolvers, DNSSEC, and Encrypted DNS

Names and Trust, chapter 26 of 36

TLS 1.3: The Handshake

Names and Trust, chapter 27 of 36

Certificates and the Web PKI

Applications, chapter 28 of 36

HTTP: Semantics and HTTP/1.1

Applications, chapter 29 of 36

HTTP/2: Multiplexing over One Connection

Applications, chapter 30 of 36

QUIC: A Transport in Userspace

Applications, chapter 31 of 36

HTTP/3: The Web on QUIC

Applications, chapter 32 of 36

Mail: SMTP and Forty Years of Patches

Applications, chapter 33 of 36

Time, Shells, and Files: NTP, SSH, Telnet, and FTP

The Whole Path, chapter 34 of 36

Measuring and Debugging the Path

The Whole Path, chapter 35 of 36

The Whole Journey, Byte by Byte

The Whole Path, chapter 36 of 36

Ossification and What Comes Next

You have reached the server. The book goes further.

Everything on this site is a short version. Follow the Packet is the long one: 36 chapters and about 280,000 words, with every protocol fact traced to the section of the standard that defines it, every byte dump built by a script you can run, and a directory of more than a thousand cited documents. It comes as a printable book and as an audiobook.

Hear how chapter 1 opens. 70 seconds, narrated by a synthetic voice.

Get the book or the audiobook Read the start of chapter 1 Browse every source

Cover of Follow the Packet: How the Internet Works, Layer by Layer, from ARPANET to QUIC, by Wolfgang Kerschbaumer

The signup uses double opt-in. Every message includes an unsubscribe link.

Published by Sysinit Press. The public addresses, AS numbers and names of the scenario come from ranges reserved for documentation, and the home network uses private addresses, so the site describes no real network. RFC texts are copied unchanged from the RFC Editor.