error: syntax error read /var/unbound/unbound.conf
-
can anyone advise how to troubleshoot this error found in the syslog? I had to remove
server:include: /var/unbound/pfb_dnsbl.*conf
from the DNS Resolver Custom Options because I have evidently broken something with adding blocklists.Sep 14 15:30:32 pfSense php-fpm[736]: /services_unbound_acls.php: The command '/usr/local/sbin/unbound -c /var/unbound/unbound.conf' returned exit code '1', the output was '/var/unbound/unbound.conf:108: error: syntax error read /var/unbound/unbound.conf failed: 1 errors in configuration file [1568446232] unbound[27161:0] fatal error: Could not read config file: /var/unbound/unbound.conf. Maybe try unbound -dd, it stays on the commandline to see more errors, or unbound-checkconf'
/root: unbound-checkconf unbound-checkconf: no errors in /usr/local/etc/unbound/unbound.conf
line 108 of '/var/unbound/unbound.conf' is blank
root: /usr/local/sbin/unbound -c /var/unbound/unbound.conf [1568447034] unbound[157:0] error: bind: address already in use [1568447034] unbound[157:0] fatal error: could not open ports
-
copy here some lines before and after 108
-
I had already rebooted once, but I rebooted again, just as I was getting ready to do a full reinstall and was able to add back my custom options and dns is working. The 'dnsbl' line happens to fall on line 108, so I guess it was still cached?
I think everything is normal now... having been struggling with this all afternoon...
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.