Date: Mon, 13 Nov 2017 14:55:24 +0100 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no> To: Andriy Gapon <avg@FreeBSD.org> Cc: freebsd-net@FreeBSD.org Subject: Re: local_unbound, resolvconf, vpn Message-ID: <86a7zq8er7.fsf@desk.des.no> In-Reply-To: <5689438f-6734-6b57-b700-d70ee2b7578a@FreeBSD.org> (Andriy Gapon's message of "Wed, 8 Nov 2017 13:38:28 %2B0200") References: <5689438f-6734-6b57-b700-d70ee2b7578a@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Andriy Gapon <avg@FreeBSD.org> writes: > First, there is now an automatically generated /etc/resolvconf.conf. > It has the following comment: > # This file was generated by local-unbound-setup. > # Modifications will be overwritten. > Is that comment really true? > What and when is going to overwrite my modifications? service local_unbound setup > Next. The auto-generated resolvconf.conf has this trick to prevent modifi= cations > of resolv.conf: resolv_conf=3D"/dev/null" > The trick works but it causes some small noise when resolvconf is run, li= ke > cannot copy /dev/null to /dev/null.bak. > I think that a nicer solution is to just set name_servers=3D127.0.0.1: No, if we let resolvconf overwrite resolv.conf then we lose "options edns0". What it boils down to is that resolvconf is a piece of shit and the only way to get it to do what we want would be to write a special backend for the local_unbound case (see /libexec/resolvconf). > unbound: [7457:0] error: cannot chdir to directory: (No such file or dir= ectory) This error is emitted by the configuration parser when it encounters the "directory" directive in the "server" section and fails to chdir to the specified directory, but there should be a name there. Can you do: # service local_unbound stop # mv /var/unbound /var/unbound.orig # mtree -deU -f /etc/mtree/BSD.var.dist # service local_unbound setup # diff -ru /var/unbound.orig /var/unbound and tell me if there are any differences? DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86a7zq8er7.fsf>