Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Aug 2018 16:51:19 +0100
From:      Matt Smith <matt.xtaz@gmail.com>
To:        Stefan Lambrev <cheffo@freebsd-bg.org>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Strange unbound behaviour
Message-ID:  <20180824155119.GA66993@gmail.com>
In-Reply-To: <CAHtsMQ1JDWoe3O4PaU9VF%2Bw0-1Pz6eq3NmnT3UPj6QHebciLWA@mail.gmail.com>
References:  <CAHtsMQ1JDWoe3O4PaU9VF%2Bw0-1Pz6eq3NmnT3UPj6QHebciLWA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Aug 24 16:28, Stefan Lambrev wrote:
>Hi,
>
>I have two DNS servers up and running for my home setup. But for some
>reason both stop resolving at some point.
>
>1st instance is with unbbound from ports, second from base system but
>configs are very similar:
>
># cat /usr/local/etc/unbound/unbound.conf
>        directory: /usr/local/etc/unbound
>        chroot: /usr/local/etc/unbound
>
>If I restart the service it works again...
>

In man(5) unbound.conf it says this:

# make sure unbound can access entropy from inside the chroot.
# e.g. on linux the use these commands (on BSD, devfs(8) is used):
#      mount --bind -n /dev/random /etc/unbound/dev/random

I can see that you use a chroot. I'm wondering if you've not mounted a /dev/random into the chroot and maybe it's running out of free entropy for something and blocking. This might explain why it works for a while and then fails.

I do this:

In /etc/fstab:

devfs                   /usr/local/etc/unbound/dev      devfs   rw      0       0

In /etc/rc.conf:

devfs_set_rulesets="/usr/local/etc/unbound/dev=devfsrules_unbound"

In /etc/devfs.rules:

[devfsrules_unbound=10]
add hide
add path random unhide

Might help?

-- 
Matt



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