Skip to main content

Migrate cPanel DNS-Only Nameservers

Comments

14 comments

  • cPanelMichael
    Hello, Could you verify how the cluster is currently configured? Do you have the ability to obtain an additional server temporarily for migration purposes? Thank you.
    0
  • wswd
    Hi Michael, I'm not sure what you mean by how it is currently configured. I do have access to temporary servers. Thanks!
    0
  • cPanelMichael
    Hello, For instance, is the cluster configured with direct links? There's a document here that references the configuration types: Guide to DNS Cluster Configurations - cPanel Knowledge Base - cPanel Documentation Generally, since a cluster affords you redundancy in the event one server is down, you can simply reinstall the OS and cPanel DNS-Only on each server one at a time. Once the DNS-Only installation completes, re-add the the server via WHM Home >> Clusters >> DNS Cluster on each cPanel server that syncs it's zones to the cluster. Thank you.
    0
  • wswd
    It's a cPanel DNS cluster, with Write-Only defined on the servers to all 4 nameservers. Sounds good, and thanks for the help Michael! Just wanted to make sure I wasn't missing something. :)
    0
  • cPanelMichael
    Hello @wswd, You're very welcome! Let us know if you encounter any issues during the migration. Thank you.
    0
  • wswd
    The DNS Cluster migration turned into a DNS Cluster**** but a ticket resolved everything. :)
    0
  • WireNine
    The DNS Cluster migration turned into a DNS Cluster**** but a ticket resolved everything. :)

    what kinda problem did you run into?
    0
  • wswd
    what kinda problem did you run into?

    Don't even remember now. This thread is almost 4 years old...
    0
  • George_Fusioned
    We're also looking to replace our CentOS 6 DNS-only nameservers (was hoping we would had a stable release that supports CentOS 8 by now, to avoid having to redo this again soon) and were wondering what needs to be done in order to re-sync the newly re-installed DNS-only box, with all the records from the cPanel servers. I guess we need to re-add it to each cPanel (web)server, and then? "Synchronize all zones to this server only" from the DNS box? "Synchronize all zones to all servers" from each server (I think this will break things..)
    0
  • cPRex Jurassic Moderator
    @wintech2003 - All that should need to happen is that the DNSOnly system gets added to the cluster on each webserver, and then you perform a sync from each webserver. I would run "/scripts/dnscluster --syncall" on the webserver to ensure those zones get updated to all the DNS cluster members.
    0
  • lorio
    All that should need to happen is that the DNSOnly system gets added to the cluster on each webserver, and then you perform a sync from each webserver. I would run "/scripts/dnscluster --syncall" on the webserver to ensure those zones get updated to all the DNS cluster members.

    The wording around the different settings in the DNS clustering function is still confusing. This hasn't changed in years. Synchronize Changes: All changes made on this server will propagate to any server in the cluster that is linked to this server. Synchronization is one-way: changes made on another server will not propagate to this server unless Synchronize changes is selected on the other server as well. Standalone: No changes made on this server will propagate to any other servers. Write-only: This server will write changes to the remote server. Changes to the remote server will not propagate back to this server. Warning: Two Write-only servers that attempt to write changes to a matching record on the same remote server will cause a conflict and may corrupt data.
    The cleanest scenario one would be on WHM-Server with two DNS directly linked in the DNS cluster settings. The "DNS Role" in the dialog is defining the role of remote server when interacting with the logged-in server. When I chose e.g. "Standalone" for ns1 and "Write-Only" for ns2, the DNS role descriptions are I would change the description to "Standalone : No changes made on this server will propagate to the remote server." The "any other server" is misleading, isn't it?
    0
  • lorio
    I found a different wording for DNS roles. https://forums.cpanel.net/threads/dns-cluster-setup-did-synchronization-change.681181/post-2799677 Synchronize " This method synchronizes records between the local server and the remote server. Most administrators use this setting. Standalone " This method fetches DNS records from the remote server, but does not write records from the local server to 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.
    Synchronize (without enabling reverse relationship) is resulting in what behavior? One-Way-Sychronization, which is Write-Only with check of existing records?
    0
  • cPRex Jurassic Moderator
    Synchronize is going to send the data over to the remote system. I have found the best way to think about this is that you are controlling the sync options for the server you are working with. For example, in the following screenshot: My local server is syncing the changes to those remote DNS systems. If you logged into the DNSOnly servers themselves, you'd see the option for the webservers set to "standalone" so all zones from all webservers do not get synced to each other:
    0
  • lorio
    @cPRex Thank for your answer. I personally have not activated the DNSCluster on the DNSOnly machines. So WriteOnly is used on each WHMserver. But your idea to describe both side of connection (for the cases when a trusted relationship from DNSOnly to WHMHost is needed), might be a good input for the manual as well.
    0

Please sign in to leave a comment.