hostname
are: static, pretty, and transient.
hostname
, which can be chosen by the user, and is stored in the /etc/hostname
file. The “transient” hostname
is a dynamic host name maintained by the kernel. It is initialized to the static host name by default, whose value defaults to “localhost”. It can be changed by DHCP
or mDNS
at runtime. The pretty hostname
is a free-form UTF8 host name for presentation to the user.
DNS
domain name labels, even though this is not a strict requirement. The hostnamectl tool will enforce the following: Static and transient host names to consist of a-z
, A-Z
, 0-9
, “-
”, “_
” and “.
” only, to not begin or end in a dot, and to not have two dots immediately following each other. The size limit of 64 charcters is enforced.
~]$ hostnamectl status
The status
option is implied by default if no option is given.