1HOSTNAME(5)                        hostname                        HOSTNAME(5)
2
3
4

NAME

6       hostname - Local hostname configuration file
7

SYNOPSIS

9       /etc/hostname
10

DESCRIPTION

12       The /etc/hostname file configures the name of the local system that is
13       set during boot using the sethostname(2) system call. It should contain
14       a single newline-terminated hostname string. The hostname may be a
15       free-form string up to 64 characters in length; however, it is
16       recommended that it consists only of 7-bit ASCII lower-case characters
17       and no spaces or dots, and limits itself to the format allowed for DNS
18       domain name labels, even though this is not a strict requirement.
19
20       Depending on the operating system, other configuration files might be
21       checked for configuration of the hostname as well, however only as
22       fallback.
23
24       You may use hostnamectl(1) to change the value of this file during
25       runtime from the command line. Use systemd-firstboot(1) to initialize
26       it on mounted (but not booted) system images.
27

HISTORY

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

SEE ALSO

33       systemd(1), sethostname(2), hostname(1), hostname(7), machine-id(5),
34       machine-info(5), hostnamectl(1), systemd-hostnamed.service(8), systemd-
35       firstboot(1)
36
37
38
39systemd 219                                                        HOSTNAME(5)
Impressum