How set up my FQDN? (Ubuntu 12.04)

  • Posted March 8, 2014


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!


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Thank you Kamal! Very cool.

<code>/etc/hostname</code> should only contain the hostname itself:<pre>raku</pre> <br><code>/etc/hosts</code> should also contain the following line: <br><pre> raku</pre>