sudo stops working after filling a domain name in manual network configuration

Bug #222935 reported by gary_inNYC
2
Affects Status Importance Assigned to Milestone
Ubuntu
New
Undecided
Unassigned

Bug Description

In Hardy (x86 final release clean install), I found that manually typing in a domain name in Network Settings (general section) stops the sudo command from working. Subsequently, an "unresolved host" message comes up when issuing a sudo command in the terminal, crippling much functionality of the system.

To fix the issue, I had to remove the domain name I entered, and sudo worked correctly again.

- Gary

Revision history for this message
Thomas Hood (jdthood) wrote :

/etc/hosts should look like this, where /etc/hostname contains "foo":

    127.0.0.1 localhost
    127.0.1.1 foo

If foo has a permanent IP address (e.g., 123.45.67.89) and fully qualified domain name ("foo.bar.com") then /etc/hosts should look like this:

    127.0.0.1 localhost
    123.45.67.89 foo.bar.com foo

See http://www.debian.org/doc/manuals/reference/ch-gateway.en.html and hosts(5).

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.