DNSSEC explained
Updated
Ordinary DNS trusts whatever answer arrives. If someone forges a reply on the way, a resolver has no means to tell, and a visitor can be sent to the wrong address without knowing. DNSSEC (DNS Security Extensions) closes that gap by adding digital signatures to a domain's records, so a resolver can check that an answer is genuine and unchanged.
What DNSSEC does and does not do
- It proves an answer came from the domain's owner and was not altered
- It does not encrypt anything, and it does not hide what you look up
- It protects the DNS answer only; the website or mail server itself still needs its own protection, such as an encrypted connection
The chain of trust
Trust starts at the root of DNS, whose key resolvers already know. The root vouches for com, and com vouches for a domain by publishing a DS record, a fingerprint of the domain's signing key. The domain publishes that key as a DNSKEY record and signs its other records with it. A resolver checks each link in turn. If one is missing or does not match, the chain breaks.
example.com DS 31589 8 2 3490A6806D... (published at the registry) example.com DNSKEY 257 3 8 AwEAAaz/tAm8... (published by the domain)
Not signed is normal; broken is not
Most domains are not signed, and that is not an error. A domain that is signed badly is a real problem: if the DS record at the registrar stops matching the domain's keys, which often happens after changing DNS provider, resolvers that check DNSSEC refuse to answer for the domain. Its users on those resolvers cannot reach it at all, while everyone else can, which makes the fault hard to find.
Switching it on safely
- Turn on DNSSEC at the company that hosts the domain's DNS
- Copy the DS record it shows you into your registrar's DNSSEC settings
- Check the result, and wait for old answers to expire before changing anything else
- Before moving DNS to another company, remove the DS record first, then add the new one once the move is done
Good to know. Modern signing algorithms such as ECDSA P-256 (algorithm 13) and Ed25519 (15) are smaller and stronger than the older RSA and SHA-1 ones, which are being phased out.
Related
- DNS records explainedWhat the common DNS record types (A, AAAA, CNAME, MX, NS, SOA and TXT) do, and what a TTL means for changes.
- WHOIS and RDAP: who registered a domainWhat a registration record shows, how RDAP replaced WHOIS, and why you rarely see the owner's name any more.
- A domain health checklist: what to check and whyThe handful of public records that say whether a domain is set up sensibly for email, registration and DNS, and what each one protects against.
- TLS certificates explainedWhat the padlock in a browser means, how a certificate and its chain prove a site is genuine, why they expire, and the usual reasons one fails.
- DANE: pinning a mail server's certificate in DNSWhat a DANE (TLSA) record says, why it only works with DNSSEC, and which record form mail senders use.