[Bug 2067333] [NEW] hostnamectl --set-hostname doesn't update /etc/hosts

Luke 2067333 at bugs.launchpad.net
Tue May 28 02:08:54 UTC 2024


Public bug reported:

hostnamectl is a System API that updates all important OS references to
the hostname, so the operator does not need to know them.

Having to manually update /etc/hosts defeats the purpose of having the
System API & leaves the OS in an inconsistent state

** Affects: systemd (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/2067333

Title:
  hostnamectl --set-hostname doesn't update /etc/hosts

Status in systemd package in Ubuntu:
  New

Bug description:
  hostnamectl is a System API that updates all important OS references
  to the hostname, so the operator does not need to know them.

  Having to manually update /etc/hosts defeats the purpose of having the
  System API & leaves the OS in an inconsistent state

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/2067333/+subscriptions




More information about the foundations-bugs mailing list