Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
17.7 Legacy Series
»
[SOLVED] Problem adding custom options to unbound
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] Problem adding custom options to unbound (Read 5279 times)
guest15512
Guest
[SOLVED] Problem adding custom options to unbound
«
on:
November 27, 2017, 12:22:53 pm »
Hi all,
I am trying to add "do-not-query-localhost: no" to unbound's custom options, but unbound daemon doesn't start. Returns the following error:
opnsense: /status_services.php: The command '/usr/local/sbin/unbound -c '/var/unbound/unbound.conf'' returned exit code '1', the output was '/var/unbound/unbound.conf:137: error: syntax error read /var/unbound/unbound.conf failed: 1 errors in configuration file [1511781603] unbound[94187:0] fatal error: Could not read config file: /var/unbound/unbound.conf'
Under /var/unbound/unbound.conf, I see this option outside server options ... Why? is it a bug?
On the other side, how can I configure a forwarder for unbound? I need to add something like:
forward-zone:
name: *
forward-addr: 10.1.5.23@5353
Thanks
Logged
guest15512
Guest
Re: Problem adding custom options to unbound
«
Reply #1 on:
November 28, 2017, 08:34:45 am »
Please, any tip for this?
Logged
franco
Administrator
Hero Member
Posts: 17473
Karma: 1587
Re: Problem adding custom options to unbound
«
Reply #2 on:
November 30, 2017, 03:20:48 pm »
The custom options are appended. If they are required to be in a specific block, that doesn't work then. We should consider to add support for the feature you are trying to set manually? If yes, please file a request here:
https://github.com/opnsense/core/issues
Cheers,
Franco
Logged
nallar
Newbie
Posts: 15
Karma: 4
Re: Problem adding custom options to unbound
«
Reply #3 on:
November 30, 2017, 06:25:58 pm »
unbound allows duplicate blocks, so this should work, hopefully.
Code:
[Select]
server:
do-not-query-localhost: no
forward-zone:
name: *
forward-addr: 10.1.5.23@5353
Logged
guest15512
Guest
Re: Problem adding custom options to unbound (SOLVED)
«
Reply #4 on:
December 17, 2017, 01:33:41 pm »
Ok, I have solved adding include files in advanced options.
Thanks for your help
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
17.7 Legacy Series
»
[SOLVED] Problem adding custom options to unbound