← Help center

Preview your site on your domain before changing DNS

Updated October 10, 2026

When you move an existing website to GUDHOST, you may want to check it on your real domain before you point the domain at us. You can do this on your own computer by editing its hosts file, which overrides DNS for that computer only. Everyone else keeps seeing your current site.

For most checks, the temporary address under Websites in your account is simpler. Use the hosts file when something only works on your real domain.

The line to add

Find your site's IP address under Websites in your account, then add one line to the hosts file, replacing the example IP address and domain with yours:

203.0.113.10 example.com www.example.com

Put the bare domain, www and any other subdomains you want to test on the same line.

Windows

  1. Search for Notepad, right-click it and choose Run as administrator.
  2. Choose File → Open, set the file type to All files and open C:\Windows\System32\drivers\etc\hosts.
  3. Add the line at the end and save.

macOS

  1. Open Applications → Utilities → Terminal.
  2. Type sudo nano /etc/hosts and enter your Mac password.
  3. Add the line, then press Control + X, Y and Return to save.
  4. Run sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder so the change takes effect straight away.

Linux

Open /etc/hosts with administrator rights, for example sudo nano /etc/hosts, add the line and save.

While you're previewing

Your free SSL certificate is only issued once your domain really points to GUDHOST, so your browser may show a certificate warning on https:// during the preview. That's expected.

When you've finished, remove the line and save the file again. Otherwise your computer keeps ignoring the real DNS for that domain.

More about Domains

Still stuck? Contact support and we'll look at your site with you.

Looking for WordPress hosting? See GUDHOST plans and prices.