newbie question: Allowing recursion

Xavier Belanger nlnetlabs at
Tue Feb 21 12:08:12 UTC 2023


David Newman via Unbound-users <unbound-users at> wrote:

> (...) if anyone here has examples of how to run an authoritative
> and recursive server on the same box using unbound and NSD please
> let me know.

Not exactly what you're looking for, and probably not best practice,
but this should be close enough: I'm running both Unbound and BIND
on the same machine, the first one only on IPv4 and the second
one on IPv6.

Then Unbound is configured to use BIND in the IPv6 loopback
interface to get the data for the local zones:

# unbound.conf

        name: ""
        stub-addr: ::1 at 53
        name: ""
        stub-addr: ::1 at 53

# named.conf
options {
        version "restricted";
        directory "/srv/named";
        recursion no;
        listen-on { none; };
        listen-on-v6 { any; };

I'm assuming that you could get something similar with NSD.

Xavier Belanger

More information about the Unbound-users mailing list