djbdns (better alternative DNS to BIND)

http://www.lifewithdjbdns.org/

http://cr.yp.to/djbdns/frombind.html
Everything is there , and the best part is, it is not cryptic like DJB's page!

info on patches/addons: http://tinydns.org/

needed patches: http://qmail.org/top.html#patches

further info: http://djbdns.wolfhome.com/

Installation:

How to install daemontools

Create a /package directory:

     mkdir -p /package
     chmod 1755 /package
     cd /package

Download daemontools-0.76.tar.gz into /package. Unpack the daemontools package:

     gunzip daemontools-0.76.tar
     tar -xpf daemontools-0.76.tar
     rm daemontools-0.76.tar
     cd admin/daemontools-0.76
patch -p1 < /path/to/patch/daemontools-0.76.errno.patch

Compile and set up the daemontools programs:

     package/install

install ucspi-tcp:

Download the ucspi-tcp package. The latest published ucspi-tcp package is ucspi-tcp-0.88.tar.gz.

Unpack the ucspi-tcp package(to anywhere):

     gunzip ucspi-tcp-0.88.tar
     tar -xfz ucspi-tcp-0.88.tar
     cd ucspi-tcp-0.88

Compile the ucspi-tcp programs:

     make

As root, install the ucspi-tcp programs under /usr/local:

     make setup check
Install djbdns:
Download the djbdns package. The latest published djbdns package is djbdns-1.05.tar.gz. 

Unpack the djbdns package (unpack anywhere):

     # tar -xfvz djbdns-1.05.tar
     # cd djbdns-1.05

Compile the djbdns programs:

     # make

As root, install the djbdns programs under /usr/local:

     
    # make setup check

Create the users that will be needed to run DjbDNS:

# useradd -d /dev/null -s /bin/false dnslog
# useradd -d /dev/null -s /bin/false dnscache
# useradd -d /dev/null -s /bin/false tinydns

Configure dnscache and tinydns. If you are running bind, now would be a good time to shut it down ("service named stop" for you redhat users, or "killall -9 named" for everybody else)

# dnscache-conf dnscache dnslog /etc/dnscache 127.0.0.1
# tinydns-conf tinydns dnslog /etc/tinydns <YOUR NAME SERVER IP HERE>
# cd /service (Create it if it doesn't exsist)
# ln -s /etc/dnscache
# ln -s /etc/tinydns
(dnscache and tinydns should start up in a few seconds)

Set your local dns cache to be dnscache by editing

          #vi /etc/resolv.conf

search youdomainnamehere.com
nameserver 127.0.0.1

Tags: Linux