Research and Development
sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/hosts
In Mac OS X Lion this is no longer possible due to sandboxing.
The best option to access hosts file on Lion is Terminal:
sudo vim /private/etc/hosts
Any terminal editor will do (vi, vim, nano, etc).