Results 1 to 20 of 20
  1. #1
    Join Date
    Oct 2010
    Location
    India
    Posts
    145

    How to change nameserver domain in my VPS

    I've configured in my VPS nameserver domains: ns1.example.com & ns2.example.com. But now my primary domain is expiring and want to change it to ns1.newdomain.com and ns2.newdomain.com.

    What steps do I need to take to do this migration?

  2. #2
    Join Date
    Dec 2007
    Location
    LocalHost
    Posts
    1,317
    Are you using cPanel on your VPS?
    YagHost - Fast Reliable Hosting Since 2009
    Managed VPS - NVMe DirectAdmin
    Web Hosting - NVMe SSD, AMD EPYC, 10 Gbps (US, Europe, Singapore)

  3. #3
    Join Date
    Oct 2010
    Location
    India
    Posts
    145
    Yes I'm using Cpanel (WHM 11.40.0 build 31)

  4. #4
    Join Date
    Dec 2007
    Location
    LocalHost
    Posts
    1,317
    Follow these steps:

    1) Create two A record for nameserver in WHM >> Add DNS entry
    ns1.newdomain.com
    ns2.newdomain.com

    Use same IP for nameserver A record that you have for old nameserver.

    2) From domain control panel, create two child nameserver
    ns1.newdomain.com
    ns2.newdomain.com


    3) Change nameserver address of all hosted domains.
    ns1.example.com >> ns1.newdomain.com
    ns1.example.com >> ns2.newdomain.com

    4) Edit DNS entry of all hosted domains from WHM >> Edit DNS
    And change nameserver record.
    ns1.example.com >> ns1.newdomain.com
    ns1.example.com >> ns2.newdomain.com
    YagHost - Fast Reliable Hosting Since 2009
    Managed VPS - NVMe DirectAdmin
    Web Hosting - NVMe SSD, AMD EPYC, 10 Gbps (US, Europe, Singapore)

  5. #5
    Join Date
    Oct 2010
    Location
    India
    Posts
    145
    Thanks Ravi but I don't find "Add DNS entry" in my WHM(pl. see the screenshot).

    Also will I also need to change the host name?
    Attached Thumbnails Attached Thumbnails Graphic_07-Jan-14 2_02_39 PM.jpg  

  6. #6
    Join Date
    Dec 2007
    Location
    LocalHost
    Posts
    1,317
    Quote Originally Posted by rag_gupta View Post
    Thanks Ravi but I don't find "Add DNS entry" in my WHM(pl. see the screenshot).
    I will make it simple for you. Login in WHM and navigate to:
    WHM >> Server Configuration >> Basic cPanel & WHM Setup

    Scroll to bottom of page to Nameservers section. Enter your new nameserver and click "Add a A record for this nameserver" button.

    Done!!

    Also will I also need to change the host name?
    Are you using hostname on olddomain.com
    If yes, you should change to newdomain.com
    But this is not required for nameserver. This is required because you should use a valid and fully qualified hostname.
    Last edited by YagHost-Ravi; 01-07-2014 at 04:58 AM.
    YagHost - Fast Reliable Hosting Since 2009
    Managed VPS - NVMe DirectAdmin
    Web Hosting - NVMe SSD, AMD EPYC, 10 Gbps (US, Europe, Singapore)

  7. #7
    Join Date
    Oct 2010
    Location
    India
    Posts
    145
    Thanks, I've got it.

    Will changing host name cause any issues?

    I mean in "Change Hostname" from host.site.com to host.newsite.com ?

  8. #8
    Join Date
    Dec 2007
    Location
    LocalHost
    Posts
    1,317
    Quote Originally Posted by rag_gupta View Post
    I mean in "Change Hostname" from host.site.com to host.newsite.com ?
    Will not cause any problem. Make sure to add a A Record for new host name from:
    WHM >> DNS Functions >> Add an A Entry for Your Hostname
    YagHost - Fast Reliable Hosting Since 2009
    Managed VPS - NVMe DirectAdmin
    Web Hosting - NVMe SSD, AMD EPYC, 10 Gbps (US, Europe, Singapore)

  9. #9
    Join Date
    Oct 2010
    Location
    India
    Posts
    145
    Should I first add A Record for new host name then change the host name or the vice versa?

  10. #10
    Join Date
    Dec 2007
    Location
    LocalHost
    Posts
    1,317
    Quote Originally Posted by rag_gupta View Post
    Should I first add A Record for new host name then change the host name or the vice versa?
    Change host name -> Add A record for new hostname
    YagHost - Fast Reliable Hosting Since 2009
    Managed VPS - NVMe DirectAdmin
    Web Hosting - NVMe SSD, AMD EPYC, 10 Gbps (US, Europe, Singapore)

  11. #11
    Join Date
    Oct 2010
    Location
    India
    Posts
    145
    Thanks Ravi I've added configured a new domain tarrifplansindia.com as new nameserver(pl see the attachment). ns1.tarrifplansindia.com and ns2.tarrifplansindia.com are working fine as I've changed the dns of a site and it is working fine.

    I've changed the host name as you've mentioned. Then I went to WHM >> Server Configuration >> Basic cPanel & WHM Setup >> "Add a A record for this nameserver"

    I've not done anything else.

    Since timeinindia.in is going to expire how to remove it from the DNS?
    Attached Thumbnails Attached Thumbnails Graphic_20-Jan-14 2_16_41 PM.jpg  

  12. #12
    Join Date
    Dec 2007
    Location
    LocalHost
    Posts
    1,317
    Quote Originally Posted by rag_gupta View Post
    Since timeinindia.in is going to expire how to remove it from the DNS?
    1) Delete these entry from WHM >> Server Configuration >> Basic cPanel & WHM Setup >> nameserver and click save button.
    ns1.timeinindia.in
    ns2.timeinindia.in

    2) Then delete DNS entries for these nameserver from:
    WHM >> DNS Function >> Delete a DNS Zone
    YagHost - Fast Reliable Hosting Since 2009
    Managed VPS - NVMe DirectAdmin
    Web Hosting - NVMe SSD, AMD EPYC, 10 Gbps (US, Europe, Singapore)

  13. #13
    Join Date
    Oct 2010
    Location
    India
    Posts
    145
    In the "Choose Zones to Delete" in Delete a DNS Zone I see all my sites added along with these:

    • timeinindia.in ( going to expire domain)
    • ns1.tariffplansindia.com (the new one)
    • ns2.tariffplansindia.com



    Don't know why ns1.timeinindia.in & ns2.timeinindia.in not there. So should I delete only this entry: timeinindia.in ?

  14. #14
    Join Date
    Dec 2007
    Location
    LocalHost
    Posts
    1,317
    Quote Originally Posted by rag_gupta View Post
    Don't know why ns1.timeinindia.in & ns2.timeinindia.in not there.
    Then it must be present in DNS entry of timeinindia.in.

    So should I delete only this entry: timeinindia.in ?
    If you are no more hosting timeinindia.in on this server and no more using ns1.timeinindia.in/ns2.timeinindia.in you can safely delete the entry.

    Also, even if DNS entry of timeinindia.in is present on server, this is not going to create any issue for you.
    YagHost - Fast Reliable Hosting Since 2009
    Managed VPS - NVMe DirectAdmin
    Web Hosting - NVMe SSD, AMD EPYC, 10 Gbps (US, Europe, Singapore)

  15. #15
    Join Date
    Feb 2005
    Location
    Australia
    Posts
    5,849
    The domain tariffplansindia.com appears to be delegated to nameservers ns1 and ns2.timeinindia.in (and doesn't resolve) - don't delete your old nameservers until you've fixed that...

    $ dig tariffplansindia.com

    ; <<>> DiG 9.8.1-P1 <<>> tariffplansindia.com
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 6802
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;tariffplansindia.com. IN A
    $ dig +trace tariffplansindia.com

    ; <<>> DiG 9.8.1-P1 <<>> +trace tariffplansindia.com
    ;; global options: +cmd
    . 15142 IN NS g.root-servers.net.
    . 15142 IN NS a.root-servers.net.
    . 15142 IN NS l.root-servers.net.
    . 15142 IN NS b.root-servers.net.
    . 15142 IN NS m.root-servers.net.
    . 15142 IN NS d.root-servers.net.
    . 15142 IN NS i.root-servers.net.
    . 15142 IN NS e.root-servers.net.
    . 15142 IN NS c.root-servers.net.
    . 15142 IN NS h.root-servers.net.
    . 15142 IN NS k.root-servers.net.
    . 15142 IN NS j.root-servers.net.
    . 15142 IN NS f.root-servers.net.
    ;; Received 512 bytes from 127.0.0.1#53(127.0.0.1) in 1472 ms

    com. 172800 IN NS m.gtld-servers.net.
    com. 172800 IN NS l.gtld-servers.net.
    com. 172800 IN NS k.gtld-servers.net.
    com. 172800 IN NS j.gtld-servers.net.
    com. 172800 IN NS i.gtld-servers.net.
    com. 172800 IN NS h.gtld-servers.net.
    com. 172800 IN NS g.gtld-servers.net.
    com. 172800 IN NS f.gtld-servers.net.
    com. 172800 IN NS e.gtld-servers.net.
    com. 172800 IN NS d.gtld-servers.net.
    com. 172800 IN NS c.gtld-servers.net.
    com. 172800 IN NS b.gtld-servers.net.
    com. 172800 IN NS a.gtld-servers.net.
    ;; Received 498 bytes from 198.41.0.4#53(198.41.0.4) in 1635 ms

    tariffplansindia.com. 172800 IN NS ns1.timeinindia.in.
    tariffplansindia.com. 172800 IN NS ns2.timeinindia.in.
    ;; Received 88 bytes from 192.54.112.30#53(192.54.112.30) in 608 ms

    ;; Received 38 bytes from 96.44.156.73#53(96.44.156.73) in 260 ms
    Chris

    "Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them." - Laurence J. Peter

  16. #16
    Join Date
    Oct 2010
    Location
    India
    Posts
    145
    Chris thanks but how to fix this? Could it be due to that domain nameservers of tariffplansindia.com domain were ns1.timeinindia.in and ns2.timeinindia.in. I've just now changed it to ns1.tariffplansindia.com & ns2.tariffplansindia.com in the domain control panel.

  17. #17
    http://www.tariffplansindia.com/ is not working from here.

  18. #18
    Join Date
    Oct 2010
    Location
    India
    Posts
    145
    Ravi it has not gone smoothly. I need to change the domain name of hosting account also. But even after doing all the changes mentioned in this thread I find entries of timeinindia.in( which is expiring soon).

    Intodns has reported:
    Missing nameservers reported by parent FAIL: The following nameservers are listed at your nameservers as nameservers for your domain, but are not listed at the parent nameservers (see RFC2181 5.4.1). You need to make sure that these nameservers are working.If they are not working ok, you may have problems!
    ns1.timeinindia.in
    ns2.timeinindia.in

    Error Missing nameservers reported by your nameservers ERROR: One or more of the nameservers listed at the parent servers are not listed as NS records at your nameservers. The problem NS records are:
    ns2.tariffplansindia.com
    ns1.tariffplansindia.com
    This is listed as an ERROR because there are some cases where nasty problems can occur (if the TTLs vary from the NS records at the root servers and the NS records point to your own domain, for example).

  19. #19
    Join Date
    Feb 2005
    Location
    Australia
    Posts
    5,849
    Quote Originally Posted by rag_gupta View Post
    Chris thanks but how to fix this? Could it be due to that domain nameservers of tariffplansindia.com domain were ns1.timeinindia.in and ns2.timeinindia.in. I've just now changed it to ns1.tariffplansindia.com & ns2.tariffplansindia.com in the domain control panel.
    The correct nameservers need to be set for the main domain, both in the registrar's system and in your system (NS records in your zone editor). It looks like you've done this and the domain is now resolving correctly (showing a "Hello world" page) - are you still having problems?
    Chris

    "Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them." - Laurence J. Peter

  20. #20
    Join Date
    Oct 2010
    Location
    India
    Posts
    145
    I carefully did the steps laid out in this thread but the old expiring domain was still listed in the zone files.

    So I went and reset zone file of each domain. Then it got alright until I rebooted. Then due to TTL timeout my VPS was rendered completely inaccessible - no Ssh or WHM login. Finally I asked for help from the support team( mine is fully managed VPS).

    It was quickly fixed don't know how. But it was tense moment on Sunday night when I went to sleep at 2.30 am.

    Soladrive saved my life at the crucial moment. I'm happy now.

    But I still see the old domain in the "Nameserver IPs"(timeinindia.in) in WHM(as in attachment).

    Thank you all guys(Ravi & Chris).


    Lesson: we shouldn't do these nameserver changes ourselves.
    Attached Thumbnails Attached Thumbnails Graphic_28-Jan-14 11_13_44 AM.jpg  

Similar Threads

  1. Registrar Change for Nameserver Domain?
    By MacDo in forum Domain Names
    Replies: 5
    Last Post: 02-15-2013, 01:03 PM
  2. How to change server with out nameserver change or web site down
    By sprakas4 in forum Running a Web Hosting Business
    Replies: 4
    Last Post: 02-26-2010, 09:52 AM
  3. nameserver change co.uk domain
    By mojosue in forum Web Hosting
    Replies: 2
    Last Post: 10-13-2005, 06:02 AM
  4. domain transfer and nameserver change
    By CresHost in forum Domain Names
    Replies: 7
    Last Post: 01-12-2005, 10:13 AM
  5. change nameserver domain on ssh ?
    By Ivan23 in forum Dedicated Server
    Replies: 5
    Last Post: 10-08-2003, 08:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •