Drop libnss-myhostname recommends
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-control-center (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Bionic |
Won't Fix
|
Low
|
Jeremy Bícha |
Bug Description
Impact
======
gnome-control-
Test Case
=========
sudo apt uninstall libnss-myhostname
Restart
Open the GNOME Settings app (gnome-
In the left sidebar, click Devices
Enter a different Device name in the block (let's say new-hostname)
Open a terminal and verify that the hostname has been changed.
Then run ping new-hostname and verify that that command works in the terminal.
Other Info
==========
There are concerns about having libnss-myhostname in the default install. See comment 5 at LP: #1741277.
See also LP: #1162475
Note that /etc/hosts isn't updated regardless of whether libnss-myhostname is installed (I guess my bug description there was wrong but there was some kind of bug there.)
Regression Potential
=======
To quote from the manpage:
https:/
"Note that systemd-resolved will synthesize DNS resource records in a few cases, for example for "localhost" and the current hostname, see systemd-resolved(8) for the full list. This duplicates the functionality of nss-myhostname(8), but it is still recommended (see examples below) to keep nss-myhostname configured in /etc/nsswitch.conf, to keep those names resolveable if systemd-resolved is not running."
Ubuntu uses systemd-resolved by default and it's expected that users who don't want to use that will need to configure some things manually.
Related branches
description: | updated |
description: | updated |
description: | updated |
Changed in gnome-control-center (Ubuntu Bionic): | |
status: | New → Fix Committed |
description: | updated |
Changed in gnome-control-center (Ubuntu Bionic): | |
status: | Fix Committed → In Progress |
Changed in gnome-control-center (Ubuntu Bionic): | |
status: | In Progress → Triaged |
Changed in gnome-control-center (Ubuntu Bionic): | |
assignee: | nobody → Jeremy Bicha (jbicha) |
Every Ubuntu system is installed with an entry in /etc/hosts pointing to 127.0.1.1 for the hostname. gnome-control- center should be integrating with this, and not just relying on either libnss-myhostname or systemd-resolved to resolve the hostname. The local hostname should be resolvable without further moving parts at runtime - the software which manages the hostname should take care of updating the one additional config file.