Andriy Gapon <a...@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 
> modifications
> of resolv.conf: resolv_conf="/dev/null"
> The trick works but it causes some small noise when resolvconf is run, like
> cannot copy /dev/null to /dev/null.bak.
> I think that a nicer solution is to just set name_servers=127.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 
> directory)

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
-- 
Dag-Erling Smørgrav - d...@des.no
_______________________________________________
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to