1. Home
  2. Knowledge Base
  3. How to check my website in the new server before replacing or pointing the DNS A record for MAC

How to check my website in the new server before replacing or pointing the DNS A record for MAC

Step 1: Open up a Terminal windows (this is in your Applications/Utilities folder by default)

Step 2: Enter the following command to open the local host file.

+++
sudo vi /etc/hosts
+++

Step 3: Enter the following into that file

ServerIP yourwebsite.com

(Example 127.0.0.1 mywebsite.com)

Step 4: Save as (Esc+:wq).

Step 5: You can now view the website using any browser.

Need Support?
Can't find the answer you're looking for?
Contact Support