Skip to content

Troubleshooting a broken DNSSEC chain on cPanel

SERVFAIL on a DNSSEC zone usually means the chain broke between key, signature, and DS. Here is the diagnostic order to find which link.

A DNSSEC-signed zone goes SERVFAIL on validating resolvers — 1.1.1.1 and 8.8.8.8 return nothing, but dig +noall +answer against the authoritative server returns the record fine. The zone is signed, the DS exists at the registrar, and yet the chain refuses to validate. The diagnostic isn’t complicated, but it has to walk every link in order.

What’s happening

For a DNSSEC chain to validate, every link from root to zone has to verify:

  • The root has the trust anchor (built into resolvers; not your problem).
  • The TLD (.com, .ca, etc.) is signed and its DS is in root — also not your problem.
  • The zone’s parent (the TLD) publishes a DS that matches one of the zone’s KSKs.
  • The zone publishes a DNSKEY that the DS hashes to, plus signatures (RRSIG) on every record using either KSK or ZSK.
  • All signatures must be inside their validity period and use an algorithm both sides support.

The break is almost always at one of three points: the DS at the parent doesn’t match any current DNSKEY, the RRSIGs have expired, or the algorithm used by the ZSK isn’t supported by the parent’s DS digest type.

How to verify

Walk the chain from the top down:

dig +trace +dnssec example.com

Look for the first line that produces a ; BADCKSUM or no signature. That’s the broken link.

Specific checks:

dig +short DS example.com
dig +short DNSKEY example.com
delv +rtrace example.com

delv +rtrace shows every step the resolver attempts and where it fails. If you see “no valid DS to chain to”, the parent and zone disagree on the key. If you see “RRSIG has expired”, regenerate signatures. If you see “algorithm not supported”, the ZSK uses an algorithm not present in the DS.

Check the signature expiry:

dig +dnssec example.com A | grep RRSIG

The fifth field of an RRSIG is the expiry as YYYYMMDDHHMMSS. If it’s in the past, signatures need to be regenerated.

The fix

  1. DS mismatch: get the current DNSKEY from the server (whmapi1 fetch_ds_records_for_domains domain=example.com) and confirm the registrar has exactly that DS, with the right algorithm and digest type. If the registrar’s DS references an old key tag, the rotation was incomplete — finish it by replacing the DS at the registrar.
  2. Expired signatures: cPanel resigns the zone automatically on a schedule, but if it has stopped (named daemon issue, expired keys, disabled signing) you’ll see expired RRSIGs. Force a resign with /scripts/dnssec_inception_check --resign example.com. If the keys themselves are expired or invalid, regenerate them and follow the full rotation.
  3. Algorithm mismatch: the parent DS uses a digest type that doesn’t match any zone DNSKEY. This usually happens when migrating between providers — re-add the DS at the registrar matching the current key’s algorithm.
  4. Clock skew on the server: RRSIGs include timestamps. If the server clock is off by more than the inception window (typically one hour), signatures fail to validate even though they look fine in the file. Confirm chronyd or ntpd is running and the offset is under one second.
  5. As a last resort, disable DNSSEC at the registrar first (remove the DS), wait for the DS TTL, then disable signing on the server. The zone now resolves as insecure, which is better than SERVFAIL while you debug.

For zones where DNSSEC validation is non-negotiable, monitor the chain externally with a paid validator that pages on SERVFAIL — internal monitoring on the cPanel host will not catch a broken chain because the host doesn’t validate itself.

Stack Harbor maintains DNSSEC chains across multi-zone fleets as part of cPanel server management.