Setting the FQDN hostname?

I'm having a bit of trouble setting the FQDN on the new server..

I want it to be the server's hostname.. but this is what I get..

root@host [~]# hostname
host
root@host [~]# hostname --fqdn
hostname: Unknown host
root@host [~]#


How do i set it to something.something.com?

I've tried hostname something.something.com but when I restart, it reverts back. I tried setting it in /etc/hosts, no luck.

Thanks

 

 

 

 

Top