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.

Howto: moving ns2 to new server

Discussion in 'General Discussion' started by dreamwiz, Jan 4, 2005.

  1. dreamwiz

    dreamwiz Well-Known Member

    Aug 28, 2003
    Likes Received:
    Trophy Points:
    I wrote this howto for RH Enterprise + Cpanel. This is how I changed
    my ns2 from old server to new server. WHile studying this myself I found
    there wasnt many guides about how to do this, especially if you feel
    unsecure using only WHM for this. I try to put the steps below to be
    exact same what I did. I take no responsibility on this, it worked for me but no guarentees.

    1. Get extra IP from your ISP
    2. Add IP address from WHM under IP Functions -> Add a new IP address
    3. In WHM, go Service Setup -> nameserver setup and enable nameserver
    4. In new and old server WHM remove the old ns2 from Server setup -> manage nameserver ip's section
    5. In old and new server (I did like this, I believe this would go with sync too) login as root via ssh.
    type: pico -w /var/named/

    Find the section for, after that is an ip address. Replace it with the new ip address.

    The following is borrowed from DiSoft's post (
    Check that the nameservers are correctly specified on NS, NS2 etc.

    Check that there are nameserver entries for each IP. There may also be one for - this is okay. I'm led to believe (by the 'man' entry for resolv.conf) that this isn't a particularly important file, but I changed mine to read:


    Where '' is the main domain of my server, and '' and '' are the IP addresses of my primary and secondary nameservers.

    resolv.conf is used to lookup names that are not in FQDN format.

    Check that there are entries for each IP acting as a nameserver.

    6. In both servers WHM, Cluster/Remote Access -> Configure Cluster. Enable clustering.

    7. Restart bind on both servers

    8. Go to your registrar and change your parental nameservers IP to the new one.

    9. Update the nameserver ip in your main domain.

    10. Check in both servers WHM in Server Setup -> Manage nameserver IP's that there is the new IP addresses.

    11. DONE! Now you just need to wait for some while for the dns to propagate. check once in a while to ensure everything is working properly.

    This is not a complete guide and I was writing it quickly, so it's highly possible I have
    forgotten something. If there is something missing, please correct me.

    Some posts and links I found useful:

    DiSoft's post about cpanel nameservers

    Solokron's howto to cpanel nameservers

    CPanel's quick dns-clustering guide
  2. sawbuck

    sawbuck Well-Known Member

    Jan 18, 2004
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Only thing you may want to change is the localhost entry in the resolv.conf. In the last few months it was determined that using could be a security issue (primarily with reseller accounts) and instead the entry should be the primary/virtual IP of the server.

Share This Page