what is the result of running
hostname
If it shows the hostname you've done it, if not do
hostname my.hostname.com
And /etc/hosts should not be like that, put your hostname on a separate line
Code:
127.0.0.1 my.hostname.com
I have my hostname pointed at my network address
Code:
192.168.1.65 my.hostname.com