Lesson 7 of 9 · 26m
DNSSEC in Practice: Chain of Trust, Validation, and Rollovers That Do Not Page You
How DNSKEY, RRSIG, and DS form the chain of trust, how to test validation, and where real DNSSEC deployments fail.
DNSSEC does not make DNS confidential and does not stop an attacker from sending you elsewhere if nobody validates. It adds cryptographic proof that an answer came from the zone that owns it and was not modified in transit. The cost is unforgiving: bad signatures do not produce a warning page; validating resolvers return SERVFAIL.
The chain of trust
DNSKEY— public keys for the zone, usually a key-signing key and zone-signing key.RRSIG— signatures over record sets.DS— a digest of the child's key-signing key, published in the parent zone.
The resolver trusts the root keys, validates down through the TLD, then validates your zone. The chain is only as strong as its weakest missing or stale link.
dig +dnssec sudosecurity.org DNSKEY
dig +dnssec sudosecurity.org DS
delv @1.1.1.1 www.sudosecurity.org ADo not infer security because answers exist; infer it because validation succeeds. delv answers as a validating resolver would and is often clearer than raw dig output.
Validation failure looks like an outage
The visible symptom is often status: SERVFAIL. Compare normal validation with checking disabled:
dig @1.1.1.1 www.sudosecurity.org; dig @1.1.1.1 +cdflag www.sudosecurity.orgIf the second query succeeds while the first fails, suspect signatures, DS mismatch, or clock/key problems before blaming connectivity.
Signing is operational, not ceremonial
Modern authoritative servers can sign automatically. A Knot-style policy:
dnssec-policy:
- id: default
algorithm: ecdsap256sha256
zsk-lifetime: 30d
ksk-lifetime: 365d
zone:
- domain: sudosecurity.org
dnssec-signing: on
dnssec-policy: defaultThe lifecycle requirements do not vary: signatures must be regenerated before expiration, edits must be re-signed, rollovers need cache-safe overlap, parent DS must match the intended KSK, and backup/restore must preserve key material or provide a re-signing path.
DS changes are parent-zone changes
Rotating a KSK is not finished when the child publishes a new DNSKEY. The registrar or parent must publish the matching DS. During rollover you may publish two DS records briefly, then remove the old one after caches expire. Remove the parent DS too early and validators call the zone bogus; lose registrar automation access and you have scheduled a future outage.
DNSSEC and migrations
Moving providers while signed is high-risk because keys, signing, and DS state move together. Coordinated multi-signer DNSSEC or a deliberate insecure transition can be valid, but "disable DNSSEC, move everything, hope" is not a plan unless you understand exactly how long validating resolvers may cache old secure data.
Field notes
- Monitor validation from external resolvers, not only authoritative syntax.
- Alert on signature expiration well before expiry; signatures fail at a clock time, not when traffic is low.
- Prefer ECDSAP256SHA256 unless compatibility forces otherwise; large RSA signatures increase response size.
- DNSSEC authenticates the wrong answer just as faithfully as the right one.
Was this lesson helpful?