This article applies to editing your hosts file on both Windows and Mac based computers.
When you are transferring a website over to iDAQ's servers you can test that you have migrated your site over properly prior to changing the DNS records by changing your hosts file on your Windows or Mac based computers.
On Windows the hosts file can be found at C:\Windows\system32\drivers\etc\hosts By editing this file using Notepad or other suitable text editor and entering the following line into the file you will override the results returned from the DNS servers for your local machine:
ip address www.yourdomain.com e.g. 18.104.22.168 www.yourdomain.com
To edit the hosts file on a Mac open a terminal session and edit the hosts file with the following commands -
sudo vi /etc/hosts
You'll be asked to enter the administrative password of the computer. Once open add the entry at the bottom of the file as described above. To save and exit the change type :wq and press enter (SHIFT + the semi-colon, colon key a colon will appear in the bottom left hand corner of the terminal window, now type wq and press Enter to save and exit).
When you visit the www.yourdomain.com in your browser, the browser will see this entry in the hosts file and send it's request to the IP address listed in the hosts file. This allows you to test your site prior to making any DNS changes.
When you've finished testing either delete or comment out the line you added to your hosts file.