Multiple DNSonly servers with multiple cPanel servers -> sync?
Hi,
I have 3 webservers:
webserver 1
webserver 2
webserver 3
They used to work as DNS server as well. I am now moving my nameservers to 3 separate dns only servers:
namerserver 1
namerserver 2
namerserver 3
Right now I have configured it that each webserver writes it's dns to all 3 nameservers.
The nameservers are not syncing with each other. The webservers are also not syncing with each other.
so:
webserver 1 -> namerserver 1,namerserver 2,namerserver 3
webserver 2 -> namerserver 1,namerserver 2,namerserver 3
webserver 3 -> namerserver 1,namerserver 2,namerserver 3
I am wondering if I need to setup sync between the webservers.
I think, with sync between the servers, if I want to transfer accounts between the webservers (which I regularly do), then the records get adjusted right away, and also I don't risk to get any conflicts? Or do I need to sync on nameserver level?
Thanks!
-
I have 3 DNS Only Servers and 2 Web Servers use clustering. I set DNS Only's to Standalone in the cluster Then I set the Web Servers to Synchronize Changes to the DNS Only servers in the Cluster. So whatever DNS changes you make from the Web Servers it automatically Synchronize Changes to the DNS Only servers. No need to Synchronize Changes to the other Web Servers. Note: may sure you setup API Tokens between the Web Server and the DNS Only servers I hope this helps 0 -
Hi @mitch2k webserver 1 -> namerserver 1,namerserver 2,namerserver 3 webserver 2 -> namerserver 1,namerserver 2,namerserver 3 webserver 3 -> namerserver 1,namerserver 2,namerserver 3
Personally, I think this configuration is perfectI am wondering if I need to setup sync between the webservers.
I would absolutely not do this, this would allow for conflicts. Our documentation here may be helpful for you: Guide to DNS Cluster Configurations - cPanel Knowledge Base - cPanel Documentation0 -
Hi, thanks for the feedback both! Personally, I think this configuration is perfect
In this configuration, what happens if both webserver 1 and 2 write the same zone towards the dns only's? If I use the transfer tool in this case (for example server 2 -> server 3), should or should I not use express transfer? And when deleting the account from the old server, should I retain the DNS zone? Thanks!0 -
Hi @mitch2k Duplicate DNS records would cause a conflict, really you shouldn't have a domain existing on both servers at the same time unless in the case of a transfer in which case the transfer tool well update the DNS zone files accordingly. should or should I not use express transfer?
Express transfer in this case should work well: Transfer Tool - Version 78 Documentation - cPanel DocumentationAnd when deleting the account from the old server, should I retain the DNS zone?
You shouldn't need to manually delete the DNS zone when you terminate the account you should allow the DNS zone to be terminated with it as the other webserver would then be handling the DNS zone for the domain. Thanks!0 -
Hi, I have now moved to the suggested setup: webserver 1 -> namerserver 1,namerserver 2,namerserver 3 webserver 2 -> namerserver 1,namerserver 2,namerserver 3 webserver 3 -> namerserver 1,namerserver 2,namerserver 3 However, I still have all DNS zones on all webservers because previously all webserver were syncing to each other. How can I clean up these zones? Thanks 0 -
Hi @mitch2k I'm not aware of a way to remove DNS zones in bulk when the account does not exist on the server, though they won't be getting synced any longer and if the NS are pointed to the NS servers they won't be getting looked at on the nameservers it could still pose a potential issue. 0
Please sign in to leave a comment.
Comments
6 comments