summaryrefslogtreecommitdiffstats
path: root/man/hostnamectl.xml
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-12-16 16:55:49 +0100
committerGitHub <noreply@github.com>2020-12-16 16:55:49 +0100
commitecfbbf098c6639ecab5758e34ee91655ec2ccb9a (patch)
treea4042a8de0f1bcaed0cc1ad0368771c6a2f0af30 /man/hostnamectl.xml
parentsd-netlink: routing policy rule port to fib_rule_hdr (diff)
parenthostnamed,shared/hostname-setup: expose the origin of the current hostname (diff)
downloadsystemd-ecfbbf098c6639ecab5758e34ee91655ec2ccb9a.tar.xz
systemd-ecfbbf098c6639ecab5758e34ee91655ec2ccb9a.zip
Merge pull request #17859 from keszybz/hostnamed-export-hostname-origin-and-simplify-logic
Export hostname origin and simplify logic in hostamed
Diffstat (limited to 'man/hostnamectl.xml')
-rw-r--r--man/hostnamectl.xml32
1 files changed, 11 insertions, 21 deletions
diff --git a/man/hostnamectl.xml b/man/hostnamectl.xml
index 8c00867e73..224dab78a7 100644
--- a/man/hostnamectl.xml
+++ b/man/hostnamectl.xml
@@ -32,33 +32,23 @@
<refsect1>
<title>Description</title>
- <para><command>hostnamectl</command> may be used to query and
- change the system hostname and related settings.</para>
-
- <para>This tool distinguishes three different hostnames: the
- high-level "pretty" hostname which might include all kinds of
- special characters (e.g. "Lennart's Laptop"), the static hostname
- which is used to initialize the kernel hostname at boot (e.g.
- "lennarts-laptop"), and the transient hostname which is a fallback
- value received from network configuration. If a static hostname is
- set, and is valid (something other than localhost), then the
- transient hostname is not used.</para>
+ <para><command>hostnamectl</command> may be used to query and change the system hostname and related
+ settings.</para>
+
+ <para><citerefentry><refentrytitle>systemd-hostnamed.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
+ and this tool distinguish three different hostnames: the high-level "pretty" hostname which might include
+ all kinds of special characters (e.g. "Lennart's Laptop"), the "static" hostname which is the
+ user-configured hostname (e.g. "lennarts-laptop"), and the transient hostname which is a fallback value
+ received from network configuration (e.g. "node12345678"). If a static hostname is set to a valid value,
+ then the transient hostname is not used.</para>
<para>Note that the pretty hostname has little restrictions on the characters and length used, while the static and
transient hostnames are limited to the usually accepted characters of Internet domain names, and 64 characters at
maximum (the latter being a Linux limitation).</para>
- <para>The static hostname is stored in
- <filename>/etc/hostname</filename>, see
- <citerefentry><refentrytitle>hostname</refentrytitle><manvolnum>5</manvolnum></citerefentry>
- for more information. The pretty hostname, chassis type, and icon
- name are stored in <filename>/etc/machine-info</filename>, see
- <citerefentry><refentrytitle>machine-info</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para>
-
<para>Use
- <citerefentry><refentrytitle>systemd-firstboot</refentrytitle><manvolnum>1</manvolnum></citerefentry>
- to initialize the system hostname for mounted (but not booted)
- system images.</para>
+ <citerefentry><refentrytitle>systemd-firstboot</refentrytitle><manvolnum>1</manvolnum></citerefentry> to
+ initialize the system hostname for mounted (but not booted) system images.</para>
</refsect1>
<refsect1>