Multiple Shared Servers Sharing Nameservers

Jul 1, 2015
6
1
51
Silver Lake, WI
cPanel Access Level
Root Administrator
Would a DNS cluster in which multiple shared servers are configured to use (write-only to) the same cluster of DNSOnly nodes work? I'm not sure if write-only deletes everything on the target before writing or just writes and I can't find any information that confirms if this would work or not. It could just be that I'm missing or misreading something. :)

Thank you,
Chris

MWSnap007 2016-10-27, 08_27_08.png
 

alimaserrat

Registered
Oct 27, 2016
4
1
3
Toronto
cPanel Access Level
Root Administrator
I really like to know about this method, we like to use same 2 nameservers but connect it to multiple WHM servers in different data centers. Which they have different IPs.

Can you please explain how to do this.
 
Jul 1, 2015
6
1
51
Silver Lake, WI
cPanel Access Level
Root Administrator
I just submitted a support ticket asking if this was possible, but I'll explain what I'm asking since you were wondering.

My idea was to have all of my cPanel/WHM (shared web servers) set up to "write-only" the same group of nameservers in the DNS cluster. I don't know if, when changes are written to the nameservers, if that deletes what other shared servers wrote to the cluster.

In other words...
  • cPanel/WHM servers shared1 and shared2 are both configured for the same DNS cluster consisting of ns1 and ns2 and are set up to write-only.
  • Domain a.com is hosted on shared1 and shared1 writes the dns files to ns1 and ns2.
  • Domain b.com is hosted on shared2 and shared2 writes the dns files to ns1 and ns2.
Does shared2's actions have any affect on what shared1 wrote to the DNS cluter and vice-versa?

Chris
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello,

The cluster setup you are describing is commonly referred to as a direct link configuration, and is actually the recommended method to setup a cluster. It's documented at:

Guide to DNS Cluster Configurations - cPanel Knowledge Base - cPanel Documentation

That said, the downside to using write-only mode is that WHM will not check whether a DNS zone exists before you create an account. Because of this, it is possible to create the same domain name on two or more of these servers. If this occurs, the servers compete for updates to that domain. Setting the role to Synchronize will prevent this from happening. Here's a description of each role from our DNS Cluster documentation:

The server's DNS role. You can choose from the following options:
  • Standalone — This method fetches DNS records from the remote server, but does not write records from the local server to the remote server.
  • Synchronize — This method synchronizes records between the local server and the remote server.
  • Write-only — This method pushes the local server's records to write to the remote server, but does not query records from the remote server to write to the local server.
Thank you.