itnonsense.com

Random thoughts on the world of IT

Hosts file not working in OS X Lion 10.7.2 (Fixed)

After upgrading to OSX Lion 10.7.2, I found that the hosts file no longer worked as expected. I have several entries in my hosts file for local development domains of my sites, i.e; I use 'itnonsense.lcl' as an alias for this site.

After updating Lion, I was getting DNS resolution errors which meant that without workarounds I couldn't get my local domains to work correctly - until now. Fortunately, it is quite an easy fix.

Using a text editor such as TextWrangler, open the hosts file using 'sudo', for example:

Read More »