[Unbound-users] BINDs views in unbound

Artis Caune artis.caune at gmail.com
Thu Mar 26 08:08:18 UTC 2009


we run public cache servers for our customers and our internal servers.
we are using binds views (internal/external) to hide unroutable
resource records from public in some zones.

I can achieve bind views functionality in unbound with two unbound daemons:

- firs unbound daemon is listening on all interfaces and has no
local-zone/local-data entries.

- second unbound is listening on localhost and different port:
        port: 54
        local-zone: myzone.lv transparent
        include: /usr/local/etc/unbound/zone-myzone.lv

- redirect internal hosts to localhost (FreeBSD pf):
    table <int-dns> const {,,, ... }
    rdr pass proto udp from <int-dns> to port 53 -> port 54
    rdr pass proto tcp from <int-dns> to port 53 -> port 54

If query comes from our internal servers, it is redirected to second
unbound instance where it checks local-data and if no entry is found,
it is resolved as usual.
If query comes from public hosts, they don't see our rfc1918 records.

Is this kind of setup okay? Maybe it can be done with one unbound daemon?

Artis Caune

<----. CCNA | BSDA
<----' didii FreeBSD

More information about the Unbound-users mailing list