Login | Sign up

May 18


0

Install tinydns (djbdns) and its requirements

Comments (1)

Tinydns (djbdns) is a DNS server designed for security. It has a smaller memory footprint than BIND. Learn how to install it and its prerequisites from source.

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:

  1. apt-get install gcc make

On Fedora/CentOS:

  1. yum install gcc make

Install Daemontools

Deamontools monitors running services. It handles starting, stopping and restarting services if it experiences problems.

  1. tar -xvzf daemontools-0.76.tar.gz
  2. cd admin/daemontools-0.76/
  3. echo "gcc -O2 -Wimplicit -Wunused -Wcomment -Wchar-subscripts -Wuninitialized -Wshadow -Wcast-qual -Wcast-align -Wwrite-strings -include /usr/include/errno.h" > src/conf-cc
  4. package/install

 

Install ucspi-tcp

Ucspi-tcp listens for network connections and runs specific programs for each incoming connection. It is similar to inetd.

  1. tar vxzf ucspi-tcp-0.88.tar.gz
  2. cd ucspi-tcp-0.88
  3. echo "gcc -O2 -include /usr/include/errno.h" > conf-cc
  4. make
  5. make setup check

 

Install tinydns (djbdns)

Tinydns is the actual DNS server package.

  1. tar -xvzf djbdns-1.05.tar.gz
  2. cd djbdns-1.05
  3. echo "gcc -O2 -Wimplicit -Wunused -Wcomment -Wchar-subscripts -Wuninitialized -Wshadow -Wcast-qual -Wcast-align -Wwrite-strings -include /usr/include/errno.h" > conf-cc
  4. make
  5. make setup check

Configure tinydns

  1. useradd -r -s /bin/false Gtinydns
  2. useradd -r -s /bin/false Gdnslog
  3. tinydns-conf Gtinydns Gdnslog /etc/tinydns <listen_ip>
  4. 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.

  1. svstat /service/tinydns

 

Next steps

From here you will need to create your DNS records. We will cover this in the next tutorial.


Comments


PronBELPBiorb1 year, 3 months ago0Reply

Nice site


Post a new comment

Note: Items marked * are required fields

Post a comment

You must login before you can do that.

If you don't have an account, register for free. It's completely private.

Why register

  • rate posts and comments
  • ask questions about posts
  • request new topics/tutorials
  • mark posts as favorites to easily find them again