djbdns is a software package for running a secure, fast, and simple DNS server.
djbdns is not actually a program itself, but instead is a collection of programs
that can be used together to create a full caching, forwarding, and authoritative
DNS system - this post will show how to setup all the necessary programs on
SmartOS to mimic my home setup.
djbdns at home to give me:
- DNS lookups for my internal network:
- DNS caching daemon for quick look ups: it forwards to OpenDNS and caches the results
To install the suite of tools, run
pkgin in djbdns gmake
Note: the GNU version of
make isn't needed specifically, any implementation will suffice.
This will install a lot of programs, but the most important are:
tinydns: a DNS server daemon
dnscache: a recursive DNS caching daemon
The next step is to create the configuration directory which will be used later
mkdir -p /opt/local/etc/djbdns