Local_unbound and (opn)vpn

Jacques Foucry jacques+freebsd at foucry.net
Mon May 4 05:43:20 UTC 2020

Dear All,

I need your advice and experience about local_unbound aشs vpn (in my case it's

When local_unbound it use the /var/unbound/forward.conf file to learn the DNS
server to query for the zone ".".

When I launch the vpn (all the internet traffic DOES NOT GO THROUG THE VPN), I
need to forward query for the compagny internal zone to the internal DNS.

I can modify the file /var/unbound/forward.conf like this:

        name: "."
        forward-addr: # this ひs my pihole address
        name: "cie.local"

And restart local_unboound and it's works.

But when I restart mや laptop, the start process of local_unbound is to
rewrite the forward.conf file and my add is overwrite.

There is a conf.d folder inside /var/unbound. I suppose I can use it in order
to make my forward zone persistant. I don't find anything about the format of
those files I can put in (may be the same as forward.conf) of the name of the
file (cie.conf in this case?).

So I need your experience and advice.

Thanks in advance and take care.

Jacques Foucry

More information about the freebsd-questions mailing list