127.0.0.1 localhostYou can add additional lines to this file that will point requests for a particular domain to your new server's IP address. You will find your IP address in your new account e-mail. This needs to be replaced below where X.X.X.X is shown.
127.0.0.1 localhost X.X.X.X example.com X.X.X.X www.example.com
1. Either by start typing Terminal on the Spotlight, or by going into Applications -> Utilities -> Terminal.
2. Open the hosts by typing on the Terminal that you have just opened:
Type your user password when prompted.
3. The hosts file contains some comments (lines starting with the # symbol), as well as some default hostname mappings (e.g. 127.0.0.1 – localhost).
Simply append your new mappings underneath the default ones. Or edit one of the default values if you know what you are doing!
You can navigate the file using the arrow keys.
4. When done editing the hosts file, press control-o to save the file.
Press enter on the filename prompt, and control-x to exit the editor.
5. On Leopard, you can issue a simple Terminal command to flush the DNS cache, and have your host file changes to take immediate effect:
Best Unlimited Web Hosting
Best Unlimited Reseller Hosting
Best Master Reseller Hosting
Best VPS Hosting
Smart Bespoke Hosting
Smart Cloud Hosting UK Ltd
2 Sheriffs Orchard
© Smart Cloud Hosting UK Ltd - Registered Company Number 9101547
Smart Hosting has been Rated 5 / 5 based on 609 Reviews
www.bestwebhosting.co.uk / www.smarthosting.co.uk
*Prices Shown Exclude EU VAT - UK VAT Registration Number GB 196 1704 88
From 1st January 2015 there are new VAT rules for EU customers.