| How to install tinydns / dnscache on Ubuntu Server 64 bit Version|
Jimmy Brake Mar 31, 2008
Installing djbdns on ubuntu linux server can be rather difficult if you are not familiar with the exact procedure. Here is how to apply the needed patches and install all the gcc stuff, The documentation at http://cr.yp.to/djbdns/install.html is very good and we are borrowing heavily from it and a previous article we wrote about installing daemontools on suse,
To start open a terminal on the ubuntu linux server you are planning to install tinydns on(we are assuming you have none of the djb software installed).
Become the root user.
sudo su -
Get the patches:
Create a /package directory:
mkdir -p /package
Install the things you will need to patch and compile daemontools
Download daemontools-0.76.tar.gz into /package. Unpack the daemontools package:
Compile and set up the daemontools programs:
# svscan - daemontools
start on runlevel 2
then (you might need to reboot)
To report success: (you cannot do this yet since there is no mail command on ubuntu)
mail email@example.com < /package/admin/daemontools/compile/sysdeps
move to the /user/src dir(this is just where I always do all the building and compiling that I need to do)
Download the ucspi-tcp package. The latest published ucspi-tcp package is ucspi-tcp-0.88.tar.gz.
Unpack the ucspi-tcp package:
tar xfvz ucspi-tcp-0.88.tar.gz
patch -p1 < /usr/local/djb/patches/ucspi-tcp-0.88.errno.patch
Compile the ucspi-tcp programs:
As root, install the ucspi-tcp programs under /usr/local:
make setup check
To report success: (we still have no mail program)
( echo 'First M. Last'; cat `cat SYSDEPS` ) | mail firstname.lastname@example.org
Replace First M. Last with your name.
move back to your /usr/src
Download the djbdns package. The latest published djbdns package is djbdns-1.05.tar.gz.
Unpack the djbdns package:
Compile the djbdns programs:
echo gcc -O2 -include /usr/include/errno.h > conf-cc
As root, install the djbdns programs under /usr/local:
At this point you should be able to configure it many different ways, oh and don't forget to open your firewall.
The link below will bring you back to the djb site for configuring djbdns ..
For configuring a name server ... (note don't install both servers on the same hardware)
For dnscache http://cr.yp.to/djbdns/run-cache-x.html
dnscache-conf Gdnscache Gdnslog /etc/dnscache 10.53.0.1ln -s /etc/dnscache /servicetouch /etc/dnscache/root/ip/10
Change 10.53.0.1 (10) to your servers ip address ... then test(either tinydns or dnscache)
dig @10.53.0.1 dwalliance.com
For configuring walldns
useradd -r Gwalldns
useradd -r Gdnslog
walldns-conf Gwalldns Gdnslog /etc/walldns 188.8.131.52
ln -s /etc/walldns .
svc -u /service/*
Page 1 of 1