Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    error: syntax error read /var/unbound/unbound.conf

    Scheduled Pinned Locked Moved pfBlockerNG
    3 Posts 2 Posters 1.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      sloopbun
      last edited by sloopbun

      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
      
      1 Reply Last reply Reply Quote 0
      • kiokomanK
        kiokoman LAYER 8
        last edited by

        copy here some lines before and after 108

        ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
        Please do not use chat/PM to ask for help
        we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
        Don't forget to Upvote with the 👍 button for any post you find to be helpful.

        1 Reply Last reply Reply Quote 0
        • S
          sloopbun
          last edited by sloopbun

          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...

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.