NAME | SYNOPSIS | DESCRIPTION | HISTORY | SEE ALSO | COLOPHON

HOSTNAME(5)                       hostname                       HOSTNAME(5)

NAME         top

       hostname - Local hostname configuration file

SYNOPSIS         top

       /etc/hostname

DESCRIPTION         top

       The /etc/hostname file configures the name of the local system that
       is set during boot using the sethostname(2) system call. It should
       contain a single newline-terminated hostname string. Comments (lines
       starting with a `#') are ignored. The hostname may be a free-form
       string up to 64 characters in length; however, it is recommended that
       it consists only of 7-bit ASCII lower-case characters and no spaces
       or dots, and limits itself to the format allowed for DNS domain name
       labels, even though this is not a strict requirement.
       You may use hostnamectl(1) to change the value of this file during
       runtime from the command line. Use systemd-firstboot(1) to initialize
       it on mounted (but not booted) system images.

HISTORY         top

       The simple configuration file format of /etc/hostname originates from
       Debian GNU/Linux.

SEE ALSO         top

       systemd(1), sethostname(2), hostname(1), hostname(7), machine-id(5),
       machine-info(5), hostnamectl(1), systemd-hostnamed.service(8),
       systemd-firstboot(1)

COLOPHON         top

       This page is part of the systemd (systemd system and service manager)
       project.  Information about the project can be found at 
       ⟨http://www.freedesktop.org/wiki/Software/systemd⟩.  If you have a bug
       report for this manual page, see 
       ⟨http://www.freedesktop.org/wiki/Software/systemd/#bugreports⟩.  This
       page was obtained from the project's upstream Git repository 
       ⟨https://github.com/systemd/systemd.git⟩ on 2017-07-05.  If you dis‐
       cover any rendering problems in this HTML version of the page, or you
       believe there is a better or more up-to-date source for the page, or
       you have corrections or improvements to the information in this
       COLOPHON (which is not part of the original manual page), send a mail
       to man-pages@man7.org
systemd 234                                                      HOSTNAME(5)

Pages that refer to this page: hostnamectl(1)systemd-firstboot(1)machine-id(5)machine-info(5)os-release(5)systemd.directives(7)systemd.index(7)systemd-hostnamed.service(8)