Previewing your site on Traxio before changing DNS

Use your computer’s hosts file to see your site on Traxio while the domain still points to your old host — the key step for a no-downtime move.

Guide2 min readLast updated
On this page
  1. 1. Find your server’s IP
  2. 2. Edit the hosts file
  3. 3. Browse the site
  4. 4. Remove the line
  5. If it doesn’t work
  6. Common questions

When moving a site, you want to test the Traxio copy before switching DNS. The hosts file lets your computer alone skip DNS for your domain.

1. Find your server’s IP

Open Account Manager › DNS Management and note the A record address for your domain.

2. Edit the hosts file

Windows

  1. Open Notepad as administrator.
  2. Open C:\Windows\System32\drivers\etc\hosts (choose “All files” to see it).
  3. Add a line, using your IP:
203.0.113.10 yourdomain.co.uk www.yourdomain.co.uk
  1. Save.

Mac or Linux

sudo nano /etc/hosts

Add the same line, save with Ctrl + O, exit with Ctrl + X.

3. Browse the site

Flush your DNS cache and restart the browser. How to clear your DNS cache (Windows, Mac, browsers, phones) Your computer now loads the Traxio copy. Everyone else still sees the old host.

The browser may show a certificate warning if SSL hasn’t issued on Traxio yet. That’s expected at this stage; test over http://, or proceed past the warning for testing only.

4. Remove the line

When you’ve finished testing, delete the line and save. Forgetting it is a classic cause of “the site works for me but not for anyone else” later.

Prefer to follow along?

If it doesn’t work

These guides cover the most common problems, starting with what you can see. Or browse every fix for a common problem.

Common questions

Can I see my site on Traxio before pointing my domain at it?

Yes, and you should — it is what makes a zero-downtime migration possible. Editing the hosts file on your own computer makes just your machine resolve the domain to Traxio while everyone else still sees the old host.

Spotted something out of date or unclear? Tell us and we’ll fix it.

Keep going