summaryrefslogtreecommitdiff
path: root/man/hostnamectl.xml
diff options
context:
space:
mode:
authorStef Walter <stef@thewalter.net>2014-02-12 09:46:31 +0100
committerLennart Poettering <lennart@poettering.net>2014-05-28 09:34:37 +0800
commitc779a44222161155c039a7fd2fd304c006590ac7 (patch)
treeeb41d945aef45f4b732b313754f33c507c3c05dc /man/hostnamectl.xml
parent76d4bef384ba8d1fbf1a8d44237012ce6292e519 (diff)
downloadsystemd-c779a44222161155c039a7fd2fd304c006590ac7.tar.gz
hostnamed: Fix the way that static and transient host names interact
It is almost always incorrect to allow DHCP or other sources of transient host names to override an explicitly configured static host name. This commit changes things so that if a static host name is set, this will override the transient host name (eg: provided via DHCP). Transient host names can still be used to provide host names for machines that have not been explicitly configured with a static host name. The exception to this rule is if the static host name is set to "localhost". In those cases we act as if no static host name has been explicitly set. As discussed elsewhere, systemd may want to have an fd based ownership of the transient name. That part is not included in this commit.
Diffstat (limited to 'man/hostnamectl.xml')
-rw-r--r--man/hostnamectl.xml8
1 files changed, 3 insertions, 5 deletions
diff --git a/man/hostnamectl.xml b/man/hostnamectl.xml
index 6746a7042f..a11f2215d9 100644
--- a/man/hostnamectl.xml
+++ b/man/hostnamectl.xml
@@ -69,11 +69,9 @@
(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 might be assigned temporarily due to network
- configuration and might revert back to the static
- hostname if network connectivity is lost and is only
- temporarily written to the kernel hostname
- (e.g. "dhcp-47-11").</para>
+ which is a default 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>Note that the pretty hostname has little
restrictions on the characters used, while the static