Point domain via hosts file

When your computer does a DNS lookup, it will check the "hosts" file for an entry on the domain.  As a result, you can point a domain to any IP that you want.  For example, when testing a new version of a site on a different platform or server.  The hosts file is a plain text file that is edited using a plain text editor such as notepad, textedit, gedit, etc. 

Edit the hosts file:

Windows:  C:\Windows\System32\drivers\etc\hosts

Linux / Mac: /etc/hosts

Once opened, add an entry similar to:

1.2.3.4 example.com www.example.com

Where 1.2.3.4 is the real IP and example.com is the real domain.  It is important to have the www record also unless you exclusively use the non-www version. 

Save the file, restart the browser, and the domain should now point to the entered IP and you should see that version of the site.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Using multiple devices to check email

If you would like to check mail on our servers with a mail client (outlook thunderbird, etc) as...

Domain aliases - pointing one domain to another

In the hsphere control panel (Account Portal), do the following: Login to the control panel...

Setup, Using, and Disabling of Two Factor Authentication

Two factor authentication helps to secure your account in the event that your password is...

Renewing a Domain With Us

Domains need to be renewed with the registrar system or they will be marked as expired and then...