Report this

What is the reason for this report?

View website without changing the DNS

Posted on March 8, 2015

I have created the following domain.

https://128.199.191.78:2083 Domain : sg50timeline.com

After transferring the files to new server, how can I check whether the website is fine before changing the DNS.

Please advise.



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!

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.

This can be done by adding a hosts file entry on your local computer. A hosts file entry tells your computer to use a specific IP address for a name rather than what is returned by a DNS query and is useful for just this purpose.

On Windows the hosts file can be found in C:\Windows\system32\drivers\etc\ and on Linux and Mac systems it can be found in /etc/hosts

The format is an IP address and name, separated by a space or tab. Once you are done testing you should remove the entry to ensure you are properly querying DNS again (otherwise if a DNS issue occurs in the future you may not be able to see it).

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.