Post migration checking Ip and name- serves:

sreeninair

Well-Known Member
Dec 23, 2013
100
0
16
cPanel Access Level
Root Administrator
Hello,

I am now migration account to a new server. After restoration is completed I will have to manually check all the accounts. The most difficult part is zone file. I am now opening all db files and verify them. Can I copy all the zone files from old server?. Is there any problem?. Do i have to update serial after copying zone files.


Thanks
Sreeni
 

triantech

Well-Known Member
Jul 1, 2014
143
1
18
Kochi, India, India
cPanel Access Level
Root Administrator
Sreeni,

How exactly are you migrating the accounts? If you are using the cPanel tools, the zone files are automatically
copied to the new server ! During the time of migration ( if you are using the migration wizard ), you can specify
the IP address too for these domains on the new server. It would be just a matter of updating the NS records,
i believe, as a part of the migration !
 

sreeninair

Well-Known Member
Dec 23, 2013
100
0
16
cPanel Access Level
Root Administrator
Hello triantech,

We are migrating accounts using whm copy multiple accounts tool. Then we will migrate all ip's in the server to new server. So we need the same ip's and name server as in old server. But while migrating account some accounts will have different name servers. So it will be easy if we can sync zone file and httpd.conf (i think so) so same configuration will be copied in the new server.
 

cPanelMichael

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

You could copy over the zone files, however the easier solution would simply be to hold off on updating the name server IP addresses at the registrar until you are ready for the domain names to propagate to the new server.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,256
463
It's acceptable to copy over the zones files, but remember if you make any subsequent edits manually, that you should update the serials using commands such as:

Code:
# cp -a /var/named /var/named-backup 
# find /var/named/*.db -mtime -1 -exec perl -pi -e 'if (/^\s+(\d{10})\s+;\s+serial/i) { my $i = $1+1; s/$1/$i/;}' '{}' \;
Thank you.