Mobile app version of vmapp.org
Login or Join
Murphy175

: Move website from host a to host b without down time dns change I would like to move my website from host A to host B I have uploaded a copy of my site to the new host, while keeping

@Murphy175

Posted in: #Dns #WebHosting

I would like to move my website from host A to host B
I have uploaded a copy of my site to the new host, while keeping the old copy in place
with the old host
I will need to update the nameservers to point to the new nameservers.
I'll want to change the DNS settings of domain name to point to new
host b


To avoid down time for the DNS change to propagate through the net, can I add the old nameservers and new nameservers together without causing problems, or must I delete the old nameservers first?

What happens to my website when it points to two different nameservers?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Murphy175

2 Comments

Sorted by latest first Latest Oldest Best

 

@Samaraweera270

It's normally OK to have different nameservers for single domain, though you don't need it.

What I would do is the following (I use example.com as your website address and 1.1.1.1 as a webserver address for your NEW hosting.)

Check that the new nameservers work

nslookup
server ns1.newhosting.com example.com

You should get an answer like

Name: example.com Addresses: 1.1.1.1


Make sure your website actually works on the new webserver

open "hosts" file (normally in C:WINDOWSsystem32driversetc) in notepad and add one row

1.1.1.1 example.com

Now open example.com in your browser. You will see how your site behaves on the NEW location.

Move

Just change nameservers from the old ones to the new ones. Because of propagation delays, some users will still access the old site for several days. After about a week, or if you know that old site no longer accesses (in case you have some statistics or access logs) - you can remove the old site and old nameservers are no longer needed.

10% popularity Vote Up Vote Down


 

@Hamm4606531

You can have your domain name in multiple nameservers at once, in fact, most registrars require at least 2 nameservers for your domain name (which can theoretically be the same machine with 2 ip addresses, but is not advised because of the problem that would give when that machine would go down (which would be that no resolving is possible)).

The bottom line is whatever the registry that registered your domain name has set as so called Authoritive nameservers. Those will be the nameservers that are queried for the records. Your domain name can be in 100 other nameservers, but that won't affect how it's resolved, since they are not authoritive for your domain.

So, yes you can create a DNS zone in your new nameservers with the new IP addresses already. The change only gets effective from the moment your registry updates the authoritive nameserver records for your domain (plus after that the time that the TTL of the records is set to, before it starts resolving to the new host).

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme