Lesson 5 of 9 · 28m
DNSSEC Signing, Rollovers, and Validation Failures
Operate signed zones with disciplined key rollover, DS updates, signer monitoring, and rollback plans.
Most DNSSEC outages are not cryptographic attacks. They are operations outages wearing cryptography as a costume: expired signatures, half-published keys, DS records pointing at retired keys, or automation that signs the primary but forgets one secondary. Treat DNSSEC as a lifecycle, not a checkbox.
Separate the keys by job
A typical design uses a zone-signing key (ZSK) for record-set signatures and a key-signing key (KSK) for signing DNSKEY records. The parent DS record points at the KSK. ZSK rollovers can happen quietly because the parent does not need to change. KSK rollovers are externally visible and therefore riskier.
dnssec-keygen -a ECDSAP256SHA256 -n ZONE sudosecurity.org
dnssec-keygen -a ECDSAP256SHA256 -f KSK -n ZONE sudosecurity.orgHosted DNS providers usually hide key files, but not the lifecycle. You still need to know when keys roll, when DS data must change, and whether your registrar automation supports CDS/CDNSKEY updates.
Rollover is overlap, not replacement
The safe pattern is publish first, wait for caches, use second, then retire last:
1. introduce new DNSKEY beside old DNSKEY
2. wait at least DNSKEY TTL plus propagation margin
3. sign with the new key or update parent DS
4. wait again for parent/child cache convergence
5. remove the old key only after validation evidence is cleanRemoving the old key too early breaks validators that still hold cached data. Publishing the new key but not signing with it can also fail. The order depends on whether you are rolling a ZSK or KSK, but the principle does not change: never require the Internet to teleport from one key state to another.
Use validation tooling before the Internet votes
delv behaves like a validating resolver and gives better diagnostics than a browser:
delv @1.1.1.1 www.sudosecurity.org A
delv @9.9.9.9 www.sudosecurity.org A
dig sudosecurity.org DNSKEY @ella.ns.cloudflare.com +norecurse +dnssecTest from at least two validating resolvers and directly against every authoritative server. One authoritative server missing current signatures is enough to produce intermittent failures because resolvers choose different authorities.
Alert on signer health, not user complaints
Monitor RRSIG expiration, serial movement, signer service health, key inventory, DS consistency, and authoritative answer consistency. If you operate BIND signing automation, inspect it before assuming the zone is signed:
rndc zonestatus sudosecurity.org
rndc signing -list sudosecurity.org
named-checkzone -D sudosecurity.org db.sudosecurity.org.signedA deployment pipeline that edits the unsigned source but fails to re-sign creates a time bomb. The zone works until the oldest signatures expire.
Field notes
- Registrar DS propagation and registry publication are separate systems; verify both, especially during provider migrations.
- Algorithm rollovers are harder than key rollovers because validators must trust signatures under the new algorithm before old support disappears.
- Automation that publishes CDS/CDNSKEY is useful, but monitor what the parent actually published.
- Rollback means restoring a valid signed state, not just re-uploading the previous A record.
Was this lesson helpful?