Security hosts file


Forum: Other Help Topics
Topic: Security hosts file
started by: Glacial

Posted by Glacial on Mar. 12 2006,11:59
I'm running into a problem while trying to replace the existing hosts file:

Step Actions
1 vist a web site and download the security hosts file.
2 edit new hosts in beaver to remove the bad localhosts line from it.
Use the menu tools->conversions->DOS to UNIX to fix end of lines.
Then save it to flash drive sdb1.
3 run bash scrip file that does the following:

cat /etc/hosts /mnt/sdb1/hosts >./hosts
sudo rm /etc/hosts
sudo cp ./hosts /etc/hosts

This does actually work.  It does replace the hosts file but you get the following
error on the cp line:

sudo: unable to lookup box via gethostbyname()

And it takes forever to run!  Like 20 or 30 seconds!  After the new hosts file is
in place the error goes away.  I would like to automate this so it happens on boot. But I need to get rid of the copy error first (and the horrid time delay).  Ideas?

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.