Quick DJBdns setup on FreeBSD
DNS server:
install packages
-djbdns
-ucspi-tcp
echo svscan_enable=yes >> /etc.rc.conf
create /var/service
tinydns-conf bind bind /usr/local/etc/tinydns server ip address
cd /usr/local/etc/tinydns/root/
modify data
make
ln -s /usr/local/etc/tinydns /var/service/
/usr/local/etc/rc.d/svscan start
DNS cache:
install packages
-djbdns
-ucspi-tcp
echo svscan_enable=yes >> /etc.rc.conf
create /var/service
dnscache-conf bind bind /usr/local/etc/dnscache
cd /usr/local/etc/dnscache/root/servers/
echo dns server ip address > internal domain name (;if used, echo 172.16.10.10 > example.lan)
echo dns server ip address > external domain name (;echo 172.16.10.10 > example.com)
add to @;
217.146.128.77
193.238.157.110
212.7.160.13
195.226.7.66
213.161.0.90
193.138.173.218
82.102.0.9
213.144.148.130
193.93.167.222
217.173.157.225
192.83.249.100
213.145.82.34
cd ../ip
touch local IP range (;touch 172.16)
cd ../../env
echo server ip address > IP
ln -s /usr/local/etc/dnscache /var/service/
/usr/local/etc/rc.d/svscan start