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

Advertisement

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:

  1. The root zone signs a DS record for .com.
  2. That DS record matches the key signing key in the .com zone's DNSKEY set, which signs the rest of .com – including the DS record for example.com.
  3. 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:

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:

  1. At the registrar, remove the DS record (turn DNSSEC off for the domain) before the move.
  2. Wait for the DS record's TTL to expire at the parent – typically one to two days.
  3. Change the name servers to the new provider and confirm everything works.
  4. 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.

Try it yourself:
Advertisement

More guides