CCyberwiki

DNSSEC

DNSSEC
Full nameDomain Name System Security Extensions
Defined inRFC 4033, 4034 and 4035 (2005); NSEC3 in RFC 5155 (2008)
Record typesDNSKEY, RRSIG, DS, NSEC, NSEC3
ProvidesProof of origin and integrity for DNS answers
Leaves outEncryption of queries and answers

A plain DNS answer carries no proof of where it came from, and a forged answer that a resolver accepts is cached and handed to every user behind it.1 DNSSEC adds digital signatures to DNS records, so a resolver can check that an answer was published by the owner of the zone (a domain's set of records) and was not altered on the way.2 It encrypts nothing: queries and answers stay readable on the path.2

Forged answers

A resolver accepts a reply whose numbers match its open query, so a forger has to guess them. In July 2008 CERT/CC published a note on cache poisoning that affected DNS software from many vendors. The DNS transaction ID is 16 bits, which takes 32,768 guesses on average when it is random; the patches released that year added a random source port, worth about 16 more bits. One accepted forgery sends web traffic and mail for a domain to a host the attacker chose. Random ports make the attack impractical, but without a protocol change such as DNSSEC they cannot rule it out.1 Since 2023 the IETF has classed DNSSEC as the best current practice for authenticating DNS data.3

Records and the chain of trust

A signed zone keeps its public keys in DNSKEY records. Every RRset, meaning all records that share a name and a type, gets an RRSIG record holding its signature.2 An RRSIG has an inception and an expiration time and is rejected outside that window.4 Re-signing the zone is therefore routine upkeep for the signing software.5 A DS (delegation signer) record in the parent zone identifies one of the child's keys by key tag, algorithm number and a digest (a hash) of the key.4

Signing can be split between two keys. The zone signing key (ZSK) signs the ordinary records and can be replaced without the parent. The key signing key (KSK) signs only the zone's DNSKEY set and is the key the parent's DS points at, so replacing it means a new DS at the parent.5

Table 1. How a validating resolver checks the A record of www.example.com
ZoneWhat the resolver checks
RootThe root DNSKEY set matches the trust anchor built into the resolver. The root's signed DS record for com is read.
comA com DNSKEY matches that DS. The signed DS record for example.com is read.
example.comAn example.com DNSKEY matches that DS, and the RRSIG on the A record verifies with the zone's key.

The resolver starts from a key it already trusts, the trust anchor, normally the root zone's public key.2 IANA operates the root KSK and uses it in recorded key ceremonies, which also sign the root's ZSKs a quarter at a time.6 A signed zone whose parent holds no DS for it is an "island of security": a resolver can check its signatures only if it got the zone's key some other way.2

Validation results

Secure means a chain of signed DNSKEY and DS records leads from the trust anchor to the answer. Insecure means the resolver knows no chain exists, as for an unsigned zone, and uses the answer as it would without DNSSEC. Bogus means a chain ought to exist but fails, because a signature does not verify or a record the chain points to is missing, such as the key a DS names.7 An expired signature does not verify.4 For a bogus answer the resolver returns SERVFAIL (server failure) in place of the data, unless the client set the CD (checking disabled) bit.7 A validated answer carries the AD (authentic data) bit.2 A mistake in a signed zone therefore takes the domain offline for users of validating resolvers only.78

Names that do not exist

An NSEC record names the next existing name in the zone's sorted order and lists the types present at its own name, so a signed NSEC proves that a name or a type is absent.48 Following those links lists the whole zone.2 NSEC3 links hashes of the names instead, to make that harder.9

What it leaves out

DNSSEC gives no protection against denial of service. It covers the path from the domain's nameservers to the resolver; the last hop, from a laptop to its resolver, needs local validation or an authenticated channel.2 Estimates cited in February 2023 put signed website domain names below 10% and validated resolver queries at about a third.3 DANE, a standard that publishes certificate details in DNS and is used for mail servers (see MTA-STS and TLS-RPT), works only in signed zones.3

Turning it on and off

The DNS host signs the zone first; the registrar then adds the DS record to the parent zone. At Cloudflare, Enable DNSSEC on the DNS > Settings page signs the zone and shows the DS values to enter at the registrar (algorithm 13, ECDSA Curve P-256 with SHA-256). Domains on Cloudflare Registrar get the DS added automatically, which can take one to two days.10 To check both halves from a terminal:

dig DS example.com
dig A www.example.com @8.8.8.8 +dnssec

The first command shows the DS in the parent. In the second, an ad flag in the reply header means the resolver validated the answer.72

Removal runs in reverse. Resolvers cache the parent's DS for as long as its TTL allows, commonly 24 to 48 hours, and the parent sets that TTL.108 If signing stops or the nameservers change while a cached DS still points at the old key, validating resolvers return SERVFAIL. The safe order is to remove the DS, wait out its TTL, then stop signing or move hosts.10

Slack, September 2021

Slack's third attempt to sign slack.com, on 30 September 2021, caused a 24-hour outage for under 1% of its online users. After the DS went live some users got name-not-found errors, so the engineers removed the DS and then turned off signing in Amazon Route 53. The .com zone tells resolvers to keep a DS for 24 hours, so validating resolvers still holding it returned SERVFAIL for every slack.com name until caches were flushed or expired.8

The first errors came from a Route 53 bug: for names covered by the wildcard record *.slack.com, an AAAA (IPv6 address) query got a signed NSEC answer that left the existing A record out of its list of types. Google Public DNS reuses cached NSEC records, as RFC 8198 allows, and concluded there was no A record either. Route 53 later fixed the bug.8

In SecFlash

SecFlash reports a domain whose DNS answers are not signed as SF-EML-204 on the Email and domain page and as SF-CLD-309 on the Cloud page.

See also

References

  1. a b CERT Coordination Center (8 July 2008, revised 14 April 2014). "VU#800113: Multiple DNS implementations vulnerable to cache poisoning". CERT/CC Vulnerability Notes.
  2. a b c d e f g h i Arends, R. et al. (March 2005). "DNS Security Introduction and Requirements". RFC 4033. IETF.
  3. a b c Hoffman, P. (February 2023). "DNS Security Extensions (DNSSEC)". RFC 9364, BCP 237. IETF.
  4. a b c d Arends, R. et al. (March 2005). "Resource Records for the DNS Security Extensions". RFC 4034. IETF.
  5. a b Kolkman, O., Mekking, W. and Gieben, R. (December 2012). "DNSSEC Operational Practices, Version 2". RFC 6781. IETF.
  6. back IANA (n.d., read 22 November 2026). "DNSSEC Information". iana.org.
  7. a b c d Arends, R. et al. (March 2005). "Protocol Modifications for the DNS Security Extensions". RFC 4035. IETF.
  8. a b c d e Slack Engineering (2021). "What happened during Slack's DNSSEC rollout". Slack Engineering blog.
  9. back Laurie, B. et al. (March 2008). "DNS Security (DNSSEC) Hashed Authenticated Denial of Existence". RFC 5155. IETF.
  10. a b c Cloudflare (n.d., read 22 November 2026). "DNSSEC". Cloudflare DNS docs.