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
netglue 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].
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
- RFC 1035 Domain names - implementation and specification
- RFC 2181 Clarifications to the DNS Specification
- RFC 2308 Negative Caching of DNS Queries (DNS NCACHE)
- RFC 6891 Extension Mechanisms for DNS (EDNS(0))
- RFC 7766 DNS Transport over TCP - Implementation Requirements
- RFC 9460 Service Binding and Parameter Specification via the DNS (SVCB and HTTPS Resource Records)
- RFC 9499 DNS Terminology
All 60 documents this chapter cites, each with a link to its publisher and a copy kept here.
