Going from bind9 to djbdns

Kristian Vaaf vaaf at broadpark.no
Thu Dec 29 08:55:30 PST 2005


My friend, who hosts most of my stuff, is using djbdns. Probably for security and simplicity.

Anyway I thought I'd do the same. But I'm having serious difficulties finding a user-friendly howto.

I've basically picked stuff from here and there and put them together.

Would this be what I need to set up a djbdns equivalent to http://www.home.no/hedhnta/namedb?


Create users:



Run these commands:

mkdir /etc/tinydns
mkdir /etc/axfrdns
mkdir /etc/dnslog
mkdir /etc/dnscache
mkdir /etc/dnscache/root
mkdir /etc/dnscache/root/ip
mkdir /etc/dnscache/root/servers

Should the above directories be set as home for the users above?


Continue with:

dnscache-conf dnscache dnslog /etc/dnscache

touch /etc/dnscache/root/ip/
touch /etc/dnscache/root/ip/

echo > /etc/dnscache/root/servers/mydomain.lan
echo > /etc/dnscache/root/servers/187.168.192.in-addr.arpa

tinydns-conf tinydns dnslog /etc/tinydns

axfrdns-conf axfrdns dnslog /etc/axfrdns /etc/tinydns

ln -s /etc/dnscache /service
ln -s /etc/tinydns /service

svc -t /service/dnscache


Would djbdns now have created this file for me?

If so, can I skip this? If not, I take it I should:

vim /etc/tinydns/data

And type in:



cd /etc/tinydns


To allow my to be ns2.mydomain.com, I must do this?

vi /etc/axfrdns/tcp

And then type in:,AXFR="*"

I have a lot of domains. I want the ns2 to handle them all.
Is the wildcard "*" valid, or should I list them all?


cd /etc/axfrdns


As for my zone files, I take it I could cram all my domains into the data file?
How would that look?


That's it.

I'm hoping that once everything is up, my configuration will be stored in files
that I can back up and easily redeploy incase of an accident (similar to my current
namedb setup I posted above).

Thank you all, and happy new year!
Kristian Vaaf

More information about the freebsd-questions mailing list