Skip to content

Zone Editor — cPanel vs WHM, when to use which

cPanel and WHM both edit DNS zones, but for different scopes and with different guardrails. Here is when each is the right tool, and where they conflict.

A reseller asks why their changes in cPanel’s Zone Editor don’t show up in WHM’s Edit DNS Zone view, or vice versa. Both interfaces edit the same /var/named/example.com.db file, but they expose different fields, apply different validation, and trigger different cluster syncs. Knowing which to reach for prevents the round trip of editing, reverting, and editing again.

What’s happening

The Zone Editor in cPanel (per account) is designed for the customer of a single domain: add A, CNAME, MX, TXT, SRV, CAA — no SOA, no NS, no zone-level operations. The WHM Edit DNS Zone (server-wide) is designed for the operator: every record including NS and SOA, raw zone-file view, ability to add records that cPanel hides for safety.

The two diverge in three places that matter:

  • WHM lets you set TTL per record explicitly; cPanel defaults to 14400 and many users never override it.
  • WHM lets you publish an NS record at a subdomain (useful for delegating staging.example.com to another nameserver); cPanel does not.
  • WHM’s “raw” zone editor will accept any syntactically valid line; cPanel rejects records it doesn’t have a UI for.

When a cluster is in play, both interfaces push to peers via the DNS clustering daemon — but only after the local zone increments its SOA serial. A change made directly with vi to the zone file will not sync until the serial bumps.

How to verify

Confirm which interface last touched the zone:

grep -E '^(\$TTL|@.*SOA)' /var/named/example.com.db
ls -la /var/named/example.com.db
whmapi1 dumpzone domain=example.com | head -20

Look at the SOA serial — cPanel writes serials in YYYYMMDDNN format. If you see a serial that does not match today’s date after a change, the change did not write.

For cluster sync state:

/scripts/dnscluster synczone example.com
tail -50 /usr/local/cpanel/logs/dnsadmin/log

The fix

  1. Use cPanel Zone Editor for end-user changes the account owner should self-serve: a new MX, a new TXT for a SaaS verification, a CNAME for a marketing tool. It has the guardrails to prevent breaking the zone.
  2. Use WHM Edit DNS Zone when you need to set custom TTLs, add NS records for delegations, or fix a record cPanel won’t expose.
  3. Use whmapi1 (addzonerecord, editzonerecord, removezonerecord) for scripted bulk changes — automation should never click cPanel UI.
  4. After any change, confirm the serial bumped and the cluster synced. If the serial did not bump (rare, but happens with manual file edits), run /scripts/updateuserdomains and rndc reload example.com.

For environments running dozens of zones with reseller hand-offs, Stack Harbor manages the DNS layer including cluster sync and editor permissions as part of WHM server management.