Tips, Tricks, News & Offers
If you would like to be kept up to date with Internet technology changes, Idaq technical tips & How To's plus discounts and special offers, subscribe to our Tips, Tricks and offers Newsletter:

First Name:
Last Name:
Knowledgebase: Web Hosting
Can I preview my site prior to migrating the DNS to point at the iDAQ server?
Posted by John Imison on 12 February 2007 04:59 PM

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  e.g.

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 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.

(119 votes)
This article was helpful
This article was not helpful

Comments (0)
Post a new comment 
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Hosted by Idaq