Temporary access from IP address

Posted May 22, 2016 3.7k views
UbuntuApachePHPWordPressDigitalOceanDNSHigh Availability

I’m moving my websites (multiple web and domain names) from a vps to Digital ocean, i have several websites running and alive.
I have move the necessary files to new droplet in digitalocean but i need to do some adjustment. How do i access all those websites (temporarily) before i change my ns, since i can’t afford to let the websites down and wait for propagation of the new ns (which sometimes can take a whole day/night)

Any advice?

Thank you in advance.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

The easiest way to do this is to create hosts file entries on your local computer. With these entries your computer will use the address you give it rather than querying DNS servers for the names you define.

On Windows this file can be found in C:\Windows\system32\drivers\etc\

On Mac and Linux it can be found in /etc/hosts

In both cases the format is a name (the domain) and an ip address.