How to install djbdns / tinydns / dnscache in Debian Squeeze/Wheezy?

Sadly there is no deb packages provided in Squeeze, so we have to build them ourselves. Luckily on the other hand, in SID there are are deb packages available + sources so we will start from there:

 

First step is adding the SID source to /etc/apt/sources.list

deb-src http://cdn.debian.net/debian/ sid main non-free contrib

After that update your sources and the the packages:

aptitude update
aptitude install build-essential
cd /usr/src
apt-get source djbdns


After that there should be a folder called djbdns..... in /usr/src, change into that directory and run the following command:

dpkg-buildpackage -uc -rfakeroot

This will build the package, once that is done, go one diectory up and do a ls -l and you will find the generated .deb package. Install that and you are one.

You cannot comment on this entry