Skip to content

DNSSEC NSEC3 and key rollover

How NSEC3 hides zone contents from enumeration, the salt/iteration considerations after RFC 9276, and the KSK/ZSK rollover state machine that actually works.

A zone is DNSSEC-signed and the operator is staring at NSEC3 parameters, key tags, and a calendar full of “ZSK rolls in 14 days” notes. This article is the operational reference: what NSEC3 is and how to set its parameters (post-RFC 9276), and how the KSK and ZSK rollover state machines work in practice. The deliverable is the conceptual map to read dnssec-policy or KASP output and know what comes next.

How to verify

Three commands tell you the current state of a signed zone:

dig +dnssec example.com SOA @ns1.example.com
dig DNSKEY example.com @ns1.example.com +short
dig NSEC3PARAM example.com @ns1.example.com +short
delv @1.1.1.1 example.com SOA

NSEC3PARAM shows the salt and iteration count. DNSKEY shows currently-published keys. delv validates the chain end-to-end. If the chain is broken, delv says not validated, bogus.

What’s happening

DNSSEC needs a way to prove a name does not exist — to authenticate NXDOMAIN responses. The original mechanism, NSEC, lists the next existing name in canonical order. That works but it allows trivial zone enumeration: walk NSEC chains, you have every name in the zone.

NSEC3 solves this by hashing names before sorting them. A NEC3 record says “between hash X and hash Y, no name exists.” An attacker who wants to enumerate the zone has to brute-force the hash function — adding salt and iterations to make this expensive.

After RFC 9276 (2022), the recommendation collapsed to:

  • iterations: 0 — additional iterations cost the validator far more than they cost the attacker.
  • salt: empty (length 0) — salt was always weak protection against offline attacks.
  • opt-out: only for very large delegation-centric zones (TLDs).

For most authoritative zones in 2026, the only reason to use NSEC3 over NSEC is that some auditors and security frameworks still require it. The “hide the zone” benefit is largely fictional given modern hash compute. If you do use NSEC3, follow RFC 9276 parameters.

Key rollover — the state machines

DNSSEC has two key roles and three rollover strategies. The strategies have RFC 7583 names and timing requirements.

ZSK rollover (no parent involvement):

The ZSK signs every RR in the zone. To roll it, the resolver chain must trust both old and new ZSK during the transition. The “pre-publish” strategy is most common:

  1. Publish-new. The new ZSK appears in the DNSKEY RRset alongside the old. The old still signs the zone. Wait DNSKEY-TTL so all caches have both keys.
  2. Switch. Re-sign the zone with the new ZSK. The old key remains in DNSKEY. Wait max-zone-TTL so all caches expire records signed by the old key.
  3. Remove-old. Drop the old ZSK from DNSKEY. Wait DNSKEY-TTL for the removal to propagate.

Total elapsed: about 2x DNSKEY-TTL plus the longest zone-record TTL. For a 1-day zone TTL and 1-hour DNSKEY-TTL, the rollover takes a little over a day.

KSK rollover (requires parent action):

The KSK signs the DNSKEY RRset only, and its hash is published at the parent as DS. To roll the KSK, both the local DNSKEY and the parent DS must transition together. The “double-DS” strategy is the standard:

  1. Publish-new-DNSKEY. The new KSK appears in the local DNSKEY RRset. The old still signs the DNSKEY.
  2. Submit-new-DS. Hand the new DS to the registrar. The parent publishes both old and new DS.
  3. Wait. All caches must see the new DS. Time: parent-DS-TTL + safety margin.
  4. Switch. Re-sign the local DNSKEY with the new KSK. Both DS are still at parent.
  5. Wait. Caches expire the old DNSKEY signature.
  6. Withdraw-old. Tell registrar to remove the old DS. Wait parent-DS-TTL.
  7. Remove-old-DNSKEY. Drop the old KSK from local DNSKEY.

Total elapsed: 2-7 days depending on TTLs, and you must coordinate with the registrar’s DS publishing latency.

Modern BIND dnssec-policy and Knot auto-dnssec automate both state machines. The operator’s job is to:

  1. Submit the new DS when the policy enters the “waiting for parent” state.
  2. Confirm “parent has published DS” so the policy advances.
  3. Monitor for stuck states.

See BIND9 DNSSEC signing and rollover for the BIND-specific commands.

Operational notes

  • CDS and CDNSKEY automation. RFC 8078 lets the child publish CDS/CDNSKEY records that the parent scans and uses to update DS. Modern signers publish these by default. Few registrars actually scan them — assume manual DS handoff unless your registrar documents otherwise.
  • Stuck rollovers due to NTP drift. Inception/expiration timestamps in RRSIG are absolute UTC. If your signing host’s clock drifts, signatures may be “not yet valid” or expired. Chrony with multiple peers is non-negotiable.
  • Algorithm rollover is separate. Going from RSA to ECDSA is a different state machine — both algorithms must be present simultaneously, and the chain of trust must be re-built at the parent. Plan a month for this.
  • NSEC3 salt rotation is pointless. RFC 9276 explicitly says do not rotate salt — it provides no real benefit and increases operational risk. If your auditor asks for salt rotation, point them at the RFC.
  • DS at parent TTL matters. A short parent-DS-TTL means rollovers finish faster but more queries hit the parent. Most TLDs publish DS with a 1-day TTL; some shorter. Check before you plan timings.

In the engagements we run, DNSSEC rollovers are the kind of operation that exposes weak monitoring. The signing software does the work, but humans still have to submit the DS, confirm publication, and watch for stuck states. We codify the rollover monitoring, alert on “DNSKEY changed at child but DS unchanged at parent for >6h,” and run a quarterly drill so the rotation does not surprise the team. See our managed operations service for the broader operating model.