3 useradd -r -g djbdns -d / -s /bin/false dnslog
4 useradd -r -g djbdns -d / -s /bin/false tinydns
5 useradd -r -g djbdns -d / -s /bin/false dnscache
7 >>> Configure and run dnscache:
8 dnscache-conf dnscache dnslog /etc/sv/dnscache [myip]
9 ln -s /etc/sv/dnscache /service
11 >>> Configure and run tinydns:
12 tinydns-conf tinydns dnslog /etc/sv/tinydns myip
13 ln -s /etc/sv/tinydns /service
15 Note: Change myip to your public ip. If [myip] omitted dnscache will run on localhost.
16 More help can be found at http://cr.yp.to/djbdns.html
22 if [ -e /service/dnscache ]; then
25 echo Stopping dnscache ... done.
28 if [ -e /service/tinydns ]; then
31 echo Stopping tinydns ... done.
41 if [ -e /service/dnscache ]; then
42 echo Restarting dnscache ... done.
43 svc -t /service/dnscache
45 if [ -e /service/tinydns ]; then
46 echo Restarting tinydns ... done.
47 svc -t /service/tinydns
49 if [ -e /service/axfrdns ]; then
50 echo Restarting axfrdns ... done.
51 svc -t /service/axfrdns