From Fedora Project Wiki

(Created page with "With Fedora 18 the hostname is stored in the file <code>/etc/hostname</code>.")
 
No edit summary
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
With Fedora 18 the hostname is stored in the file <code>/etc/hostname</code>.
With Fedora 18 the hostname is stored in the file <code>/etc/hostname</code>.
The commands '''hostname''' and '''hostnamectl''' may be used to print or set the system hostname.
On Fedora the system hostname is specified as a '''f'''ully '''q'''ualified '''d'''omain '''n'''ame (FQDN).
<pre>
hostnamectl set-hostname myhost.mydomain
</pre>

Revision as of 07:25, 14 July 2013

With Fedora 18 the hostname is stored in the file /etc/hostname. The commands hostname and hostnamectl may be used to print or set the system hostname. On Fedora the system hostname is specified as a fully qualified domain name (FQDN).

hostnamectl set-hostname myhost.mydomain