cluster setup with 2 servers both serving dns and web

xmak

Registered
May 8, 2013
2
0
1
cPanel Access Level
Root Administrator
I'm putting two servers in a DNS cluster. They will both act as both dns and web servers, since some of the subdomains will be hosted on first server, and other on the second.

This is the setup i whish to achieve:

Code:
+----------------------------------------+
|         webserver1                     |
| dns1 (ns1.domain.com, ns2.domain.com)  |
+----------------------------------------+
                    |
                    |
+----------------------------------------+
|         webserver2                     |
| dns2 (ns3.domain.com, ns4.domain.com)  |
+----------------------------------------+
Since both servers will be serving webs in the same root domain, I need them both to have synchonized recored with each others.

So what setup should I have for this? To which DNS Role should each server be set up to?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

You will need to have the DNS Role on each server configured to "Synchronize Changes". It's important to keep in mind that you should not create hosting accounts for each individual subdomain on both servers. While the configuration you are seeking should function, it's generally better to have a dedicated machine for DNS hosting purposes only, instead of synchronizing web servers to each other.

You can review the full DNS Cluster configuration guide at:

Configure Cluster

Thank you.