Previous Section  < Day Day Up >  Next Section

Recipe 24.7. Installing djbdns

24.7.1 Problem

You want to use djbdns to build a DNS server, and you need to know what to install and how to install it. There seem to be a lot of different pieces, and it's a bit confusing.

24.7.2 Solution

You need three source tarballs: daemontools, uscpi-tcp, and djbdns. Get these from the djbdns home page at http://cr.yp.to/djbdns.html.

After installation, you're ready to start configuration, which is covered in the following recipes.

To install daemontools, follow these steps:

# mkdir -m 1755 /package

# cd /package

Download and unpack the latest daemontools tarball into /package, as follows:

# tar xzvpf daemontools-0.76.tar.gz

# cd admin/daemontools-0.76

To compile and set up the daemontools programs, use:

# package/install

Next, fetch the latest uspci-tcp tarball and install it:

# cd /usr/sources

# tar xzvf ucspi-tcp-0.88.tar

# cd ucspi-tcp-0.88

# make

# make setup check

It puts itself into /usr/local/bin.

Finally, fetch and install djbdns:

# tar xzvf djbdns-1.05.tar.gz

# cd  djbdns-1.05

# make

# make setup check

It puts itself into /usr/local/bin.

Now read the following recipes to learn how to use djbdns.

24.7.3 Discussion

daemontools is a suite of utilities for managing services. In these recipes, you'll see supervise, multilog, and svstat. supervise automatically restarts services if they die unexpectedly. multilog is a nice log manager that automatically rotates log data, so that logs don't consume your disk space and you always have fresh data. svstat tells you the status of a service.

uspci-tcp takes the place of inetd and xinetd, for running djbdns and other Dan Bernstein programs. You don't have to do anything other than install it.

djbdns is a suite of DNS programs. This chapter contains recipes for dnscache, the caching/resolving DNS server, and tinydns, the authoritative DNS server.

24.7.4 See Also

    Previous Section  < Day Day Up >  Next Section