How set up my FQDN? (Ubuntu 12.04)

Posted March 8, 2014 4.2k views
Hi. I'm trying to set up my FQDN to get my mailserver to work. When I type # hostname I get "rakuraku" When I typ # hostname -f I get "localhost" my /etc/hostname file is: " raku" Are there some settings stored otherwhere, since I get rakuraku from hostname -f, which I probably entered somewhere during the setup of my server? Thank you!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers
/etc/hostname should only contain the hostname itself:

/etc/hosts should also contain the following line: raku
Thank you Kamal! Very cool.