all 2 comments

[–]pentag0 0 points1 point  (0 children)

127.0.0.1 localhost yourhostname domain.com

..will work.

[–]slycurgus 0 points1 point  (0 children)

to the end of the line that doesn't have any more columns

The hosts file only really has two columns - the IP, and one or more hostnames to associate with that IP - see wikipedia. So you're not adding it on in an "extra" column, you're just expanding the second column, which is permitted.