Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

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

    Scheduled Pinned Locked Moved pfBlockerNG
    3 Posts 2 Posters 2.3k Views 2 Watching
    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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
          Privacy Policy · Cookie Policy