How To Remove Synced Zones Off a Server Not Actually Hosting The Accounts

jwogrady

Member
Jul 9, 2014
12
2
53
cPanel Access Level
DataCenter Provider
On web2 I synchronized all zones to all servers, but left the synchronize zones that are not configured on this server box unchecked. Now all web1 zones are on web2 server.

My cluster config

web1
|-sync -> ns1 (in standalone)
|-sync -> ns2 (in standalone)
|-sync -> ns3 (in standalone)
web2
|-sync -> ns1 (in standalone)
|-sync -> ns2 (in standalone)
|-sync -> ns3 (in standalone)


What's the benefit (if any) from having Web1 zones on Web2?

Is there a feature to remove zones for accounts not actually hosted on the server?

Web2 is currently empty. How do I purge all the web1 zones on that server without deleting them from web1 or the ns1, ns2, or ns3.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
What's the benefit (if any) from having Web1 zones on Web2?
Hello,

Using "Synchronize" instead of "Write-Only" as the DNS role will prevent the creation of a DNS zone on a hosting server if it already exists on another server in the cluster.

Is there a feature to remove zones for accounts not actually hosted on the server?
No, you'd need to manually remove the zones from the /var/named directory, or by using "WHM >> Delete a DNS Zone" after ensuring clustering is disabled.

Web2 is currently empty. How do I purge all the web1 zones on that server without deleting them from web1 or the ns1, ns2, or ns3.
You'd need to disable clustering and then delete the zones (either manually from the /var/named/ directory, or by using "WHM >> Delete a DNS Zone").

I highly recommend backing up the /var/named/ directory on each server before deleting any zones in-case something goes wrong.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
After I disable the cluster and delete the records, will renabling the cluster delete the records off the other server?
No, the zones will remain on the additional servers as long as you disable clustering before removing them.

Thank you.