Wednesday, May 9, 2012


well here I want to explain how to install and setup djbdns on ubuntu server 10.10 64 bit on a single server.

1. first of all install all djbdns package

apt-get install djbdns

2. then create corresponding user accounts

useradd -r Gtinydns # for dns server
useradd -r Gdnscache # for caching
useradd -r Gdnslog # for logging
useradd -r Gaxfrdns # for zone transfer

3. make configurations

tinydns-conf Gtinydns Gdnslog /etc/tinydns
dnscache-conf Gdnscache Gdnslog /etc/dnscache is my ip address. you can change with your own.

4. create /etc/event.d/svscan and fill with

# svscan - daemontools



start on runlevel 2
start on runlevel 3
start on runlevel 4
start on runlevel 5

stop on runlevel 0
stop on runlevel 1
stop on runlevel 6

exec /usr/bin/svscanboot

5. touch /etc/dnscache/root/ip/
6. start the service

mkdir /etc/service
ln -s /etc/tinydns /etc/service
ln -s /etc/dnscache /etc/service
ln -s /etc/axfrdns /etc/service

7. add zones

cd /etc/tinydns/root

No comments:

Post a Comment