Temporary access from IP address

May 22, 2016 2.6k views
Ubuntu PHP High Availability DNS WordPress DigitalOcean Apache

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.

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.

Have another answer? Share your knowledge.