Hi Everyone,
I'm a bit confused about how mu DNS cluster is behaving in regards to sync zone files.
I have been using this page as a reference https://support.cpanel.net/hc/en-us/articles/360053742353-cPanel-DNS-Cluster-Guide
I have had a cpanel server sync to a dns cluster for some time like this:
webserver1.host
↳ dnsonly1.host
↳ dnsonly2.host
↳ dnsonly3.host
* Each dnsonly host is added with sync role
* reverse relationship is set as standalone back to the WebHost (confirmed by checking /var/cpanel/cluster/root/config)
* dns clustering is not enabled on the dnsonly servers
Things went awry when I added a second web server like this
webserver2.host
↳ dnsonly1.host
↳ dnsonly2.host
↳ dnsonly3.host
again
* Each dnsonly host is added with sync role
* reverse relationship is set as standalone back to the WebHost (confirmed by checking /var/cpanel/cluster/root/config)
* dns clustering is not enabled on the dnsonly servers
* new api keys were created
When I did this all zones files on the cluster were synced with both web hosts. (webhost2 has all webhost1 zones and vice versa). this is not supposed to happen!
I cannot find a log that explains why zones are getting pushed up to the WebHost from the cluster.
I'm a bit confused about how mu DNS cluster is behaving in regards to sync zone files.
I have been using this page as a reference https://support.cpanel.net/hc/en-us/articles/360053742353-cPanel-DNS-Cluster-Guide
I have had a cpanel server sync to a dns cluster for some time like this:
webserver1.host
↳ dnsonly1.host
↳ dnsonly2.host
↳ dnsonly3.host
* Each dnsonly host is added with sync role
* reverse relationship is set as standalone back to the WebHost (confirmed by checking /var/cpanel/cluster/root/config)
* dns clustering is not enabled on the dnsonly servers
Things went awry when I added a second web server like this
webserver2.host
↳ dnsonly1.host
↳ dnsonly2.host
↳ dnsonly3.host
again
* Each dnsonly host is added with sync role
* reverse relationship is set as standalone back to the WebHost (confirmed by checking /var/cpanel/cluster/root/config)
* dns clustering is not enabled on the dnsonly servers
* new api keys were created
When I did this all zones files on the cluster were synced with both web hosts. (webhost2 has all webhost1 zones and vice versa). this is not supposed to happen!
I cannot find a log that explains why zones are getting pushed up to the WebHost from the cluster.
The Reverse Trust relationships (** See below) prevent Webserver-01 from creating/editing a zone that already exists on Webserver-02 and vice-versa.
When ServerA has a synchronize relationship configured to ServerB, and ServerB also has a synchronize relationship configured back to ServerA. This is not ideal because zones will be distributed out to WHM servers that do not own those zones in a multi WHM cluster. While technically not a problem, managing these zones properly can quickly become confusing, and can easily result in problems from user error due to the complexity of the setup.