Not clear on what your having trouble with. Can't save it? Don't know how to edit it?
anyway to open so you can edit and save
press alt+f2 (run dialog)
gksudo gedit /etc/hosts
Its a pretty simple file - bring up the man pages in a terminal window