How do I update my hosts file?

Editing the hosts file on your local computer is a great way to test your website on our servers during migration to ensure everything is working as intended before switching over to us. The following steps will help you make these changes for your operating system

Windows 

  1. Click Start -> All Programs -> Accessories
  2. Right click Notepad and select Run as administrator
  3. Click Continue on the "Windows needs your permission" UAC window.
  4. When Notepad opens Click File -> Open
  5. In the filename field type C:\Windows\System32\Drivers\etc\hosts
  6. Click Open
  7. Edit the host file with the value as shown below. You can check your welcome email for the IP to use, or contact support and we can provide this for you.
    ip domain.com
  8. Make your changes to the Hosts file and click File and Save to save all changes.

MacOS
  1. Launch Terminal, found in /Applications/Utilities/ or launched through Spotlight
  2. Type the following command at the prompt: sudo nano /private/etc/hosts . You can replace nano with your preferred editor.
  3. Enter the administrator password when requested, you will not see it typed on screen as usual with the command line
  4. Once the hosts file is loaded within nano, use the arrow keys to navigate to the bottom of the hosts file to make your modifications
  5. Add the following as a new line: ip domain.com
  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
To revert these changes, either remove the line or add a # before it and save.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Server Information

All our servers run on the following configuration as a minimum:CPU: Dual Hex Core CPURAM: 128GB...

How to I upgrade to a different plan?

Most of our hosting plans will allow you to upgrade to a higher plan at anytime, and only need to...

Powered by WHMCompleteSolution