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

Re: Where is /etc/hosts in Debian?

> This file is created by the installation software when you "configure the
> network". This is why dpkg doesn't know about it. If no network
> configuration is made, or you answer no to the first question, the file is
> never created. The solution is your favorite editor.

 Perhaps netbase's postinst should do a

if [ ! -r /etc/hosts ]; then
	cat <<-EOF
	# /etc/hosts: Local hosts IP <--> DNS mapping file
	# Format:
	# [.. etc ..]
	EOF > /etc/hosts

 ...to aid semi-novice users who expect this file to exist.

Nicolás Lichtmaier.-

TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .

Reply to: