diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-02-25 14:14:39 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-02-25 21:14:04 +0100 |
commit | 9f0840e421c3fc5df404ad51dd37e5ebb13f288b (patch) | |
tree | fba9b0f0abaecbfc9d34bf22319d3c714c3c75e3 /man/hostnamectl.xml | |
parent | timesync: rename variable to match config name (diff) | |
download | systemd-9f0840e421c3fc5df404ad51dd37e5ebb13f288b.tar.xz systemd-9f0840e421c3fc5df404ad51dd37e5ebb13f288b.zip |
man: say that hostname must can be a fqdn or not
Fixes #18426
Diffstat (limited to 'man/hostnamectl.xml')
-rw-r--r-- | man/hostnamectl.xml | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/man/hostnamectl.xml b/man/hostnamectl.xml index 224dab78a7..8be8972907 100644 --- a/man/hostnamectl.xml +++ b/man/hostnamectl.xml @@ -1,6 +1,9 @@ <?xml version='1.0'?> <!--*-nxml-*--> <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" - "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> + "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [ +<!ENTITY % entities SYSTEM "custom-entities.ent" > +%entities; +]> <!-- SPDX-License-Identifier: LGPL-2.1-or-later --> <refentry id="hostnamectl" conditional='ENABLE_HOSTNAMED' @@ -76,9 +79,13 @@ still following the validity rules of the specific name. This simplification of the hostname string is not done if only the transient and/or static hostnames are set, and the pretty hostname is left untouched.</para> - <para>Pass the empty string <literal></literal> as the - hostname to reset the selected hostnames to their default - (usually <literal>localhost</literal>).</para></listitem> + <para>The static and transient hostnames must each be either a single DNS label (a string composed of + 7-bit ASCII lower-case characters and no spaces or dots, limited to the format allowed for DNS domain + name labels), or a sequence of such labels separated by single dots that forms a valid DNS FQDN. The + hostname must be at most 64 characters, which is a Linux limitation (DNS allows longer names).</para> + + <para>Pass the empty string <literal></literal> as the hostname to reset the selected hostnames to + their default (usually <literal>&FALLBACK_HOSTNAME;</literal>).</para></listitem> </varlistentry> <varlistentry> |