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

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

On Mon, 28 Dec 2009 07:50:10 +1100
Russell Coker <russell@coker.com.au> wrote:

> I've just done a debootstrap install of Lenny, and /etc/hosts doesn't
> exist. Where is /etc/hosts supposed to come from? 

Depending on the purpose of running debootstrap, it's either copied from
the external system or generated by the installation process. Something
like pbuilder copies the external /etc/hosts into the chroot.

> I think it should
> have something like the following (copied from an ancient Debian
> install).
>       localhost

Various tools need 'hostname -f' to operate, so there will need to be
more in /etc/hosts than that - which is where things can get complex. A
hostname of some kind is going to be needed.

Not sure if that would suit D-I ....


Neil Williams

Attachment: pgptHBB1m6p6I.pgp
Description: PGP signature

Reply to: