SOLVED Unbound auto start in a jail

Status
Not open for further replies.

guesst

Cadet
Joined
Jan 26, 2018
Messages
5
Hi,

I have freenas 11.1 and I am trying to install unbound in a jail. I can see that it's installed by default, I can create a config file in /var/unbound/unbound.conf (that's where unbound exec goes for it) but it's not having the script in rc.d to be able to start this as a service.

I have tried to remove unbound and install it again but no joy. Does anyone has a clue?

Thanks in advance!
 

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,739
You may want to use local_unbound which is included in FreeBSD base.

In the jail, run the command local-unbound-setup 8.8.8.8 8.8.4.4 (replace 8.8.x.x with your DNS resolvers). Then add it to rc.conf by running sysrc local_unbound_enable=YES.

At this point you can start unbound by running service local_unbound start.

Any additional configuration you want to add, recommend you put it in /etc/unbound/conf.d/ and not in the config files local-unbound-setup created as they may be overwritten.
 
Status
Not open for further replies.
Top