policy: accept localhost hostnames if static

Prevents NetworkManager from trying to determine the
transient hostname via DHCP or other means if "localhost"
is already configured as a static hostname, as the transient
hostname will be ignored by hostnamed if a static hostname
has already been set.
This commit is contained in:
Jan Vaclav
2025-02-24 11:47:25 +01:00
parent 21c46d6e5f
commit 152d71a1f1
2 changed files with 2 additions and 3 deletions

View File

@@ -271,8 +271,7 @@ no-auto-default=*
Set the management mode of the hostname. This parameter will
affect only the transient hostname. If a valid static hostname is set,
NetworkManager will skip the update of the hostname despite the value of
this option. An hostname empty or equal to 'localhost', 'localhost6',
'localhost.localdomain' or 'localhost6.localdomain' is considered invalid.
this option. A hostname empty or equal to '(none)' is considered invalid.
</para>
<para><literal>default</literal>: NetworkManager will update the
hostname with the one provided via DHCP or reverse DNS lookup of the