[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: where is /etc/hosts supposed to come from?

OoO En  cette nuit nuageuse du  mardi 29 décembre 2009,  vers 00:41, Sam
Morris <sam@robots.org.uk> disait :

> 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?

A common way to get hostname is to request node name through uname, then
asks  for a resolution  of this  name. If  the name  does not  appear in
/etc/hosts, this will lead to a DNS resolution and without network, this
can take a long time.
panic("kmem_cache_init(): Offsets are wrong - I've been messed with!");
	2.2.16 /usr/src/linux/mm/slab.c

Attachment: pgpFPfmd9sxR4.pgp
Description: PGP signature

Reply to: