Debian and localhost.localdomain
by Juliet Kemp
A while back I was trying to set up kpropd on a Debian system, and came across a problem whereby one of my hosts was identifying itself as
host/localhost.localdomain (this was Not Helpful).
Investigation revealed firstly that
hostname returned the correct thing (i.e. servername), and secondly that
/etc/hosts looked like this:
x.x.x.x servername.mydomain.com servername 127.0.0.1 localhost.localdomain localhost servername
There has been discussion on the Debian lists about the order of this last line being incorrect; some applications (including, it seems, at least some aspects of Kerberos admin) can't cope with 127.0.0.1 returning
localhost.localdomain instead of
Replacing that last line with
127.0.0.1 localhost localhost.localdomain servernamesolved the problem - i.e.
localhost.localdomainwants to be an alias, not the canonical hostname.
(Note: this was using a sarge system (and in fact I was working on this quite some time ago); I don't know what the current situation is with etch, nor whether it has been fixed in recent sarge bugfixes. Just documenting it in case others encounter the same/similar problem.)
|Thanks, Fun little Debian tidbit.|
Hmm. Ubuntu does the same thing:
|Hmm. Fedora Core 5 appears to do the same thing too.|
Many thanks, it helped me!
I probably should not post, my Debian experience being sporadic.
I have installed etch from DVD. If I put localhost.localdomain in Epiphany, I am directed to a Charter communications websearch (which is how I got this link). Typing 127.0.0.1 however brings me to /var/www/apche2-default/, where I have placed all my web pages, prior to migration from Yahoo.
Typing 127.0.1.1 also brings me to apache2-default.
My /etc/hosts contains these lines:
127.0.1.1 localhost.domain.com localhost
My real goal though is how to configure my name server. I am still sifting through the Etch instructions and release notes.