DNSSEC

Deploying DNSSEC safely

DNSSEC protects your domain from forged answers, but a single mistake while turning it on can make the whole domain disappear for a day or more. Here’s why, and how to plan a rollout that avoids it.

The short version

  • DNSSEC is worth having, but it is the one DNS change where a mistake doesn’t just break one record: it can take your entire domain offline, website, email and all.
  • The danger is the DS record at your registrar. If it doesn’t match the keys your nameservers are using, validating resolvers treat every answer for your domain as forged and refuse to return it.
  • Fixing the mistake is quick; recovering from it is not. Resolvers cache the bad DS, often for 24 hours or more, and keep failing until it expires.
  • A deliberate plan removes almost all of the risk: sign first, wait, verify, add the DS by copy and paste, verify again, and always remove the DS before you stop signing.

What DNSSEC does, in one paragraph

DNSSEC (DNS Security Extensions) adds digital signatures to your DNS records. Your nameservers publish a public key (the DNSKEY) and a signature (an RRSIG) alongside each set of records. Your registrar then publishes a fingerprint of that key, the DS record, in the parent zone, such as .com. A validating resolver follows that chain from the root down: it trusts the root, the root vouches for .com, and the DS in .com vouches for your key. If every link checks out, the answer is genuine. If any link is broken, the resolver assumes an attack and returns an error instead. For more on how lookups work in general, see What is DNS?

Why a DNSSEC mistake breaks everything

Most DNS errors are local. A typo in an A record breaks one hostname; a missing MX record breaks mail. DNSSEC is different because the DS record sits above all of your records. Once the parent zone says “this domain is signed, with this key”, validating resolvers insist on it for every lookup. If the key they find doesn’t match, or there are no signatures at all, they answer SERVFAIL for the whole domain.

And validating resolvers are not a niche. Most large public resolvers validate DNSSEC, as do many internet providers and corporate networks, so a broken chain cuts off a large share of your visitors at once. Worse, it often looks fine from where you are sitting: if your own resolver doesn’t validate, your site keeps loading for you while customers on other networks see “server not found”.

Common ways it goes wrong:

Why recovery takes more than a day

When a DNSSEC mistake is spotted, the fix is usually simple: correct or remove the DS at the registrar. The trouble is how long the internet takes to notice.

1 Bad DS goes live validating resolvers start returning SERVFAIL 2 You notice often from customer reports; you remove the DS 3 Registry updates registrar passes it on; minutes to hours, longer at weekends 4 Caches expire resolvers keep the bad DS for its TTL, often 24 hours hour 0 the domain is down for validating users the whole time 24–48 h+
Each stage adds delay. The last one, waiting out caches, is the longest and the one you can’t speed up.

Add the time it takes to notice the problem, and a DNSSEC mistake can easily mean more than a day in which a large part of the internet can’t reach your website or deliver your email. This has happened to well-known companies with experienced engineering teams; it isn’t a beginner’s mistake.

A safe deployment plan

None of this means DNSSEC is too risky to use. Almost every outage comes from doing the steps in the wrong order or too quickly. Plan the rollout deliberately and the risk becomes very small.

Before you start

Step 1: Sign the zone, and add nothing at the registrar

Turn on signing at your DNS provider. At this point nothing can break: without a DS in the parent zone, resolvers treat your domain as unsigned and ignore the signatures. This step is completely safe to undo.

Step 2: Wait

Give the signed zone time to reach every nameserver and give resolvers time to drop their cached, unsigned answers. Waiting at least as long as the longest TTL in your zone is the minimum; 48 hours is a sensible, simple rule.

Step 3: Verify the signed zone

Step 4: Add the DS at your registrar

Copy and paste the DS values exactly as your DNS provider shows them; never type them by hand. Check the key tag, algorithm (for example 13, ECDSA P-256) and digest type (2, SHA-256) all match. Add one DS for the current key, and don’t leave any older DS records in place.

Step 5: Verify the chain, from outside

Turning DNSSEC off, or moving to another provider

This is where most of the surprises happen, because the safe order is the reverse of what feels natural:

  1. Remove the DS at your registrar first, and confirm with dig example.com DS that the parent no longer publishes it.
  2. Keep signing for at least 48 hours after the DS is gone, so every resolver’s cached copy of the DS expires while your signatures are still valid.
  3. Only then stop signing, change nameservers, or delete the zone.

When moving providers, finish the move unsigned and confirm everything works, then enable DNSSEC at the new provider by starting this plan again from step 1. (Moving with DNSSEC kept on throughout is possible, but needs both providers to support sharing keys, and is best left to specialists.)

Key rollovers

If your provider changes the key that the DS points to, the new DS must be published, and the old one cached away, before the old key is retired. Good providers handle the timing automatically or tell you exactly when to swap the DS. Choosing a key that never needs to change at the parent avoids the question entirely.

How NSResolver helps

DNSSEC is available on the Premium and Premium Pro plans, and we built it around the plan above:

See the plans, or sign up to get started.