What is DNSSEC and why should you care?

A bounced email sent me down a rabbit hole into DNSSEC - here's what it is, why it matters and how to switch it on without breaking your email like I did.


Text size
The Sīlavāpi lotus mark above the word DNSSEC in large serif type, on a deep plum banner, with the strapline What it is and why it matters.
What it is and why it matters

Earlier today I had a message from a friend who runs a tool I use, telling me that they had a whole stack of “Warning: Delay in message delivery” emails when trying to email me, all trying (and failing!) to reach my ruth@ruthcheesley.co.uk address. Tucked away at the bottom of each one was a rather cryptic error about DNSSEC validation failing.

I’ve been running websites and domains for a very long time, and I’ll admit DNSSEC has always been one of those settings I switched on, felt vaguely virtuous about and then forgot about. Today it bit me, so I figured it was a good moment to dig in properly and share what I learned.

Here’s what I found out about DNSSEC, and how to set it up without ending up with an inbox full of bounce messages like me!

First, a quick refresher on DNS

Every time you visit a website or send an email, your computer needs to turn a friendly name like mautic.org into a numerical address that machines use to find each other. That lookup is handled by the Domain Name System, or DNS. ICANN describes it as the system behind every web page you visit and every email you send.

The catch is that DNS was designed back in the 1980s, when the internet was a much smaller and more trusting place. Out of the box it doesn’t check where an answer came from - it takes whatever address it’s given at face value (Cloudflare has a good explainer on this if you want to go deeper).

So what could go wrong?

Quite a lot, as it turns out!

In 2008 a security researcher called Dan Kaminsky found a flaw in the design of DNS itself that made ‘cache poisoning’ surprisingly easy. Cache poisoning means tricking the servers that look up addresses for you into remembering a fake answer, so everyone using that server gets sent somewhere else (a lookalike banking site, say, or a mail server run by an attacker). The Internet Systems Consortium, who make some of the most widely used DNS software, patched their servers to make the attack harder, but were clear that DNSSEC was the only complete fix.

Think about what that means for those of us who run email marketing. If someone can trick a mail server into using a fake answer for your domain, they can redirect your mail, or send your contacts somewhere else when they click a link, and all the careful work on consent and trust goes out of the window.

What DNSSEC actually does

DNSSEC stands for Domain Name System Security Extensions. It adds digital signatures to your DNS records using public key cryptography. When a resolver (the server doing the lookup on your behalf) gets an answer, it can check the signature and know two things.

  1. The answer really came from the people who run that domain.
  2. Nobody has tampered with it on the way.

If the signature doesn’t check out, the resolver throws the answer away and returns an error instead. Which is exactly what happened to my emails today!

The clever bit is the ‘chain of trust’. Your domain’s keys are vouched for by the level above it (.co.uk in my case), that level is vouched for by the one above it, and so on all the way up to the root of the internet. The link between your domain and its parent is a small record called a DS record, which you add at your registrar (the company you bought the domain from) for it to publish in the zone above. Fun fact, the very top key of that chain was replaced for the first time in years this October, and it went smoothly without any major outage.

Where it goes wrong (my bad!)

Here’s the gotcha that caught me. My DNS is hosted at Cloudflare, which was signing my records perfectly well, but my domain was registered with Fasthosts. For DNSSEC to work end to end, the DS record from Cloudflare has to be added at the registrar, and Fasthosts don’t offer that.

When I checked, there was no DS record at all, so DNSSEC wasn’t protecting anything. My best guess is that I must have turned it on at Cloudflare, and found I couldn’t add it on Fasthosts, and totally forgot to turn it off again at Cloudflare! As I found out, a mismatch is far worse than having nothing. A resolver that sees a signature it can’t verify assumes the worst and refuses to answer.

It isn’t only small folks like me who trip up on this. In May this year the registry for Germany’s .de domains published faulty signatures during a routine key change, and lots of .de sites became unreachable for anyone using a validating resolver until it was worked around later that evening.

So why bother?

That’s a fair question after a story like that! For me it comes down to a few things.

  • It protects the people who trust you. Your contacts, community members and customers type your domain and expect to reach you. DNSSEC makes sure they do.
  • It protects your email. SPF, DKIM and DMARC (the records that tell the world which servers can send mail as you) all live in DNS. Signing your DNS means nobody can tamper with those records in transit - an attacker can’t poison a lookup to swap in an SPF record that waves their own servers through, or strip out your DKIM key, without a validating resolver spotting it and throwing the answer away.
  • More of the internet is checking than you might think. Around 40% of internet users now sit behind resolvers that validate DNSSEC, helped along by big public resolvers like Google’s 8.8.8.8 and Cloudflare’s 1.1.1.1.
  • Very few domains actually use it. Only about 7% of domains had DNSSEC properly set up in 2025. That gap between who’s checking and who’s signing is a big missed opportunity.

One thing DNSSEC won’t do is protect you if someone gets into your registrar or DNS provider account. They could change your records from the inside, and DNSSEC would happily sign the attacker’s records for them! Two factor login on those accounts matters every bit as much as switching DNSSEC on.

How to switch it on (without breaking things)

The good news is that the tooling has come a long way in recent years. Here’s what I’d suggest.

  1. Keep your registrar and DNS provider in one place if you can. I’m now moving my domains over to Cloudflare as registrar. When they’re the registrar too, switching DNSSEC on is a single click and they send the DS record to the registry for you, which can take a day or two.
  2. If they’re separate, check your registrar supports DS records for external nameservers before you switch anything on. If they don’t, either move the domain or leave DNSSEC off for now. A half finished setup gives you no protection at all, and can cause problems like I found out the hard way!
  3. Order matters when moving DNS. Turn DNSSEC off and remove the DS record at the registrar first. Give it a day or two to clear, and check it’s actually gone (DNSViz, which I mention below, will show you), before you change the nameservers. Only once the new provider is serving and signing your zone do you switch DNSSEC back on and add the new DS record at the registrar. Skipping that waiting bit is the classic way to cause the exact outage you’re trying to avoid, because resolvers still have the old key cached and your new records won’t match it. Cloudflare warn that changing nameservers with DNSSEC still enabled will cause connection errors.
  4. Check your work. Tools like DNSViz draw out the whole chain of trust and highlight anything broken in red. Super handy, and much less stressful than waiting for bounce messages!

Over to you

Have you got DNSSEC switched on for your domains, and have you ever been caught out by it like I was? I’m curious whether folks in the Mautic community see this as a must have or a ‘one day’ job. I’d love to hear your experiences!

References

All links accessed 2 December 2026.

0 comments

No comments yet - be the first.

Leave a comment

Only used if I need to reply - never shown or stored.

Comments are moderated before they appear. No account and no cookies - your name and comment are all that's kept.

Keep reading

Related posts

Photo from the back of the FOSDEM community devroom
09 February, 2023 Geek

FOSDEM 2023: Back to live!

Last weekend I headed over to Brussels on the Eurostar like hundreds of other open source enthusiasts, for the first in-person FOSDEM event since the…

Ubuntu studio logo on the dark wallpaper which is black with a mottled grey image of the ubuntu studio logo on the right side - a circle with several concentric circles outside it.
17 August, 2022 Geek

Switching from Kubuntu to Ubuntu Studio

Having started to learn the flute three years ago and taking up piano during lockdown to help me with learning how to compose, I've increasingly been…