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.

[Help] Changing Nameserver

Discussion in 'Bind / DNS / Nameserver Issues' started by crazeann, Jun 13, 2012.

  1. crazeann

    crazeann Registered

    Joined:
    Jun 13, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi all,

    I am stuck in changing nameserver from ns1.olddomain.com, ns2.olddomain.com to ns1.newdomain.com,ns2.newdomain.com

    Here is what i have tried..

    1. WHM >> Networking Setup >> Change Hostname : host.newdomain.com

    2. WHM >> Basic cPanel & WHM Setup >> Name servers : ns1.newdomain.com , ns2.newdomain.com + click-ing "Adding A entry for this nameserver"

    When i try to ping
    ns1.newdomain.com -- I get my server ip
    ns2.newdomain.com -- I get my serer ip
    newdomain.com -- Cannot resolved the ip
    host.newdomain.com -- Cannot resolved the ip

    Question :
    1. Is my steps in changing nameserver correct ?
    2. How to let newdomain.com resolved to my server ip?
    3. How to automatically changing all domain hosted on server to ns1.newdomain.com and ns2.newdomain.com, because after all the steps above, the domain hosted on server still point to ns1.olddomain.com

    Regards,

    crazean
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello,

    1. Yes

    2. Did you add newdomain.com as an account to the server? If you have, then is newdomain.com changed at your domain registrar to use ns1.newdomain.com and ns2.newdomain.com nameservers as the nameservers?

    3. You'll have to revise the DNS zone files for the nameserver entries. Here's a discussion on doing that:

    http://forums.cpanel.net/f5/changing-all-ns-records-277472.html#post1163041

    Thanks!
     
  3. crazeann

    crazeann Registered

    Joined:
    Jun 13, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi cPanelTristan,
    thanks for your fast reply :D

    I've tried your solution no.2 , and now the ip has resolved well.

    Will try the solution no.3 later, lots of domain need to change the nameserver.

    ----

    I still have a question, in /var/cpanel/nameserverips.yaml now there are 4entry of ns
    2 of ns old domain, and 2 of ns new domain. If your no.3 solution is omitted, is it ok cpanel have 2 different domain as nameserver ?
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    You can have two sets of nameservers on the same set of IP addresses, although that isn't advised. Basically, it will work to do it, but it isn't advisable to do it. I'm not certain how certain components like search engines or email providers take having two sets of nameservers on the same IPs.
     
Loading...

Share This Page