How the Internet works

Names and Trust, chapter 25 of 36

Resolvers, DNSSEC, and Encrypted DNS

Six signatures connect the root trust anchor to 192.0.2.80, and the laptop, which never asked, hears about none.

Moments before our query, another customer asked the ISP's resolver at 198.51.100.53 for www.example.net. Freshly restarted, the resolver knew only 26 root server addresses and the two root keys it trusts. Before it could hand out 192.0.2.80, it asked servers on three levels of the tree and checked six signatures. Our query found a warm cache and came back in 4 ms.

116 hours
about that long for a 50 percent chance to forge an answer at 7,000 packets per second against 64,000 ports, instead of 7 seconds against one
1.2 billion
daily queries for the root key set at A-Root and J-Root late in KSK-2010's revocation period, instead of 15 million
40.0 percent
of users worldwide sat behind validating resolvers on 10 November 2026

A cold resolver, then a warm one

The resolver at 198.51.100.53 walks from the root to www.example.net with an empty cache, then answers our laptop from it. Step through, switch off the trust anchor, or break a link.

How does a resolver with an empty cache find the root?

From a list that comes with the software. RFC 1034, Section 5.3.2 calls it SBELT, a "safety belt". Today it is IANA's named.root: 13 names with one IPv4 and one IPv6 address each, at a TTL of 3,600,000 seconds. Unbound compiles the 26 addresses into its binary [Unbound2026].

The list is only a starting point. The resolver sends a priming query for the NS set of . with RD clear and a buffer of at least 1024 octets (RFC 9609, Section 3, and RFC 9609, Section 3.2). The names have been stable since 1997, but the addresses change.

Why does the root only hear "net"?

Because nothing obliges the resolver to say more. Before QNAME minimisation, a cold resolver sent www.example.net type A to the root and to every server below it. RFC 9156, Section 1 calls that "a tradition, not a protocol requirement". Paul Mockapetris told one of its authors that the tradition saved queries when one server was authoritative for several levels, as the root and com servers once were.

Stéphane Bortzmeyer proposed minimisation in RFC 7816 (March 2016, Experimental), and RFC 9156 replaced it on the standards track in November 2021. A minimising resolver sends each server one label more than the zone it knows that server to be authoritative for.

How did Kaminsky poison names that nobody had asked for?

Before 2008 the TTL closed the race for a name once the real answer arrived. Dan Kaminsky saw that it protects only the name that was answered. The attacker asks for 1.example.net, 2.example.net, and so on, and each new name starts a new race. The forged responses carry a referral with glue that gives www.example.net an address of the attacker's choosing, and the bailiwick rule lets it in [Kaminsky2008].

The fix was a random source port for every query, about 16 more bits for the attacker to guess. CERT credits Daniel J. Bernstein with the idea [CERT2008].

Why did changing the root key take two attempts?

Because the root's operators can only estimate which keys the resolvers trust. KSK-2010 was to be replaced on 11 October 2017. RFC 8145 trust anchor signals at A-Root and J-Root from 1 to 25 September showed 577 of 11,692 reporting addresses still trusting only the old key, and ICANN postponed the roll [LarsonHoffman2017]. KSK-2017 took over on 11 October 2018.

The second roll began with a false start. KSK-2023 was abandoned because its hardware security modules would reach the end of vendor support during the key's lifetime. KSK-2024 has signed the root key set since 11 October 2026 [IANAKSK2026].

What does the user see when validation fails?

A SERVFAIL, which can also mean a timeout or a broken delegation. An Extended DNS Error adds a 16-bit INFO-CODE (RFC 8914, Section 2). For dnssec-failed.org, a zone that exists to fail, Cloudflare and Google report code 9, DNSKEY Missing, and Quad9 code 7, Signature Expired.

On 30 September 2021 Slack enabled DNSSEC for slack.com, and a flaw in its provider's NSEC records broke resolution. Slack withdrew the DS and then removed its keys, but validating resolvers had cached the DS for 24 hours and returned SERVFAIL until it expired [Elvira2021].

Who can read the question?

Anyone on the path. The laptop's query carries www.example.net in readable ASCII from offset 0x37 of the frame, and DNSSEC excludes confidentiality from its goals. QNAME minimisation protects the queries upstream of the resolver. The first hop needs encryption, and DNS over HTTPS looks like any other HTTPS, which is both the point and the complaint.

The ID that Kaminsky raced against has no job left in DoH and DoQ. DoH clients should send ID 0 so that HTTP caches can share answers (RFC 8484, Section 4.1), and DoQ requires 0 (RFC 9250, Section 4.2.1).

The book keeps asking

This chapter has 5,807 words and 16 questions. These 10 are answered only in the book and the audiobook.

  • Who does the work, the laptop or the resolver?
  • What does the resolver ask on the way down?
  • What does the resolver keep, and whom does it believe?
  • What exactly does DNSSEC sign?
  • How does trust travel from the root to www.example.net?
  • How do you sign a name that does not exist?
  • Which algorithms may still sign?
  • How many users sit behind a validating resolver?
  • How does the laptop find an encrypted resolver?
  • Does encrypting DNS hand it to a few companies?

Open the sources

  • RFC 9609 Initializing a DNS Resolver with Priming Queries 2025, Best Current Practice, BCP 209
  • RFC 9156 DNS Query Name Minimisation to Improve Privacy 2021, Proposed Standard
  • RFC 5452 Measures for Making DNS More Resilient against Forged Answers 2009, Proposed Standard
  • RFC 9364 DNS Security Extensions (DNSSEC) 2023, Best Current Practice, BCP 237
  • RFC 4035 Protocol Modifications for the DNS Security Extensions 2005, Proposed Standard
  • RFC 5155 DNS Security (DNSSEC) Hashed Authenticated Denial of Existence 2008, Proposed Standard
  • RFC 8484 DNS Queries over HTTPS (DoH) 2018, Proposed Standard
  • [Unbound2026] Unbound source tree, main branch after release 1.26.2 (commit e78d0a1c0, 26 October 2026) 2026, free

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

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.