Editing Your Hosts File

In certain scenarios, for example, to use SiteSpect in an offline environment, you'll have to edit a file called hosts that your operating system uses to map host names to IP addresses. We provide instructions here for both Windows and Mac.

Windows

You must edit the hosts file as administrator, otherwise your changes won't take effect. To do so:

  1. Locate Notepad.
  2. Right click on it and select Run as Administrator. You may be asked to enter your credentials.

Editing Your Hosts File - Windows

  1. Open C:\windows\system32\drivers\etc\hosts.
  2. Switch to SiteSpect and select SiteConfigurationDomains.
  3. In the lower left corner of the Domains list, click Get Hosts File Entries. SiteSpect displays a small window with hosts file entries for your Domains.

Editing Your Hosts File - Get Hosts File Entries

  1. Copy these entries.
  2. Switch back to Notepad and paste the entries you just copied into your hosts file.
  3. Save your hosts file.
  4. Open a Command Prompt window. In Windows 10, click the Windows icon in the lower left and launch Command Prompt under Windows System in the list of programs.
  5. In the Command Prompt window, type the following to clear the DNS cache on your computer:
ipconfig /flushdns
 
Editing Your Hosts File - Command Prompt
  1. In SiteSpect, Preview a Variation Group: select Campaigns, select a Status, select a Campaign, open a Variation Group, click Preview. Your site opens in the SiteSpect Preview window.

Editing Your Hosts File - Clothing Co

Mac

These instructions use the Terminal application to edit the hosts file.

  1. Open a Finder window and select Applications from the sidebar.
  2. Open Utilities and then open Terminal.
  3. In the Terminal window, open the Nano text editor, which requires your administrator password.
  • Type sudo nano /etc/hosts and press return.
  • Enter your administrator password and then press return.
  1. Switch to SiteSpect and select SiteConfigurationDomains.
  2. In the lower left corner of the Domains list, click Get Hosts File Entries. SiteSpect displays a small window with hosts file entries for your Domains.

Editing Your Hosts File - Mac

  1. In the Terminal window, add these entries to your hosts file.
  2. When you're done, press Control + O to save the file and press Enter. Then press Control + X to exit Nano.
  3. In the Terminal window, type sudo killall -HUP mDNSResponder and press return. That clears the DNS cache on your computer.
  4. In SiteSpect, Preview a Variation Group: select Campaigns, select a Status, select a Campaign, open a Variation Group, click Preview. Your site opens in the SiteSpect Preview window.

Editing Your Hosts File - Mac Clothing Co