updating device name in system settings doesn't update /etc/hosts
Bug #1664438 reported by
Matt Hanyok
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-control-center (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
unity-control-center (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
probably a "paper cut" issue here. Issue exist on latest Ubuntu 19.10 and older releases, like 18.04 and 16.04.
Changed the hostname of a system recently by opening the system settings tool, into details, and typing a new device name.
Noticed afterwards that running sudo commands in the terminal resulted in an 'unable to resolve hostname' message, although the commands ran successfully.
Checked and it looked like changing the name updates /etc/hostname as expected, but it didn't update /etc/hosts for me - it still had:
127.0.0.1 localhost
127.0.1.1 (old hostname)
Replacing the old hostname with the new one removed the message from the terminal when running sudo commands.
tags: | added: eoan |
description: | updated |
To post a comment you must log in.
Status changed to 'Confirmed' because the bug affects multiple users.