Re: where is /etc/hosts supposed to come from?
On 2009-12-28 23:41:38 +0000, Sam Morris wrote:
> Details in <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=316099>. I
> do wonder, however, why the system hostname has to appear in /etc/hosts
> at all? Programs that want to find it out can read /etc/hostname
> directly, after all. And wtf is 'localdomain' for, anyway?
Programs may need the FQDN, even without any network connection (for
instance, even local mail messages should have a Message-Id). And
/etc/hostname doesn't necessarily contain the FQDN.
Also, it is required that the FQDN be resolvable (but I wonder whether
this is useful in practice).
Vincent Lefèvre <email@example.com> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)