DNSSEC basics and common breakages

DNSSEC signs DNS answers so a resolver can prove they came from the zone's owner unchanged. It protects against forged answers, but a mistake makes validating resolvers refuse to answer for your domain at all, which is worse than having no DNSSEC.

The chain of trust

  1. Each zone signs its records with keys published as DNSKEY records; each signature is an RRSIG record with a start and an expiry time.
  2. The parent zone publishes a DS record: a hash of the child's key-signing key. The DS for example.com lives in com, put there by your registrar.
  3. Resolvers start from the root key they already trust and follow DS to DNSKEY down to your zone.

If a parent has no DS for your zone, the chain ends there and your answers are simply unsigned (insecure). If there is a DS but nothing matches it, the answers are bogus and validating resolvers return SERVFAIL.

Five common breakages

  1. Moving DNS providers with signing on. The old DS stays at the registrar, the new provider signs with different keys (or not at all), and the domain goes dark. Remove the DS first, wait out its TTL, then move, then sign again and add the new DS.
  2. Turning signing off at the provider without removing the DS at the registrar. Same result.
  3. Expired signatures. A provider that stops re-signing, or a manually signed zone nobody re-signed, fails when the RRSIG expiry passes.
  4. A key rollover without the DS update. The new key-signing key is live but the parent still points at the old one.
  5. An algorithm resolvers no longer accept. RFC 8624 lists which algorithms to use; RSA/SHA-1 based ones are being withdrawn.

Automating the DS update

CDS and CDNSKEY records (RFC 7344, RFC 8078) let a signed zone tell its parent which DS it wants. Some registries scan for them and update the DS on their own; many do not, so check with your registrar before relying on it.