The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Post migration checking Ip and name- serves:

Discussion in 'Data Protection' started by sreeninair, Jul 11, 2014.

  1. sreeninair

    sreeninair Well-Known Member

    Joined:
    Dec 23, 2013
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    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
     
  2. triantech

    triantech Well-Known Member

    Joined:
    Jul 1, 2014
    Messages:
    145
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    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 !
     
  3. sreeninair

    sreeninair Well-Known Member

    Joined:
    Dec 23, 2013
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    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.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  5. sreeninair

    sreeninair Well-Known Member

    Joined:
    Dec 23, 2013
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Michael,

    We are not changing name servers. The ip's are switched to new server.

    Thanks
    Sreeni
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page