I want to run two instances of bind on a server, one for authoritative answers and one for recursive queries. MaraDNS can easily be configured to run multiple instances. You just add a line for each instance in /etc/default/maradns file, stating configuration file for that instance
What is the best way of doing this with bind in debian ? Copying the initscript and modifying paths seams like a hack.
I presume that you have these listening on different interfaces... you can make a second bind configuration directory (or at least a separate
named2.conf
or something) and a copy of/etc/init.d/bind9
, and use the-c
flag to/usr/sbin/named
in the "other" bind9 initscript to have the second copy of bind load the second configuration. You'll need to update the other stuff in the initscript like PIDFILE, and of make sure each one uses a different working directory in the bind configuration.