Djbdns

From OpenBSD-Wiki

Jump to: navigation, search
Written for: OpenBSD Version ?

Before installing djbdns, you must have daemontools and ucspi-tcp installed.

Contents

[edit] Installation

cd /usr/src
wget http://cr.yp.to/djbdns/djbdns-1.05.tar.gz
tar xpzf djbdns-1.05.tar.gz
cd djbdns-1.05
make
make setup check

chmod 0755 /usr/local /usr/local/bin

The chmod is because hier.c is modifying /usr/local and /usr/local/bin to 02755 and /etc/security then complaints.

[edit] Configuration

[edit] dnscache:

groupadd -g 5000 nofiles
useradd -u 5010 -g nofiles -d /var/dnscache -s /sbin/nologin dnscache
useradd -u 5011 -g nofiles -d /var/dnscache/log -s /sbin/nologin dnslog

dnscache-conf dnscache dnslog /var/dnscache 192.168.0.1
cd /var/dnscache
dd if=/dev/srandom of=seed bs=128 count=1
chown -R dnscache:nofiles .
chown -R dnslog log
touch /var/dnscache/root/ip/192.168.0

ln -s /var/dnscache /service

Where 192.168.0.1 is the IP address where you will run the DNS cache. (with dnscache-conf)

You allow the entire 192.168.0 network to access your DNS cache. (with touch)


[edit] Links


[edit] References

Personal tools