Temporary access from IP address

Hello 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.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.