To add a host file in Mac so you can view your site on our server before DNS propagates follow these steps.
Step 1: Open Terminal
Step 2: Enter sudo dscl localhost -create /private/etc/hosts/yourdomainname.com IPAddress 0.0.0.0 putting in your domain name and replacing the 0.0.0.0 with the proper IP address of the server.
Step 3: Enter your admin password
Raptor18 - 70.182.140.18
Raptor16 - 70.182.140.16
Apollo3 - 70.164.1.8
Apollo4 - 70.182.140.40
To remove the host file after your site has been fully moved over or DNS has propagated for your new site follow these steps.
Step 1: Open Terminal
Step 2: Enter sudo dscl localhost -delete /private/etc/hosts/yourdomainname.com
Step 3: Enter your admin password
Article ID: 31, Created: May 9, 2008 at 9:12 AM, Modified: August 26, 2022 at 8:48 AM