Skip to content

Enabling DNSSEC on a cPanel/WHM zone end-to-end

Enabling DNSSEC on cPanel takes three steps on the server and one at the registrar. Here is the order and the verification each step needs.

DNSSEC is one of those features that is either on and invisible, or half-on and silently breaking lookups for resolvers that validate. The half-on state happens when the zone is signed on the server but the DS record was never published at the parent. The half-on state never shows up in cPanel’s success message — the signing step is local; the trust chain is at the registrar.

What’s happening

DNSSEC adds cryptographic signatures to every record in the zone. A validating resolver checks two things: the signatures on each record (RRSIG), and the trust chain from the root through the TLD to the zone’s DNSKEY (anchored by a DS record at the parent). cPanel/WHM can generate the keys, sign the zone, and produce the DS record — but only the registrar can publish the DS at the TLD. Until the DS is at the registrar, validating resolvers either treat the zone as insecure (best case) or refuse to resolve it (worst case, when SERVFAIL leaks through).

How to verify

Before enabling, confirm nothing is already signed:

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

After enabling in WHM > DNSSEC for the zone, generate the keys and sign:

whmapi1 enable_dnssec_for_domains domain=example.com
whmapi1 fetch_ds_records_for_domains domain=example.com

The second command outputs the DS records to give the registrar. They look like:

example.com. IN DS 12345 13 2 ABCDEF0123...

After publishing the DS at the registrar, verify the trust chain:

dig +dnssec +trace example.com
dig +short DS example.com @8.8.8.8
delv example.com

delv should return ; fully validated on the final answer. If it returns ; unsigned answer, the DS is not yet visible at the parent.

The fix

  1. Enable DNSSEC in WHM for the zone (WHM > DNSSEC, or via whmapi1 enable_dnssec_for_domains). cPanel will generate a KSK (Key Signing Key) and ZSK (Zone Signing Key) and start signing the zone.
  2. Wait for the zone signing to complete — dig +short DNSKEY example.com should return two or more keys.
  3. Fetch the DS record with whmapi1 fetch_ds_records_for_domains domain=example.com. Copy the output verbatim.
  4. Publish the DS at the registrar. Every registrar has a different UI for this — some hide it under “advanced DNS”, some require a support ticket. The DS must include the key tag, algorithm, digest type, and digest exactly as cPanel produced it.
  5. Wait one TTL period (typically the TLD’s DS TTL is 3600), then verify with delv example.com.
  6. Monitor for SERVFAIL in resolver logs for the first 48 hours. Any validation issue produces SERVFAIL for validating resolvers, which is silent to non-validating ones.

Do not enable DNSSEC and then turn off the zone signing without first removing the DS at the registrar — that leaves the parent pointing to keys the zone no longer has, and validating resolvers will refuse every lookup. The clean rollback is registrar first, then server.

For multi-zone DNSSEC rollouts, Stack Harbor coordinates the registrar and server steps as part of WHM server management.