Tinydns
From Cheatsheet
TinyDNS is a replacement for BIND, if you're so inclined to use it. It's smaller and simpler and pretty tough, but less people have heard of it. It's largest irritant is that there is less support and it is generally irritating to install. You have to install small strange utilities first called daemontools and uscpitools, both of which you can get from http://cr.yp.to/djbdns.html
- Ubuntu doesn't really like you if you try to get daemontools going, because they got rid of the normal init system and so you're moderately screwed, but not totally
- You have to run a patch which the dude that wrote tinydns swears is Linux's fault, er, well, ok, no one else has found it.
Settings / Strangeties
- tinydns faces the outside world and tells folks if a DNS record points somewhere else, or the server it's running on, if it lives here, then it scoots it off to dnscache, which doesn't face the world, then that tells folks where the site is and let's apache or whoever do stuff like display a page
- you can read something more official here: http://cr.yp.to/djbdns/tinydns.html
Ubuntu 7.04
1. use the djbdns-installer, which will also install the patches, but it fails when it tries to add the entry to inittab, since there is none on later versions of ubuntu (after 6.10), so here's what you do (first enable multiverse repo)
vi /etc/apt/sources.list
uncomment the line that says something like this, and then add multiverse to the end of it, so you should end up with something like this:
deb http://us.archive.ubuntu.com/ubuntu/ edgy universe multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ edgy universe multiverse
save and run:
apt-get update apt-get install djbdns-installer say yes to stuff, it already put the patches in the right directory
create a new file so the new init system will start daemontools like a good little machine
vi /etc/event.d/svscan
add:
# svscan - daemontools -- http://www.froyn.net/blosxom/blosxom.cgi/2007/1/12 # # This service maintains an svscan process from the point the system is # started until it is shut down again. start on runlevel-1 start on runlevel-2 start on runlevel-3 start on runlevel-4 start on runlevel-5 start on runlevel-6 respawn /command/svscanboot
then run the start command:
start svscan
you should see some gobblie-gook about something starting, now run:
build-djbdns
just say ok to the defaults, but then it hangs, saying daemontools isn't config'd....hrm, I'll fix it later. You can re-attempt it by running:
dpkg -i /tmp/djbdns/djbdns_1.05-11_i386.deb
you'll see the error, I guess once it figures out daemontools is happy, it will work.
- how-to here https://store.dwalliance.com/news/view_article.html?article_id=7576a92a47743b7cf5956bd2e4e45539
- basically using the dnbdns-installer never really worked, you'll do much better to do the install at http://www.djbdnsrocks.org
Debian
- add these lines to your /etc/apt/sources.list
deb http://debian.osuosl.org/debian/ etch main contrib non-free deb-src http://debian.osuosl.org/debian/ etch main contrib non-free
- apt-get update
- apt-get install daemontools-installer
- apt-get install djbdns-installer
- configure tinydns per the how-to in http://www.djbdnsrocks.org
- frolic
