Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Multiple DNSonly servers with multiple cPanel servers -> sync?

Discussion in 'Bind/DNS/Nameserver' started by mitch2k, Mar 6, 2019.

  1. mitch2k

    mitch2k Member

    Joined:
    Dec 5, 2010
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    51
    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!
     
  2. vlee

    vlee Well-Known Member

    Joined:
    Oct 13, 2005
    Messages:
    368
    Likes Received:
    25
    Trophy Points:
    178
    Location:
    Spokane, Washington
    cPanel Access Level:
    Root Administrator
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,707
    Likes Received:
    436
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @mitch2k
    Personally, I think this configuration is perfect

    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 Documentation
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. mitch2k

    mitch2k Member

    Joined:
    Dec 5, 2010
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    51
    Hi,

    thanks for the feedback both!

    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!
     
  5. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,707
    Likes Received:
    436
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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.

    Express transfer in this case should work well: Transfer Tool - Version 78 Documentation - cPanel Documentation

    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. mitch2k

    mitch2k Member

    Joined:
    Dec 5, 2010
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    51
    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
     
  7. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,707
    Likes Received:
    436
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice