How to preview website before switching DNS? Print

  • website, dns
  • 818

To preview your website on our server, you could either use the temporary link (that is mentioned in the activation e-mail) or edit your hosts file.

Windows

First of all you have to locate your hosts file (and if needed update the following command).

  1. Open the Windows start menu and enter the following command:
    notepad c:\windows\system32\drivers\etc\hosts
  2. Right click on the result and choose "Open as administrator"
  3. Notepad will open a file with some descriptions in which you will append the following entries to the end of the file:
    83.213.32.20 domain.com
    83.213.32.20 www.domain.com
  4. Replace "83.213.32.20" with the IP address that is mentioned in the package activation mail. Replace "domain.com" and "www.domain.com" with the domain you want to test.

Save the file with "CTRL + S".

Now you can open your browser and preview your website on our server.

Mac

To preview your website on our server, you can apply the following chagnes to your Mac:

  1. Open the terminal using Spotlight or under Applications - Utilities - Terminal
  2. To open the hosts enter the following command:
    sudo nano /private/etc/hosts
  3. If promted enter your username and password
  4. Append the IP and your domain according to the sample provided in the file. The IP of the server can be found in the activation e-mail.
  5. To save the file, press CTRL+O, then ENTER for the file name and CTRL+X to exit

Now you can open your website, hosted on our server.

Feel free to get in touch with our customer support if you have any further questions: support@dihostnet.com.


Was this answer helpful?

« Back