Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 May 2020 10:07:28 +0200
From:      Jacques Foucry <jacques+freebsd@foucry.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: Local_unbound and (opn)vpn
Message-ID:  <20200504080728.GC73151@mithril.foucry.net>
In-Reply-To: <20200504054312.GA73151@mithril.foucry.net>
References:  <20200504054312.GA73151@mithril.foucry.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Le lundi 04 mai 2020 à 07:43:12 (+0200), Jacques Foucry à écrit:
> Dear All,


Well forgot my question. The solution was in this mail :-)

I was thinking duriong writing but not testing before sending it.

The conf.d/ is used for local configuration ans should not be changed where
local_unbound start.

Sorry to have diatrib you from your important job for such idiot question.
> 
> I need your advice and experience about local_unbound aشs vpn (in my case it's
> openvpn).
> 
> 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:
> 
> forward-zone:
>         name: "."
>         forward-addr: 192.168.1.113 # this ひs my pihole address
> forward-zone:
>         name: "cie.local"
>         forward-addr: 192.168.127.23
>         forward-addr: 192.168.127.46
> 
> 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
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
---end quoted text---

-- 
Jacques Foucry



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200504080728.GC73151>