How can I test my website without changing DNS? Print

  • 2

By changing the hosts file on your local computer is the easiest way... here is how:

For PC:

1) Right click on notepad and click run as administrator then
2) Do file… open and browse to windows/system32/drivers/etc/ (choose all file types in the type area) then choose the hosts file
3) Then add

50.28.38.88 yourdomain.com

50.28.38.88 www.yourdomain.com

AND change yourdomain.com to your ACTUAL domain name :)

And then save the file.

OR download this great tool http://www.abelhadigital.com/hostsman  which lets you toggle back and forth.


For MAC:

  1. Launch Terminal , found in /Applications/Utilities/ or launched through Spotlight
  2. Type the following command at the prompt:
  3. sudo nano /private/etc/hosts
  4. Enter the administrator password when requested, you will not see it typed on screen as usual with the command line
  5. Once the hosts file is loaded within nano, use the arrow keys to navigate to the bottom of the hosts file to make the ip changes shown above
  6. When finished, hit Control+O followed by ENTER/RETURN to save changes to /private/etc/hosts, then hit Control+X to exit out of nano
  7. Quit out of Terminal when finished

now when you pull up the site in a browser it will be accessing from our server instead so you can test and see if its working ok.

Was this answer helpful?

« Back