Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm setting up my network to support IPv6. I have static IPv6 addresses assigned to each interface of my router, and radvd advertising different prefixes on each interface. The next step would be to get my dnscache (from djbdns) working on IPv6. Said dnscache has fefe's IPv6 patch applied, so I assume it should work with IPv6. However, I can't find any documentation online on how to make the patched dnscache listen on IPv6.

How do I configure tinydns and dnscache to listen on IPv6 too?

share|improve this question
Alternate answer: dnsmasq supports IPv6 natively and will also offer router advertisements. – Jeff Ferland Nov 16 '12 at 21:29
up vote 2 down vote accepted

You need two different tinydns processes if you want "IPv6 too": one binds IPv4 and the other IPv6. You can share the same "tinydns/root" directory between them, so they publish DNS records from the same database and you avoid duplication of data.

To bind IPv6 on the second instance, you just need to set the IP variable to the desired IPv6 address.

If you use daemontools to run djbdns, just do this:

# create two tinydns instances for IPv4 and IPv6
cd /var/service
svc -d tinydns
mv tinydns tinydns4
cp -r tinydns4 tinydns6
# update config for the IPv6 instance
echo 2a00:1450:4001:c02::6a > tinydns6/env/IP
# start both instances
svc -u tinydns*    
share|improve this answer
Thanks. I had figured that out through reading the source code and meant to come back here to post the answer, but you beat me to it. Another thing that stumped me: on Debian, Ubuntu, etc. the IPv6 patch is not included in the djbdns package. You have to install dbndns to get djbdns + fefe's IPv6 patch. – Christian Hudon Nov 27 '12 at 21:50
Yes, debian forked 'dbndns' with such patches when DJB made djbdns public domain. Consequently, Ubuntu got it too. Most operating systems however still use djbdns, with the relevant patches. – michele Mar 2 '13 at 0:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.