Unbound fatal error after enabling DHCP registration
On fully working pfSense 2.5.4 install, as soon as I enable DHCP registration on the DNS Resolver config page, unbound won't start after Apply Changes. Looked at the logs and this is what I found:
Something is messing up the path to
Unbound starts up fine from the command line with
unbound-control -c /var/unbound/unbound.conf start.
EDIT: Did some more digging and that's not the problem; the
/unbound.confpath is OK since unbound does
/var/unbound. The problem was my custom options,
include: /var/preserve/adblock/blocked_domains.conf. For some reason that include fails when DHCP registration is enabled but works otherwise.
Gertjan last edited by
For some reason that include fails when DHCP registration is enabled but works otherwise.
That some reason is the chroot.
Whatever happens, unbounc can not go outside of the chroot. It 'lives' in /var/unbound/ - that is it's "/" or root.
So "/var/preserve/" is inaccessible, except if that path lives here : /var/unbound/preserve/adblock/blocked_domains.conf
This functionality restarts unbound when a new lease is registered.
Right, but it only breaks when DHCP Reg is enabled! So somehow it's escaping from the