From 9f0840e421c3fc5df404ad51dd37e5ebb13f288b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 25 Feb 2021 14:14:39 +0100 Subject: [PATCH] man: say that hostname must can be a fqdn or not Fixes #18426 --- man/hostnamectl.xml | 15 +++++++++++---- man/os-release.xml | 3 ++- 2 files changed, 13 insertions(+), 5 deletions(-) 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 -- 2.47.3