Skip to content

cPanel DNS cluster sync issues during a multi-server migration

A DNS cluster keeps zones synchronized across cPanel hosts. When a migration breaks the sync, mail and web routing go inconsistent. Here is the diagnosis and the fix.

A cPanel DNS cluster keeps zone authority synchronized across multiple WHM hosts so customers can hit any server and get the same DNS answer. When a migration moves accounts between cluster members, the cluster sync should propagate zone changes automatically — but it does not always. Symptoms include zones that exist on the destination but not in the cluster index, NS records pointing at retired hosts, and DNS-only zones that resolve from one host but not another.

What’s happening

A cPanel DNS cluster has each member trust the others via API tokens. When a zone is created or modified on one member, it should sync to all others via dnscluster synczone. During a migration, multiple things can break the sync: the destination is not yet a cluster member, the API token between members has been rotated, a member is offline, or the zone was created without dnscluster propagation. The result is a split-brain DNS: different members give different answers.

How to verify

Check the cluster state and a specific zone:

# what cluster members this host knows about
whmapi1 listdnsclustermembers
# is this host configured to push synces
cat /var/cpanel/clusters/<other-host>/config
# does a specific zone exist on this host?
ls /var/named/<zone>.db
# what zones exist on each cluster member
ssh root@member1 "ls /var/named/*.db" | sort > /tmp/m1.txt
ssh root@member2 "ls /var/named/*.db" | sort > /tmp/m2.txt
diff /tmp/m1.txt /tmp/m2.txt
# manual sync attempt
/scripts/dnscluster synczone <zone>

The fix

  1. Validate cluster membership — whmapi1 listdnsclustermembers. The destination should be listed if it is supposed to participate. If not, add via WHM > DNS Cluster.
  2. Rotate API token — if the cluster trust failed (often after a recent password change or 2FA setup), regenerate the API token in WHM > Manage API Tokens on the failing member, update the trust on the others.
  3. Force a full sync — /scripts/dnscluster syncall syncs every zone to every member. Heavy, but resolves drift in one pass. Run during low-traffic hours.
  4. Per-zone sync — for one stuck zone, /scripts/dnscluster synczone example.com. The zone is pulled from the authoritative source (the configured master role) and pushed to peers.
  5. Reseller-owned zones — zones owned by resellers can have their own cluster behavior. Check /var/cpanel/cluster/<reseller>/. If a reseller’s cluster config is different from the main one, it can cause partial sync.

The longest-tail issue is when an old retired host is still listed as a cluster member; the cluster keeps trying to reach it, fails, and reports cluster errors that look real. Remove retired hosts from the cluster config explicitly. Stack Harbor handles cPanel DNS cluster operations under cPanel/WHM management — start a conversation when cluster sync drifts.