Updating a hosts file on a mac in OS X Leopard is a little more difficult than a PC.http://www.apple.com/downloads/macosx/internet_utilities/hostal.htmlIt is possible to edit the hosts file direct but it is a bit techie on OS X. You need to do EXACTLY the followingYou must have access to log in as the root user - http://support.apple.com/kb/HT1528?viewlocale=en_US
- Log out using the apple menu (top left)
- Log in as the root user
- Open Applications > utility > Command ( this is the command prompt for the underlying unix of os x)
- Type the following
- cd /etc
- vi hosts
- e (press the letter e)
- use down arrow to get below last item in the list
- right arrow to get to nd of row
- press a (the letter a)
- press return
- type ip tab webaddress you want adding eg.
- 78.136.0.162 www.livelinknewmedia.com (there is a tab between the 162 and www
- Press escape
- Type :x
- You have edited the file now
- You must flush your dns by typing
- sudo dscacheutil –flushcache
- Done – you should be able to see the site you added now.
Bookmark/Search this post with: