From: Zbigniew Jędrzejewski-Szmek Date: Thu, 25 Feb 2021 13:14:39 +0000 (+0100) Subject: man: say that hostname must can be a fqdn or not X-Git-Tag: v248-rc3~108^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9f0840e421c3fc5df404ad51dd37e5ebb13f288b;p=thirdparty%2Fsystemd.git man: say that hostname must can be a fqdn or not Fixes #18426 --- diff --git a/man/hostnamectl.xml b/man/hostnamectl.xml index 224dab78a7c..8be8972907c 100644 --- a/man/hostnamectl.xml +++ b/man/hostnamectl.xml @@ -1,6 +1,9 @@ + "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [ + +%entities; +]> - Pass the empty string as the - hostname to reset the selected hostnames to their default - (usually localhost). + 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). + + Pass the empty string as the hostname to reset the selected hostnames to + their default (usually &FALLBACK_HOSTNAME;). diff --git a/man/os-release.xml b/man/os-release.xml index a6d333f2780..e6162bdacfb 100644 --- a/man/os-release.xml +++ b/man/os-release.xml @@ -325,7 +325,8 @@ present and no other configuration source specifies the hostname. Must 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 total length must be at most 64 characters. + a valid DNS FQDN. The hostname must be at most 64 characters, which is a Linux limitation (DNS allows + longer names). See org.freedesktop.hostname15