SecDNS

DNSSEC explained — the chain of trust, KSK/ZSK roles and deployment caveats

How DNSSEC adds cryptographic origin authentication to DNS, covering the chain of trust from the root, the KSK and ZSK split, validation steps, and real-world deployment gotchas.

DNSSEC explained — the chain of trust, KSK/ZSK roles and deployment caveats

Classic DNS has no built-in way to prove that a response actually came from the zone owner. A man-in-the-middle, a malicious recursive resolver or a successful cache poisoning attack can swap an answer and the client has no way to tell. DNSSEC fixes that by signing DNS data with public-key cryptography and tying every signature back to a single trust anchor at the root.

This article walks through the chain of trust, the two-key design (KSK and ZSK), how a validating resolver actually checks a response, and the operational footguns that make DNSSEC harder to run than it looks.

What DNSSEC adds

DNSSEC is defined by RFCs 4033, 4034 and 4035. It introduces four new record types:

RecordPurpose
DNSKEYPublic keys used to verify signatures in this zone
RRSIGA signature over an RRset, produced by a DNSKEY
DSDelegation Signer — a hash of a child zone's DNSKEY, published in the parent zone
NSEC / NSEC3Authenticated denial of existence

"DNSSEC provides authentication of DNS data, authenticated denial of existence, and data integrity." — RFC 4033 §3

What DNSSEC explicitly does not provide is confidentiality. The queries and responses are still observable on the wire; you need DoH or DoT for that.

The chain of trust

The trust anchor is the root zone's KSK, distributed with every validating resolver. When a resolver validates www.example.com, it walks the chain top-down:

  1. Verify the root KSK matches the configured trust anchor and use it to validate the root's DNSKEY RRset.
  2. Read the DS record for com. from the root and confirm it hashes to com.'s KSK.
  3. Use com.'s DNSKEY to validate the DS for example.com..
  4. Use example.com.'s DNSKEY to validate the RRSIG over the A record for www.example.com..

Any broken link in that chain produces a SERVFAIL at the resolver, which is the user-visible signature of a DNSSEC failure.

KSK and ZSK — why two keys?

A KSK (Key Signing Key) signs only the DNSKEY RRset. It is the key referenced by the parent zone's DS record. KSKs are kept long-lived and rotated rarely because every rotation requires a coordinated update to the parent.

A ZSK (Zone Signing Key) signs every other RRset in the zone. ZSKs are typically smaller, rotated every 1-3 months, and replaced without touching the parent. This split lets operators rotate the day-to-day signing material frequently while leaving the delegation alone.

You can inspect a real zone's keys with dig:

dig +dnssec DNSKEY example.com
dig +dnssec DS example.com @a.gtld-servers.net

Validation in practice

A validating resolver checks every RRset in a response. On success it sets the AD (Authenticated Data) bit and serves the answer. On failure it returns SERVFAIL and (with +cd) lets the client opt out of validation. SecDNS validates DNSSEC by default — see DNSSEC validation — and surfaces validation failures in the per-query log so operators can spot misconfigured zones quickly.

NSEC and NSEC3 deserve a special call-out: they let a zone prove that a name does not exist without listing every name in the zone. NSEC3 hashes the labels so a curious client cannot just walk the zone, though offline dictionary attacks against NSEC3 are well documented.

Deployment caveats

DNSSEC is a powerful protocol with a long list of ways to go wrong:

  • Signature expiry: RRSIGs have a validity window. If the signer falls behind, the zone goes dark for validating resolvers, even though plain DNS still works. Monitor expiry headroom, not just record presence.
  • DS desync: when you change KSKs, the parent zone must publish the new DS before the old DNSKEY is removed. CDS and CDNSKEY (RFC 7344) automate this for compliant registrars, but coverage is still mixed.
  • Algorithm rollover: switching from RSA-SHA256 to ECDSA-P256 requires a careful dual-signing window so no resolver sees an unsigned answer.
  • Large responses: DNSSEC responses are larger than plain DNS. Make sure the path supports EDNS(0) buffer sizes around 1232 bytes and falls back to TCP/53 cleanly.

If those constraints sound heavy, most teams delegate DNSSEC to their hosted DNS provider. SecDNS authoritative hosting signs zones automatically and handles ZSK rotation and parent DS updates where the registrar supports CDS.

Further reading

Frequently asked questions

Does DNSSEC encrypt my DNS queries?

No. DNSSEC adds origin authentication and integrity to DNS responses — a validating resolver can prove the answer came from the legitimate zone owner and has not been tampered with — but the queries themselves remain plaintext unless you also use DoH or DoT.

What is the difference between a KSK and a ZSK?

A Key Signing Key (KSK) signs only the DNSKEY record set and is the key referenced by the parent zone's DS record. A Zone Signing Key (ZSK) signs every other RRset in the zone. Splitting the roles lets operators rotate ZSKs frequently while keeping the parent delegation stable.

How often is the root KSK rotated?

ICANN performed the first root KSK rollover in October 2018, after years of preparation, and publishes its long-term plan on the iana.org KSK page. Rollovers are deliberately infrequent because every validating resolver on the planet must accept the new trust anchor.

Will DNSSEC break my domain?

Misconfigured DNSSEC absolutely can take a zone offline for any validating resolver. Common failure modes are expired RRSIGs, missing DS records after a key change, and CDS/CDNSKEY desync. Monitor signature expiry and use a hosted DNS provider that automates key rotation if you cannot operate the keys safely yourself.

How widely deployed is DNSSEC?

Validation on the resolver side is widely deployed — Google Public DNS, Cloudflare, Quad9 and SecDNS all validate by default — but zone signing on the authoritative side is still mixed. APNIC's DNSSEC validation dashboard tracks both sides over time.