Migrate dns zones from CentOS5 to CentOS7?

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,274
1,285
313
Houston
That sounds right, the biggest things you want to make sure of are

1. That the new server has all the zones
2. That the new server has the same DNS role to the other servers as the old one

Other than that there really shouldn't be too much more too it - as far as moving the IP address - any time you do a swap like this you'll want to ensure that you have a qualified system administrator or your provider assisting to ensure this goes smoothly.
 

shrief mohsen

Member
Jun 26, 2019
24
1
3
cairo
cPanel Access Level
DataCenter Provider
@cPanelLauren
1-in case that the new server didn't get all zones so what is the best approach to make sure that the new server receives all the zones
2-if we change the roles of the server to act as a primary but something wrong happens and it is not working so what is the best approach to fix this
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,274
1,285
313
Houston
1-in case that the new server didn't get all zones so what is the best approach to make sure that the new server receives all the zones
Technically, it should if you're synchronizing the zones, what I mean here is that there are no errors or issues with synchronization.


2-if we change the roles of the server to act as a primary but something wrong happens and it is not working so what is the best approach to fix this
I'm not sure how that would happen but it'd really depend on what went wrong, this is a really simple modification and really just need to ensure that this server is the one passing the zone files to the others and not the other way around.
 

shrief mohsen

Member
Jun 26, 2019
24
1
3
cairo
cPanel Access Level
DataCenter Provider
Dear @cPanelLauren

the primary dns server named.conf is different from the secondary servers located on the cluster i have found that no of domains located on the primary nameserver are less than the secondary nameservers on the dns cluster and the named.conf file of one of the secondary servers has more domains than the other anyway named.conf on the dns servers of the dns cluster are not the same is there any approach to solve this problem

Thanks & best regards
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,274
1,285
313
Houston
I would have no way to know what the issue is specifically without more information.

Do the zones on the DNS server relate to accounts that exist on the webserver?
Are they older zones related to removed accounts?
 

shrief mohsen

Member
Jun 26, 2019
24
1
3
cairo
cPanel Access Level
DataCenter Provider
@cPanelLauren

will i have checked the number of zones for each name server each zone should be located in the named.conf as external and internal zone

i am using the command rndc status to check the number of zones for each server and her is the output

primary server of dns cluster
number of zones :-12900

secondary server 1
number of zones:-12937

secondary server 2
number of zones:-13114


i have found at the primary servers that some zones of some domains located in the named.conf file of the primary server have only internal zones other domains have only external zones when i check this domains i see that most of them are active so all the dns servers named.conf files are not synchronized with each other so what is the best approach for this problem

Thanks & best regards
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,274
1,285
313
Houston
The secondary servers are nameservers only correct? They do not host any domains on them? This would be the optimal way to set this up. The only thing you would need to ensure is that ALL of the domain zones on the Primary server are present on the secondary servers in this case, it does not matter if zones present on the secondary server are not synchronized to the primary or other secondary servers.