unresolvable hostname breaks system

Bug #197494 reported by Cody A.W. Somerville
4
Affects Status Importance Assigned to Milestone
hostname (Ubuntu)
Incomplete
Wishlist
Unassigned
sudo (Ubuntu)
Incomplete
Wishlist
Unassigned

Bug Description

If the current host name set for the system is not resolvable (generally there is a static entry in /etc/hosts), than several components of the Ubuntu system will cease to function (such as sudo and reportedly X). If the user used the host name command to set a new host name, they only have to reboot to have their old host name loaded from /etc/hostname. However, if they modify /etc/hostnanme than the user will have to boot into the recovery mode (which provides a root shell) to either change /etc/hostname to one that resolves or add an entry to /etc/hosts to route the host name to localhost (127.0.0.1).

Would it be possible to have the current host name always be able to resolve to localhost?

Revision history for this message
Ralph Janke (txwikinger) wrote :

Thanks for your report. Your idea might get more attention and have the possibility of being implemented if you submit a specification for it. First check whether the idea is already registered <https://launchpad.net/ubuntu/+specs>, and if so, contact the
specification's drafter about your ideas. Otherwise, you can start writing a spec yourself. <https://wiki.ubuntu.com/FeatureSpecifications>

Changed in hostname:
importance: Undecided → Wishlist
status: New → Incomplete
Changed in sudo:
importance: Undecided → Wishlist
status: New → Incomplete
Revision history for this message
John A Meinel (jameinel) wrote :

It also happened to me when I upgraded from Gutsy => Hardy. It seems that /etc/hosts only includes my fully qualified name, while /etc/hostname only has the short name.

I cannot "sudo" to edit /etc/hosts or /etc/hostname

Revision history for this message
Neal McBurnett (nealmcb) wrote :

The sudo part of this bug is a dup of https://bugs.edge.launchpad.net/ubuntu/+source/sudo/+bug/32906 and a fix for that is in hardy-proposed.

If there are problems with X or other commands please describe them more fully.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.