f20 - hostname

Steven Rosenberg stevenhrosenberg at gmail.com
Wed Dec 18 19:35:03 UTC 2013


On Wed, Dec 18, 2013 at 11:16 AM, Robert Moskowitz <rgm at htt-consult.com> wrote:
> During install I did not find a dialog to set my host name (FQDN). Somehow
> it picked up what I like for host, but the domain part it is picking up from
> dhcp of the subnet I was on during the install.  I want to force the whole
> fqdn regardless of where I am.

I think hostnamectl is the command to use (not just # hostname).

This documentation for Fedora 18 should still apply:
http://docs.fedoraproject.org/en-US/Fedora/18/html/System_Administrators_Guide/s1_Using_Hostnamectl.html

And you should also look at:

$ man hostname

It looks like this --
http://docs.fedoraproject.org/en-US/Fedora/18/html/System_Administrators_Guide/s2_Set_All_the_Hostnames.html
-- is what you should do:

# hostnamectl set-hostname name

(In the example above, name is your preferred hostname)


More information about the users mailing list