Hi everyone, On Fri, May 26, 2006 at 01:56:02PM +0200, Jan Engelhardt wrote: > What a mess. I would prefer to see Linux distributions have > 127.0.0.1 localhost > in their /etc/hosts (to have the standard 127.0.0.1<->localhost mapping) > and /etc/HOSTNAME contain the hostname, which is > sethostname()d/setdomainname()d by init scripts and gethostname()d by apps. Well I always thought that 127.0.0.1 is localhost, and _only_ localhost, and the host's real name would rather be mapped to its IP on the real NIC. Every interface (including local loopback) has a distinct IP; hostnames are supposed to be resolved to one of these and need to be somewhat unique on subnets, unless a fqdn is supplied. So here's what I got, following that scheme: 127.0.0.1 localhost.localdomain localhost 192.168.x.y host.domain.tdl host Major catch: it presumes you have at least one NIC actually in use. If lo is the absolute sole interface, one might map every single hostname to that one as well. Schizophrenia is fun, solitude is gone for good : ) Larger institutions would prefer dynamic stuff like DHCP and DNS anyway, but for distros' installers intended for home users this might be a viable solution - never experienced any strangeness with that one so far. Just my .02€, with kind regards Chris
Attachment:
pgp2d3sj5s4FR.pgp
Description: PGP signature
- Follow-Ups:
- Re: [PATCH] Add compile domain (was: Re: [PATCH] Well, Linus seems to like Lordi...)
- From: Gabor Gombas <[email protected]>
- Re: [PATCH] Add compile domain
- From: [email protected] (Bernd Eckenfels)
- Re: [PATCH] Add compile domain (was: Re: [PATCH] Well, Linus seems to like Lordi...)
- References:
- [PATCH] Well, Linus seems to like Lordi...
- From: Kyle McMartin <[email protected]>
- Re: [PATCH] Add compile domain (was: Re: [PATCH] Well, Linus seems to like Lordi...)
- From: Jan Engelhardt <[email protected]>
- Re: [PATCH] Add compile domain (was: Re: [PATCH] Well, Linus seems to like Lordi...)
- From: Linus Torvalds <[email protected]>
- Re: [PATCH] Add compile domain (was: Re: [PATCH] Well, Linus seems to like Lordi...)
- From: Alistair John Strachan <[email protected]>
- Re: [PATCH] Add compile domain (was: Re: [PATCH] Well, Linus seems to like Lordi...)
- From: [email protected] (Lennart Sorensen)
- Re: [PATCH] Add compile domain (was: Re: [PATCH] Well, Linus seems to like Lordi...)
- From: Jan Engelhardt <[email protected]>
- [PATCH] Well, Linus seems to like Lordi...
- Prev by Date: Re: usb-serial ipaq kernel problem
- Next by Date: Re: [patch 03/13] input: make input a multi-object module
- Previous by thread: Re: [PATCH] Add compile domain (was: Re: [PATCH] Well, Linus seems to like Lordi...)
- Next by thread: Re: [PATCH] Add compile domain
- Index(es):