Home / Guides / What is DNSSEC and how to enable it safely
What is DNSSEC and how to enable it safely
The Domain Name System was designed in the 1980s, when nobody worried about forged answers. A resolver asks a question, gets an answer and, with no further check, believes it. DNSSEC (DNS Security Extensions) adds a way to check that an answer really comes from the owner of the domain and was not altered on the way.
The problem it solves
If an attacker can slip a false answer into the cache of a resolver, every user of that resolver is sent to the wrong address when they look up a name. This is called cache poisoning. In 2008 researcher Dan Kaminsky showed a practical way to do it at scale, which pushed the industry to deploy DNSSEC more seriously. The root zone has been signed since 2010, and the large top-level domains followed.
With DNSSEC, the false answer lacks a valid signature, so a validating resolver rejects it instead of passing it on.
What DNSSEC does and does not do
It provides:
- Authenticity: the answer comes from the real owner of the zone.
- Integrity: the answer was not changed in transit.
- Authenticated denial of existence: a signed proof that a name or record type does not exist.
It does not provide:
- Privacy. Queries and answers are not encrypted. For that, resolvers and browsers use DNS over HTTPS or DNS over TLS.
- Protection if your registrar account or DNS provider is compromised. An attacker with access can sign false data.
- Protection against phishing domains. A fake site on a domain the attacker owns can be perfectly signed.
How the chain of trust works
DNSSEC works by signing records and linking each zone to its parent:
- The zone signs its records. Each set of records gets a digital signature, published as an RRSIG record.
- The zone publishes its public keys as DNSKEY records. There are usually two kinds: a zone signing key (ZSK) that signs the records, and a key signing key (KSK) that signs the set of keys.
- The parent zone holds a fingerprint of the KSK, a DS (delegation signer) record. For
example.com, that record lives in the.comzone and is set through your registrar. - The parent is signed by its own parent, and so on up to the root, whose key is built into validating resolvers as the trust anchor.
A validating resolver follows the chain from the root down to your records. If every link checks out, it marks the answer as authenticated (the AD flag). If one link is missing or wrong, it returns an error.
Two more record types appear in signed zones: NSEC and NSEC3, which prove that a name does not exist without revealing the rest of the zone.
Algorithms
The algorithm decides how signatures are made. Prefer modern ones:
| Number | Name | Status |
|---|---|---|
| 13 | ECDSAP256SHA256 | Recommended |
| 15 | ED25519 | Recommended |
| 8 | RSASHA256 | Acceptable, use 2048-bit keys |
| 5, 7 | RSASHA1 variants | Outdated |
| 1, 3, 6, 12 | MD5, DSA, GOST | Deprecated |
How to enable it safely
The risk with DNSSEC is not the technology but the order of the steps. A DS record that does not match your keys makes your domain unreachable for everyone who uses a validating resolver, which includes Cloudflare, Google and many internet providers.
- Check that your DNS provider and your registrar both support DNSSEC. Many do. Some providers sign automatically.
- Enable signing at your DNS provider. The provider generates the keys and shows you the DS record (key tag, algorithm, digest type and digest).
- Add the DS record at your registrar. Copy the values exactly.
- Wait for propagation. The parent zone caches DS records, often for a day. Watch it with the DNS Propagation Checker or a lookup.
- Verify. Run the DNSSEC Checker. It recalculates the DS digest from your key to confirm that they match, and asks a validating resolver whether it accepts the answers.
Moving to another DNS provider
This is where most outages happen. If you simply change name servers while the old DS record stays at the registrar, the new provider’s keys do not match it.
The safe order:
- Remove the DS record at the registrar.
- Wait for the old DS record to expire from caches (at least its TTL, commonly 24 hours).
- Move the domain to the new name servers.
- Enable DNSSEC at the new provider and add the new DS record.
Some providers support a multi-signer setup that allows a move without removing DNSSEC. If yours does, follow its instructions.
Troubleshooting
The typical symptom is that some people can reach the site and others cannot. A user whose resolver does not validate sees the site normally, while one whose resolver validates gets a “server failure” (SERVFAIL).
- Test with validation switched off. If a lookup fails normally but works with checking disabled (
dig +cd example.com), DNSSEC is the cause. - Read the details. The DNSSEC Checker shows DS and DNSKEY records, whether the DS matches the key, the algorithms in use and when the signatures expire.
- Typical causes: a stale DS record after a provider change, a DS copied incorrectly, a provider that stopped re-signing, and signatures that expired.
- If it is an emergency, removing the DS record at the registrar restores access once caches expire. It is slower than you would like, so prevention matters.
You can inspect the raw records at any time with the DNS Lookup. For background on the record types, see DNS records explained.
Is it worth it?
For most small sites it is optional, and many large ones have enabled it. It is worth considering if your domain is used for email, payments or anything where redirecting users to a false address would cause real harm. If you enable it, enable it carefully, verify the result, and keep the DS record in your notes.