A DNS cluster peer was rebuilt from scratch — new IP, fresh cPanel install. The team remembered to add it back as a peer on the other cluster nodes, but forgot that the rebuilt peer’s API token is now a new value. The cluster looks fine from one side; from the other, every zone push fails with HTTP 401, and the only sign is a slow accumulation of stale zones. Cluster trust is brittle when half of it changes; rebuilding it requires a deliberate handshake on both sides.
What’s happening
The WHM cluster trust model stores, on each peer, the API token used to authenticate against every other peer. When the remote token is rotated or the remote server is rebuilt with a fresh install, the stored token is stale. Outbound cluster operations from this node to that peer fail. Inbound operations (the peer pushing zones to this node) keep working because they use this node’s local token. The asymmetry is what makes the failure mode quiet — zones edited on the rebuilt peer arrive everywhere; zones edited elsewhere do not arrive on the rebuilt peer.
How to verify
For each pair of cluster members, test the trust in both directions:
whmapi1 list_dns_cluster_peers
whmapi1 get_dns_cluster_status
curl -sH "Authorization: whm root:<stored-token>" "https://ns2.example.com:2087/json-api/listzones?api.version=1" | jq -r '.metadata.result'
tail -f /usr/local/cpanel/logs/error_log | grep -i cluster
ls /var/cpanel/cluster/root/config/
A trust failure shows as HTTP 401 in the curl test or as result: 0 with a reason about authentication in the cluster status output. Cross-check by editing a zone on the suspect peer and looking for it on the others.
The fix
Trust is rebuilt by removing the stale entry and re-adding with the current token:
- On the rebuilt peer (ns2), mint a fresh cluster token:
whmapi1 api_token_create token_name=dns-cluster-2026-05 acl-1=dns-cluster. Capture the new value. - On every other cluster member (ns1, ns3), remove the stale peer entry for ns2:
whmapi1 remove_dns_cluster_peer user=root host=ns2.example.com. - Re-add ns2 with the new token:
whmapi1 add_dns_cluster_peer user=root host=ns2.example.com token=<new token>. - Restore the sync role: WHM defaults the new peer to
Standalone. Set it back toSynchronize Changesto resume two-way sync. - Validate by editing a zone on a non-ns2 node and confirming ns2 receives it. Then edit a zone on ns2 and confirm propagation to the others. Both directions must work.
- For zones that drifted while trust was broken, force a full resync:
whmapi1 dnssec_cluster_sync host=ns2.example.com(or the equivalent for non-DNSSEC clusters). This pushes the local view of every zone to the peer, overwriting whatever stale state was there.
Cluster trust rebuilds are a routine event in fleets where servers cycle through rebuilds or token rotations — Stack Harbor’s cPanel and WHM management practice scripts the four-step handshake so the operator only specifies the peer pair.