Skip to content
SPECIAL DEAL: GET 10% OFF ANNUALLY OR 20% OFF BIENNIALLY!! Merry Christmas and a happy New Year from everyone at NuHosting

Preview Your Website Before Changing DNS

If you are moving a website to NuHosting, you can check it works on our servers before pointing your domain at us. That way visitors only see the new site once you are happy with it.

Using your computer’s hosts file

The hosts file tells your computer where to find a domain, overriding DNS on that computer only.

  1. Find your server’s IP address in your welcome email or on the service page in My NuWeb.
  2. Open the hosts file as an administrator:
    • Windows: C:\Windows\System32\drivers\etc\hosts (open Notepad as administrator, then open the file).
    • Mac: open Terminal and run sudo nano /etc/hosts.
  3. Add a line with the IP address and your domain, for example:
    203.0.113.10 yourdomain.co.uk www.yourdomain.co.uk
  4. Save the file, close your browser completely and open your website.

You are now seeing the copy on NuHosting. Remember to remove the line when you have finished, or your computer will keep ignoring the real DNS.

Leave a comment

Your email address will not be published. Required fields are marked *