Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

[HELP] Changing Nameserver IP's

Discussion in 'Bind/DNS/Nameserver' started by IVPS - Peter, Oct 18, 2012.

  1. IVPS - Peter

    IVPS - Peter Member

    Joined:
    Oct 18, 2012
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    I had just got a new server and had cPanel/WHM installed. During setting up hostname/nameservers, I did not realise about setting up the correct IP's corresponding to the nameservers.

    I want to fix the nameservers so that they're correctly assigned. I did automatically assign, and it assigned a private IP. Currently it's as following

    x.x.x.2 (NS1)
    x.x.x.140 (NS2)

    I would like to fix it (in all aspects, nameservers, dns, etc) to
    x.x.x.141 (NS1)
    x.x.x.142 (ns2)

    How would I go abouts doing this? And if I'm doing this, what else will I have to fix as there are already a few accounts on the server.

    Thanks!
     
  2. tank

    tank Well-Known Member

    Joined:
    Apr 12, 2011
    Messages:
    254
    Likes Received:
    1
    Trophy Points:
    68
    Location:
    Chicago, IL
    cPanel Access Level:
    Root Administrator
  3. IVPS - Peter

    IVPS - Peter Member

    Joined:
    Oct 18, 2012
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thanks for the help! :) It did somewhat help me, however I did a bit more searching and I found that I had to do the following

    edit /etc/nameserverips
    Put in correct ips corresponding to namerservers

    edit /var/cpanel/nameserverips.yaml (be sure to backup first)
    I noticed the ips were not set in this, as well it was set to eth0 not eth1

    Used nano to edit configs

    Hope this helps with other people as well :)
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice