hostname not found in /etc/hosts
Bug #173482 reported by
dvh
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
debian-installer (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When I unplug network cable (or connection from internet provider is lost), the whole desktop almost completely freeze. For example xterm starting for 15s, mc starting for 30s, most GUI applications freeze completely. When I plug cable back, it is ok and everything woks well. I thing it is something in /etc/resolv.conf or so.
To post a comment you must log in.
I finally find what is the problem. But before I say you, I found these problems are very common, across different distribution (confirmed on one fedora and one gentoo instalation), so I suggest to fix this bug in more consistent way. So what is the problem? During the instalation, i was asked to add my hostname, so I type "ubuntu710" but this name has not been writen to /etc/hosts, there was this instead:
127.0.0.1 localhost ubuntu ubuntu7 ubuntu7.10
But not ubuntu710 which was what I was requested. Of course, `hostname` report my correct name which is "ubuntu710". So, It seems some applications (such as xterm, mc, gnome-terminal, ...) are resolving `hostname` rather than "localhost", which is in most cases fine, but not when connection is down.
So what to do? I suggest som "control mechanism" which fix (or alert?) difference between `hostname` and /etc/hosts settings for localhost.