Mobile app version of vmapp.org
Login or Join
Hamaas447

: When changing hosting, how to see files served from the new server domain example.com is running on a server A. Then I changed host to the server B. Now when I open URL example.com, I still

@Hamaas447

Posted in: #Cpanel #Url #WebHosting

domain example.com is running on a server A.

Then I changed host to the server B.

Now when I open URL example.com, I still see the files from host A.

But I want the files from host B.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Hamaas447

1 Comments

Sorted by latest first Latest Oldest Best

 

@Courtney195

This is because of caching. The internet works by IP adressess, but people don't work like that, so we've got domainnames. A domainname is a alias for an IP address (simple put).

If you go to example.com, the browser needs the ip address. It gets that of DNS server (Domain Name), which translates the domainname to an ipaddress.

If your browser has to ask the ip every time, every load, every file, internet becomes very slow. So your browser/computer caches this value and, depending on the set Time To Life(TTL), refreshes only once per while, often somewhere between 3 to 8 hours.

To clear this cache on Windows: Go to cmd and type ipconfig /flushdns



Which DNS is choosen by the browser is set per domainname. You do this in your webhosting/domainname settings (if you can, this is a more advanced setting).

If you switch hosting, those references to the new DNSserver have to update as well. This can take upto 3 days (but often less then 12 hours). This is a waiting game.

You can speed this up if you have access to the current DNS, by telling your current DNS to point to the new hosting.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme