opyebDNSSECLab

Deprecated DNSSEC algorithms and a safe key rollover order

Operations · 7 min

In one line: Why SHA-1 DS records and RSASHA1 are discouraged, and the order of steps that keeps KSK and ZSK rollovers from breaking validation.

DNSSEC is not a one-time configuration. Algorithm recommendations change and keys must be replaced periodically. Doing the steps out of order turns the domain bogus and takes every visitor offline.

1. What not to use today

ItemStatusAlternative
Algorithm 1 (RSAMD5)obsolete8, 13, 15
Algorithm 3, 6 (DSA)obsolete8, 13, 15
Algorithm 5, 7 (RSASHA1)deprecated8, 13, 15
DS Digest Type 1 (SHA-1)discouraged2 (SHA-256), 4
Protocol other than 3invalid3

RFC 8624 requires validators to keep accepting old algorithms for a while, but signers have no reason to create them. DNSSECLab flags algorithms 1, 3, 5, 6 and 7 and digest type 1 with warnings.

2. KSK rollover order

  1. Create the new KSK and publish its DNSKEY alongside the old one.
  2. Sign the DNSKEY RRset with the new KSK.
  3. Add the new DS at the parent, keeping the old DS (double-DS).
  4. Wait out the parent DS TTL and confirm the new DS is visible.
  5. Remove the old KSK and the old DS.

Removing the old DS before the new one is live leaves cached DS records pointing at a key that no longer signs, and validation fails.

3. Algorithm rollover order

  1. Publish the DNSKEY for the new algorithm beside the old one.
  2. Sign the zone and the DNSKEY RRset with the new key.
  3. Add the new-algorithm DS at the parent.
  4. Remove the old DS and old key.

An algorithm change also changes the DS Algorithm field, so the parent zone must be edited; a same-algorithm key rollover does not.

4. ZSK rollover

The ZSK is not referenced by the parent DS, so it can be rotated more often. Publish the new ZSK, switch signatures to it, then remove the old one only after the last RRSIG it produced has expired.

5. Common mistakes

  • DS without DNSKEY: the parent points at a key that is not published.
  • Key tag mismatch: the DS was computed from a different key.
  • Ignoring TTL: the old key disappears while caches still hold it.
  • Signature expiry: RRSIGs lapse and validation fails; monitor automatic signing.
  • Mixing algorithms: DS and signatures disagree across keys.

6. Pre-rollover checklist

  • Are the new DNSKEY flags, protocol, algorithm and key length correct?
  • Do the computed DS key tag and algorithm match the DNSKEY?
  • Did you check the parent DS TTL and child DNSKEY TTL?
  • After the change, does dig +dnssec show the AD flag?
  • Is monitoring free of bogus answers?

Computing a single DS record makes the relationship between the key tag and the digest concrete.

Open DNSSECLab

Frequently asked questions

Can the old SHA-1 DS be deleted immediately?

No. Cached DS records can still point at the old key, so add the new DS first and delete the old one after the TTL has passed.

Can KSK and ZSK be rolled at the same time?

It is possible but riskier. Rolling one at a time with enough spacing makes the cause of a failure obvious.

What happens to existing signatures when the algorithm changes?

RRSIGs made with the old algorithm must be regenerated with the new key. Publish the new DNSKEY, sign with it, then remove the old key and DS in that order.

References

Read next

0 bytes of your input sent to a server (advertising and affiliate widgets excluded)