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:

