Re: Where is /etc/hosts in Debian?
- To: Dale Scheetz <dwarf@polaris.net>
- Cc: debian-devel@lists.debian.org
- Subject: Re: Where is /etc/hosts in Debian?
- From: Nicolás Lichtmaier <nick@feedback.net.ar>
- Date: Sun, 23 Nov 1997 18:22:39 -0300
- Message-id: <19971123182239.43429@newton>
- In-reply-to: <Pine.LNX.3.96.971122005853.3693A-100000@dwarf.polaris.net>; from Dale Scheetz on Sat, Nov 22, 1997 at 01:01:55AM -0500
- References: <Pine.GSO.3.96.971122090432.13480B-100000@kurango> <Pine.LNX.3.96.971122005853.3693A-100000@dwarf.polaris.net>
> 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
fi
...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: