Skip to main content
WebTools

DNSSEC explained: what it protects and how to spot a broken setup

What DNSSEC protects against, how the chain of trust from the root to your domain works, and how to spot and fix a broken setup after a DNS provider change.

Published

Illustration of a vertical chain linking three key badges, ending in a shield with a globe and a green tick.
On this page

The short answer: DNSSEC adds digital signatures to your DNS records, so resolvers can check that an answer really came from your domain and wasn't changed on the way. It doesn't encrypt anything or hide what people look up. It works as a chain: your DNS provider signs your records, and your registrar publishes a matching DS record in the parent zone. If the two stop matching, usually after moving DNS providers, validating resolvers treat the whole domain as broken and it seems to vanish for many users.

DNSSEC is one of the few DNS settings that can take a working site offline without any visible error in your hosting panel. This guide explains what it protects against, how the chain of trust fits together, and how to spot and fix a broken setup.

What DNSSEC protects against

Ordinary DNS has no way to prove an answer is genuine. A resolver asks a question and trusts whatever comes back. That leaves room for attacks such as cache poisoning, where an attacker tricks a resolver into storing a false address for a domain, sending visitors to the attacker's server instead.

DNSSEC closes that gap. ICANN's overview of DNSSEC describes it as adding digital signatures to DNS data, giving two protections: data origin authentication (the answer came from the real zone) and data integrity (it wasn't altered). A resolver that validates DNSSEC rejects answers whose signatures don't check out.

It's worth being clear about what DNSSEC does not do:

  • It doesn't encrypt DNS. Anyone who can see your DNS traffic can still see which names you look up. That is the job of encrypted DNS such as DNS over HTTPS.
  • It doesn't protect the website itself. HTTPS certificates still do that.
  • It doesn't help if your DNS provider account or registrar account is taken over. Whoever controls the account controls the signed records.

How the chain of trust works

Signatures are only useful if a resolver can trust the key that made them. DNSSEC solves this by linking each zone to its parent, all the way up to the root of the DNS.

Chain of three boxes. Root zone, the trust anchor: resolvers already trust the root key, and the root signs a DS record for com. com, the top-level domain: its key matches that DS, and it signs a DS record for example.com, sent by your registrar. exa
Each zone vouches for the key of the zone below it, starting from the root.

Four record types do the work. The DNSSEC standard, RFC 4033, defines them in detail; in plain terms:

RecordWhere it livesWhat it does
DNSKEYYour zoneYour public keys. Usually a key-signing key (KSK) and a zone-signing key (ZSK).
RRSIGYour zoneA signature for each set of records, with a start and expiry date.
DSThe parent zone (for example .com)A fingerprint of your key-signing key. This is the link in the chain.
NSEC or NSEC3Your zoneSigned proof that a name doesn't exist.

The important part is the DS record. Your DNS provider holds the keys and signs your records, but it can't publish anything in the .com zone. Your registrar does that, by sending the DS record to the registry. ICANN's overview notes that this key material reaches the parent zone through the registrar. If your DNS provider and registrar are the same company, this usually happens automatically. If they are different, you often have to copy the DS details across yourself.

Try it now

DNSSEC Checker

Check whether a domain uses DNSSEC and whether its signatures validate, with DS and DNSKEY details, algorithm advice and signature expiry dates.

Open the tool: DNSSEC Checker

How a setup breaks

When DNSSEC fails, validating resolvers don't fall back to an unsigned answer. They return SERVFAIL, an error meaning "I couldn't get a trustworthy answer". To the visitor the site, email and everything else on the domain simply stops working, while people using non-validating resolvers see no problem at all. This split is a strong clue.

The common causes are:

  • Moving DNS provider without updating the DS record. This is by far the most common. The new provider signs with new keys, but the registry still holds the DS for the old keys. Cloudflare's DNSSEC troubleshooting guide lists this as a leading cause of SERVFAIL.
  • Turning DNSSEC off at the provider but leaving the DS at the registrar. The parent still says "this zone is signed", but the zone no longer is.
  • Expired signatures. RRSIG records have expiry dates. Providers re-sign automatically, but self-managed servers can fail to do so.
  • A key change done in the wrong order. Replacing a key-signing key without first publishing the new DS causes a gap in the chain.

Checking a domain

The DNSSEC Checker asks Quad9, a public resolver that validates DNSSEC, and reports its verdict. It also shows the DS records in the parent zone, the DNSKEY records in your zone, and the dates on the signatures it received.

DNSSEC Checker result for example.com: Secure, signed and valid. Resolver verdict validated. Next signature expiry in 1 day. One DS record at the parent zone with key tag 2371, algorithm ECDSA P-256/SHA-256 (13) and digest SHA-256. Four DNSKEY record
The DNSSEC Checker run on example.com. The DS key tag matches the key-signing key, so the chain is complete.

What to look for:

  • Secure. The chain is complete and the signatures are valid.
  • Not signed. There is no DS record, so DNSSEC isn't in use. This is not an error, just an absence of protection.
  • Validation fails (bogus). The resolver found a DS record but couldn't validate the chain. Compare the DS key tag with the key tags of the DNSKEY records. If no key-signing key has a matching tag, the DS is out of date.
  • Signatures close to expiry. If the expiry dates are in the past or very close, the provider is not re-signing.

If you use a terminal, you can confirm a DNSSEC fault with dig. The +cd flag means "checking disabled", so the resolver skips validation:

dig example.com A @9.9.9.9
dig example.com A @9.9.9.9 +cd

If the first gives SERVFAIL and the second gives an address, DNSSEC is the cause. For a detailed picture of every link in the chain, DNSViz draws a diagram of the whole path from the root.

Fixing a broken chain

Most fixes come down to making the DS record at the registrar match the keys your current DNS provider is using.

  1. Get the correct DS details. Your DNS provider shows them in its DNSSEC settings: key tag, algorithm, digest type and digest.
  2. Update the registrar. In the registrar's domain settings, delete the old DS record and add the new one. Some registrars ask for the DNSKEY instead and calculate the DS themselves.
  3. Wait for caches. Resolvers cache the DS record for its TTL, often a day for .com. Recheck with the DNSSEC Checker after that.

If you'd rather switch DNSSEC off, remove the DS at the registrar first and wait before turning off signing at the provider. Cloudflare recommends waiting at least one and a half times the DS record's TTL, so for a 24-hour TTL, wait 36 hours.

Try it now

DNS Lookup

Look up the DNS records for a domain: A, AAAA, CNAME, MX, NS, TXT, SOA and CAA, or the reverse DNS (PTR) name of an IP address.

Open the tool: DNS Lookup

Common questions

Should every domain use DNSSEC?

It's a good idea for most, provided your DNS provider and registrar support it well. The main risk is human: forgetting the DS step when moving providers. If your provider manages keys automatically, the ongoing work is close to zero.

Does DNSSEC slow down my site?

Not noticeably. Responses are a little larger, and validation adds a small amount of work for the resolver, but answers are cached like any other.

Why does my site work for me but not for others?

If DNSSEC is broken, people whose resolvers validate (including Google Public DNS, Cloudflare 1.1.1.1 and Quad9) get SERVFAIL, while those whose resolvers don't validate see the site normally. Run the DNSSEC Checker to confirm.

What does algorithm 13 mean?

It's ECDSA P-256 with SHA-256, the most common modern choice. It produces small keys and signatures. Older domains may use algorithm 8 (RSA/SHA-256), which is also fine. Very old algorithms such as 5 and 7 should be replaced.

Can I turn DNSSEC on for just a subdomain?

Not on its own. Signing happens for the whole zone. A subdomain can only be signed and trusted if the parent domain is signed too.

  • DNSSEC Checker

    Check whether a domain uses DNSSEC and whether its signatures validate, with DS and DNSKEY details, algorithm advice and signature expiry dates.

  • DNS Lookup

    Look up the DNS records for a domain: A, AAAA, CNAME, MX, NS, TXT, SOA and CAA, or the reverse DNS (PTR) name of an IP address.