[toaster] djb dnscache option

2006-04-11 Thread Rick Macdougall

Hi,

Since I have it scripted already

--- cut here ---
cd /var/src/tar
# dnscache
wget http://cr.yp.to/djbdns/djbdns-1.05.tar.gz

cd /var/src
tar -xzvf tar/djbdns-1.05.tar.gz
cd djbdns-1.05

#below is only needed for Linux machines
echo gcc -O2 -include /usr/include/errno.h  conf-cc

make
make setup check

/usr/sbin/useradd dnscache
/usr/sbin/useradd dnslog

dnscache-conf dnscache dnslog /etc/dnscache

echo 6000  /etc/dnscache/env/CACHESIZE
echo 6500  /etc/dnscache/env/DATALIMIT

ln -s /etc/dnscache /service

--- cut here ---

Regards,

Rick


Re: [toaster] djb dnscache option

2006-04-11 Thread Bill Shupp
Rick Macdougall wrote:
 Hi,
 
 Since I have it scripted already
 
 --- cut here ---
 cd /var/src/tar
 # dnscache
 wget http://cr.yp.to/djbdns/djbdns-1.05.tar.gz
 
 cd /var/src
 tar -xzvf tar/djbdns-1.05.tar.gz
 cd djbdns-1.05
 
 #below is only needed for Linux machines
 echo gcc -O2 -include /usr/include/errno.h  conf-cc
 
 make
 make setup check
 
 /usr/sbin/useradd dnscache
 /usr/sbin/useradd dnslog
 
 dnscache-conf dnscache dnslog /etc/dnscache
 
 echo 6000  /etc/dnscache/env/CACHESIZE
 echo 6500  /etc/dnscache/env/DATALIMIT
 
 ln -s /etc/dnscache /service
 
 --- cut here ---

Thanks!

Bill


Re: [toaster] djb dnscache option

2006-04-11 Thread Alex Dean

On Apr 11, 2006, at 4:47 PM, Rick Macdougall wrote:


dnscache-conf dnscache dnslog /etc/dnscache


Do you need a 'cp' at the beginning of this line?
.





Re: [toaster] djb dnscache option

2006-04-11 Thread Bill Shupp
Alex Dean wrote:
 On Apr 11, 2006, at 4:47 PM, Rick Macdougall wrote:
 
 dnscache-conf dnscache dnslog /etc/dnscache
 
 Do you need a 'cp' at the beginning of this line?

No.  dnscache-conf is a program.

Bill


Re: [toaster] djb dnscache option

2006-04-11 Thread Alex Dean


On Apr 11, 2006, at 4:59 PM, Bill Shupp wrote:


Alex Dean wrote:

On Apr 11, 2006, at 4:47 PM, Rick Macdougall wrote:


dnscache-conf dnscache dnslog /etc/dnscache


Do you need a 'cp' at the beginning of this line?


No.  dnscache-conf is a program.

Bill


Got it.  Looked like a config file to me.
.





Re: [toaster] djb dnscache option

2006-04-11 Thread Rick Macdougall

Alex Dean wrote:

On Apr 11, 2006, at 4:47 PM, Rick Macdougall wrote:


dnscache-conf dnscache dnslog /etc/dnscache


Do you need a 'cp' at the beginning of this line?



As Bill said, no, it's a program.

But I didn't include instructions for modifying /etc/resolv.conf to use

nameserver 127.0.0.1

and to stop Bind from running (or alternatively from listening on 127.0.0.1)

Regards,

Rick