What DNSSEC Does: Preventing DNS Hijacking and Cache Poisoning
DNS is the internet's phone book: it turns names into addresses. The original protocol has no authentication at all — whoever answers is believed — which leaves room for hijacking and poisoning.
DNSSEC signs that phone book, so a resolver can verify that an answer really came from the domain owner and was not modified on the way.
What can go wrong without DNSSEC
- Cache poisoning: an attacker injects forged records into a recursive resolver, so users asking for your site are sent to a server the attacker controls.
- Domain hijacking: if the registrar or DNS hosting account is compromised, records are repointed to the attacker's IP and the whole site is taken over.
- On-path tampering: forged DNS answers in transit steer users to phishing sites, even when the real site is served over HTTPS.
What to watch when enabling it
Both sides must support it: generate the signatures (DS records) at your DNS provider, then submit the DS record at your registrar to complete the chain of trust.
Signatures expire, so key rotation and re-signing must be automated. A misconfiguration can make your domain unresolvable worldwide — worse than not enabling it at all.
Add a CAA record too
A CAA record declares which certificate authorities may issue certificates for your domain. It does not stop hijacking, but it stops an attacker quietly obtaining a perfectly valid certificate for your name. It costs nothing to add.
How to check it
An online DNS lookup tool will show whether DS and DNSKEY records exist and whether the chain of trust is complete.
CyberTrust's public scan reads the domain's DNS and security configuration, and missing DNSSEC shows up as a risk item in the report.
The two records that matter, and where each one goes
DNSSEC is two records that live in two different places, and that is where almost every failed attempt goes wrong. The DNSKEY record stays at your DNS provider and holds the public key that signs your zone. The DS record is a hash of that key, and it goes to your registrar — the DS record is what tells the parent zone that your zone's keys are the real ones.
Sign the zone first, verify that the DNSKEY is published and resolvable, and only then submit the DS record. If you submit the DS first, resolvers will try to validate against a key that does not exist yet, and the domain will fail to resolve worldwide until you publish it.
The chain looks like this: the parent zone holds a DS record pointing at your zone's key; your zone holds the DNSKEY that signs the answers; the resolver fetches both, checks the signature, and rejects anything that does not verify.
What to do if you enable it and the domain stops resolving
This is the failure everyone fears, and it is also the easiest to undo — as long as you know it is happening. A misconfigured chain usually means a DS record that does not match any published key, or a signature that has expired because key rotation was not automated.
The recovery path is the same in both cases: remove or correct the DS record at the registrar. The zone then resolves unsigned again, which is exactly the state you were in before, and no worse from a security standpoint. The key insight is that the DS record is the switch, and the switch is under your control.
So test on a subdomain first if your provider allows it, confirm the chain validates, and then enable it on the apex. If your provider supports automatic signing and rotation, use that — a DNSSEC deployment that relies on a person remembering to re-sign in a year is a DNSSEC deployment that will fail.
FAQ
- Q: Does DNSSEC prevent domain hijacking?
- A: It prevents answers from being forged or modified — cache poisoning and on-path tampering — but not someone legitimately changing records after taking over your registrar or DNS account. Account security, a registrar transfer lock (clientTransferProhibited) and two-factor authentication are the other half of the defense.
- Q: Is enabling DNSSEC risky?
- A: The main risk is misconfiguration or expired signatures making the domain unresolvable, which is worse than not signing at all. Use a DNS provider with automatic signing and key rotation, and validate resolution globally after switching.
- Q: What is a CAA record and is it worth adding?
- A: CAA declares which certificate authorities may issue certificates for your domain, preventing anyone else from obtaining one for your name. It costs nothing, so every domain should have it.
Check your own domain now — free, no signup