Djb Dns

From Biowiki
Jump to: navigation, search

djbdns

Installation (OS X)

curl -O http://matt.simerson.net/computing/dns/djbdns/djbdns-macosx-install-1.1.pl
perl djbdns-macosx-install-1.1.pl
/Library/StartupItems/DJBware/DJBware start

Configuration (OS X)

tinydns-conf daemon daemon /usr/local/tinydns1 128.32.140.7
axfrdns-conf daemon daemon /usr/local/axfrdns1 /usr/local/tinydns1 128.32.140.7
emacs /usr/local/axfrdns1/tcp

Add the following line above the "deny" statement: :allow,AXFR=""

cd /usr/local/axfrdns1; make; cd $owd
ln -s /usr/local/tinydns1 /service/
ln -s /usr/local/axfrdns1 /service/

Domain setup

cd /service/tinydns1/root/

./add-ns biowiki.org 128.32.140.7
./add-ns biowiki.org 128.32.140.6

./add-host anya.biowiki.org 169.229.195.139
./add-host wesley.biowiki.org 169.229.195.142
...

./add-alias biowiki.org 169.229.195.139
./add-alias www.biowiki.org 169.229.195.139
./add-alias mail.biowiki.org 169.229.195.142
...

./add-mx biowiki.org 169.229.195.142

make

Testing

dnsq a biowiki.org 128.32.140.7
dnsq a biowiki.org 128.32.140.6
dnsq a www.biowiki.org 128.32.140.7
dnsq a mail.biowiki.org 128.32.140.7
...

Configuring the second DNS server

As in configuration section above, but replace

  • tinydns1 with tinydns2
  • axfrdns1 with axfrdns2
  • 128.32.140.7 with 128.32.140.6 (where appropriate)

Then make.

Alternatively, just copy across the file /service/tinydns/root/data.cdb

-- Ian Holmes - 23 Aug 2005