local-unbound-setup: Disable the libc subscriber.

This is the correct way to prevent resolvconf from updating resolv.conf.

Reviewed by:	cy
Differential Revision:	https://reviews.freebsd.org/D39262
This commit is contained in:
Dag-Erling Smørgrav
2023-03-24 21:45:24 +01:00
parent b22fccad8c
commit 9b20ab1e1e
@@ -195,7 +195,7 @@ do_not_edit() {
gen_resolvconf_conf() {
local style="$1"
do_not_edit
echo "resolv_conf=\"/dev/null\" # prevent updating ${resolv_conf}"
echo "libc=\"NO\""
if [ "${style}" = "dynamic" ] ; then
echo "unbound_conf=\"${forward_conf}\""
echo "unbound_pid=\"${pidfile}\""