Install tinydns (djbdns) and its requirements
In order to install almost any program from source, you will first need to install gcc and make. How you install these will depend on your Linux distribution.
On Debian/Ubuntu:
apt-get install gcc make
On Fedora/CentOS:
yum install gcc make
Install Daemontools
Deamontools monitors running services. It handles starting, stopping and restarting services if it experiences problems.
tar -xvzf daemontools-0.76.tar.gzcd admin/daemontools-0.76/echo "gcc -O2 -Wimplicit -Wunused -Wcomment -Wchar-subscripts -Wuninitialized -Wshadow -Wcast-qual -Wcast-align -Wwrite-strings -include /usr/include/errno.h" > src/conf-ccpackage/install
Install ucspi-tcp
Ucspi-tcp listens for network connections and runs specific programs for each incoming connection. It is similar to inetd.
tar vxzf ucspi-tcp-0.88.tar.gzcd ucspi-tcp-0.88echo "gcc -O2 -include /usr/include/errno.h" > conf-ccmakemake setup check
Install tinydns (djbdns)
Tinydns is the actual DNS server package.
tar -xvzf djbdns-1.05.tar.gzcd djbdns-1.05echo "gcc -O2 -Wimplicit -Wunused -Wcomment -Wchar-subscripts -Wuninitialized -Wshadow -Wcast-qual -Wcast-align -Wwrite-strings -include /usr/include/errno.h" > conf-ccmakemake setup check
Configure tinydns
useradd -r -s /bin/false Gtinydnsuseradd -r -s /bin/false Gdnslogtinydns-conf Gtinydns Gdnslog /etc/tinydns <listen_ip>ln -s /etc/tinydns /service/tinydns
Replace <listen_ip> with the IP address of the interface you want tinydns to listen on.
To check that tinydns is running, wait 5 seconds and run the following command. It should output a pid and a length in time that it has been running.
svstat /service/tinydns
Next steps
From here you will need to create your DNS records. We will cover this in the next tutorial.




djbdns

Comments
Nice site