Skip to content

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.

Check a domain's DNSSEC