I think you were close. I am running Ubuntu which uses Gnome. The following lines were present in
/etc/hosts (before I started mucking with it!):
Code:
127.0.0.1 localhost
127.0.1.1 <hostname>
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
The <hostname> in the second line is the contents of the the
/etc/hostname file. Just to give you a heads up, I
seriously broke Gnome by altering
/etc/hostname w/o changing the corresponding entry in
/etc/hosts. After altering
/etc/hosts so they matched, all was well again.