Do you need a free shell account?
Then sign up at Devio.us!
You’ll get unrestricted shell access via SSH and access to all standard software – compilers, IRC clients, mail clients, screen, etc. Check out the details at http://devio.us/services
There are times during DNS changes or other testing that you may want to specify a particular IP for a domain name. To do this, you’ll need to edit your hosts file. This way you can “trick” your computer before DNS actually changes or point a domain to another IP, even a local one. Some of the instructions out there on how to do this are a little too bloated, so I tried to simplify them as much as possible here on DotResults. If you have any questions about this, please leave a comment and we’ll get back to you as soon as we read it.
1. Open Terminal

2. Paste this command:
sudo nano /private/etc/hosts
You’ll be asked to enter your administrator password.
3. Arrow down to the last line, highlighted here, and type your entry like this: 137.61.27.216 www.tech.com

4. Press control+x. Type the letter Y. This saves the file.
5. To flush your DNS cache so the changes take effect, paste this command next:
dscacheutil -flushcache
6. You can test if it has worked by using the PING command. Try PING tech.com and PING www.tech.com – the IP addresses should be different.


{ 1 trackback }
{ 0 comments… add one now }