How Can I Test My Website Before Switching DNS?


There are two methods to test your website before switching DNS
1. Using a Redirection Service for Testing
2. Redirecting via System hosts File

Using a Redirection Service for Testing
SkipDNS.link allow you create a temporary URL. You can simply input the actual domain name of the site, the IP of the new host, and it will give you a URL to test.


Redirecting via System hosts File
The best way to test your website is by staging your domain via your computer system’s hosts file.

Windows Operation System

  1. Open Windows menu and type “Notepad”
  2. Right-click “Notepad” and select “Run as Administrator
  3. Open your system’s hosts file with location C:\Windows\System32\drivers\etc\hosts
    Note: If you don’t see anything in the etc folder, change “Text Documents” to “All Files” in Notepad. This will show everything in the folder including the hosts file.
  4. Add following lines at bottom of the hosts file using your Xperts server IP and the website name
    SERVER_IP_HERE example.com
    SERVER_IP_HERE www.example.com
  5. Click Save and restart the browser to open the website



Mac Operating System

  1. Click the F4 key to access launcher and Enter terminal
  2. open the hosts file with following command
    sudo nano /private/etc/hosts
  3. Give your macOS password and enter following lines at bottom of the hosts file using your Xperts server IP and the website name
    SERVER_IP_HERE example.com
    SERVER_IP_HERE www.example.com
  4. Click Save and restart the browser to open the website