Chapters (20)

DNSSEC: how DNS answers get signed

The short version

  • Plain DNS answers aren't signed. A resolver can't prove an answer is real.
  • DNSSEC adds a digital signature to DNS data. Resolvers can check it.
  • It proves an answer is genuine. It doesn't hide anything.
  • You switch it on in two places: at your DNS host, then at your registrar.
  • Turn it off before you move to a new DNS host, or your domain can break.

The problem it fixes

DNS is old. It was designed in the 1980s, when security wasn't a main worry.[1]

So when a resolver asks a nameserver a question, it has a problem. It has no way to verify the authenticity of the response.[1] A forged answer looks just like a real one. You met resolvers in the chapter on resolvers and caching.

Two rows. Without DNSSEC, a resolver receives a forged answer and can't tell, so it accepts it. With DNSSEC, the resolver receives an answer with a signature and checks it, so a forged answer fails.
A resolver can only reject a forged answer if the answer is signed.

What DNSSEC adds

DNSSEC stands for DNS Security Extensions. It strengthens DNS using digital signatures.[1] A digital signature is a code that only the owner of a secret key can make. Anyone with the matching public key can check it.

In practice, your DNS provider signs all your DNS records.[2] Your A records, MX records and the rest each get a signature.

Resolvers that check signatures get two things. First, data origin authentication: proof the data came from the zone where it claims to come from.[1] Second, data integrity: proof nobody changed it on the way.[1]

If a signature doesn't check out, the resolver assumes an attack. It throws the data away and returns an error.[1] A forged answer doesn't get through.

How a resolver knows the signature is real

A signature is only worth something if you trust the key behind it. DNSSEC solves this with a chain of trust. Each zone's key is vouched for by the zone above it.[1]

A resolver starts from one key it already trusts. Most resolvers have just one: the public key for the root zone.[1] From there it can follow the chain down to example.com.

Three boxes stacked top to bottom: the root zone, which is trusted, then com, then example.com. Each box vouches for the one below it.
Each signed zone vouches for the one below it, starting at the trusted root.

The chain only works if every zone on the path is signed. You can't control com or the root. You can only sign your own zone, and then link it to the zone above.

What it doesn't do

DNSSEC is narrow. It checks that answers are genuine. That's all.

  • It doesn't hide anything. The standard says it plainly: DNSSEC doesn't provide confidentiality, by design.[3] Anyone can still read the answers.
  • It doesn't replace other security. It only covers DNS data.

It also adds a risk. A mistake in the setup can make a whole domain unreachable.[3] That's worth knowing before you switch it on.

Switching it on

There are two steps, and they happen at two different companies.

  1. At your DNS host. Switch on signing. The host signs your zone and gives you a DS record.[2]
  2. At your registrar. Add that DS record to your domain.[2]

The second step matters. Your zone's public key details must be sent to the zone's parent.[1] The DS record is how that happens. Without it, the chain of trust has a gap.

Two boxes joined by an arrow. Step 1 at your DNS host: switch on signing and copy the DS record. Step 2 at your registrar: add the DS record to your domain. A note says to remove the DS record first if you move DNS host later.
Turning DNSSEC on takes two steps, at two different companies.

Some setups skip step 2. Cloudflare, for one, adds the DS record itself for domains registered with its own registrar.[2] The registrars chapter explains who does what.

Before you move DNS host

This is where people get caught. Say you're moving to new nameservers. If the old DS record is still at your registrar, it points to the old host's keys. The new host's records won't match.

Cloudflare's guide for moving a domain to its service is clear on this. Make sure DNSSEC is switched off at your registrar first.[2] Otherwise, DNSSEC will stop the new host's records from resolving properly.[2]

So the safe order is:

  1. Remove the DS record at your registrar.
  2. Wait for old copies to expire (see TTL and propagation).
  3. Change the nameservers.
  4. Switch DNSSEC on again at the new host, and add its new DS record.

Cloudflare's guide spells out a similar order, because the DS record is cached like any other.[2]

Do you need it?

That's your call. DNSSEC protects against forged DNS answers. The cost is a bit more to set up and a bit more to get wrong. If you do turn it on, test the site afterwards. Then keep it in mind next time you change nameservers.

Sources

  1. DNSSEC – What Is It and Why Is It Important?, ICANN (accessed 2026-10-24)
  2. DNSSEC, Cloudflare DNS docs (accessed 2026-10-24)
  3. RFC 4033: DNS Security Introduction and Requirements, IETF (accessed 2026-10-24)