Introduction
When using the DNS Cluster feature in cPanel, you may want to ensure that all zone files are synchronized. This can be accomplished either in the WHM interface or on the command line.
Procedure
To sync via the WHM interface, do the following:
- Log in to WHM as 'root'.
- Navigate to the following location: WHM: Home -> DNS Functions -> Synchronize Records:
- Select toggle 'Synchronize all zones to all servers'.
- Mark the box for 'Synchronize zones that are not configured on this server' if you want to synchronize zone files that were not created directly on the main server.
- Select the 'Synchronize' button on the bottom.
To sync via the command line, use one of the two following options:
- Log in to the 'main' server where the DNS Cluster is configured by SSH.
- To sync all zones to all servers, use the following command:
/scripts/dnscluster syncall
Example output:
/scripts/dnscluster syncall
Syncing Zones to all machines in cluster.......Done
Or
- Log in to the 'main' server where the DNS Cluster is configured by SSH.
- To sync all zones to all servers including zones not created directly on the main server, use this command:
/scripts/dnscluster syncall --full
Example output:
/scripts/dnscluster syncall --full
Syncing Zones to all machines in cluster....(full).....Done