DNSSEC explained: DS, DNSKEY and the chain of trust
How DNSSEC protects DNS answers with signatures, what DS and DNSKEY records are, and how to avoid breaking a domain when you move it.
Plain DNS has no built-in way to prove that an answer is genuine. A resolver accepts whatever comes back, which in the past allowed attacks where forged answers were injected into caches. DNSSEC (DNS Security Extensions) adds digital signatures to DNS records, so a validating resolver can check that an answer really comes from the zone owner and has not been tampered with on the way.
What DNSSEC does – and does not do
DNSSEC provides authenticity and integrity: it proves who published a record and that it has not been changed. It does not encrypt anything – the queries and answers are still readable on the network. (Encryption of the connection to your resolver is what DNS-over-HTTPS and DNS-over-TLS are for.)
The records involved
- DNSKEY – public keys published in the zone itself. Usually there are two kinds: a key signing key (KSK, flag 257) and a zone signing key (ZSK, flag 256). Some setups use a single combined key.
- RRSIG – signatures. Every set of records (all A records for a name, all MX records, and so on) has an RRSIG made with the zone signing key. Signatures have an expiry date and must be renewed regularly – your DNS provider does that automatically.
- DS (delegation signer) – a hash of the zone's key signing key, published in the parent zone. For
example.comthe DS record lives in.com, and you submit it through your registrar. - NSEC / NSEC3 – signed proofs that a name or record type does not exist, so non-existence can be verified too.
The chain of trust
A validating resolver trusts exactly one key from the start: the root zone's key, which is built into the resolver software. From there it follows the chain:
- The root zone signs a DS record for
.com. - That DS record matches the key signing key in the
.comzone's DNSKEY set, which signs the rest of.com– including the DS record forexample.com. - That DS record matches
example.com's key signing key, which signs its DNSKEY set, whose zone signing key signs the actual A, MX and TXT records.
If every link checks out, the resolver marks the answer as authenticated – the AD (authenticated data) flag. If any link is broken, a validating resolver refuses the answer and returns SERVFAIL. The domain then simply stops working for users of that resolver.
How to read the webstriker DNSSEC section
webstriker fetches the DS records from the parent zone's own name servers, the DNSKEY records from the domain's authoritative servers, and asks a validating resolver (Cloudflare 1.1.1.1) whether it can validate the domain:
- Validated – DS at the parent, DNSKEY in the zone and the AD flag set. Everything is in order.
- Not signed – no DS and no DNSKEY. The domain works fine, it just has no DNSSEC protection.
- Signed, but no DS at the parent – the zone is signed, but the chain of trust is not completed. Harmless, but the protection does nothing until the DS record is added at the registrar.
- DS exists but does not validate or BROKEN – the DS at the parent does not match the keys in the zone, or the signatures have expired. This is the dangerous state: validating resolvers (used by a large share of internet users) will treat the domain as non-existent.
The classic mistake: moving a signed domain
Most DNSSEC outages happen when a domain is moved to a new DNS provider. The old provider's keys are referenced by the DS record at the registry. If you switch the name servers to a provider that signs with different keys – or does not sign at all – the DS record no longer matches, and the domain breaks for every validating resolver.
The safe procedure is:
- At the registrar, remove the DS record (turn DNSSEC off for the domain) before the move.
- Wait for the DS record's TTL to expire at the parent – typically one to two days.
- Change the name servers to the new provider and confirm everything works.
- Enable DNSSEC at the new provider and submit the new DS record through the registrar.
Some registries and providers support automated key handover (via CDS/CDNSKEY records), which can make this smoother – ask your provider.
Should you enable DNSSEC?
For most domains, yes – as long as your DNS provider handles signing and key rotation automatically, which nearly all large providers do. The ongoing maintenance is then zero, and the only thing to remember is the DS record when you move the domain. Some country registries actively encourage DNSSEC; check what your registrar offers.