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

    Unbound: fatal error: Could not read config file: /unbound.conf

    Scheduled Pinned Locked Moved DHCP and DNS
    unboundunbound.conf
    4 Posts 3 Posters 3.5k 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.
    • M
      myman
      last edited by myman

      Hi there,
      I have a problem where I sometimes wake up to unbound not running any more. I'm having that problem for some years now. I occures from once a month to once a week. When I then go to Status -> Services, I can see unbound being stopped. Clicking on Start Service makes it work for some days/weeks again.

      Unbound log: unbound.txt

      unbound-checkconf returns unbound-checkconf: no errors in /usr/local/etc/unbound/unbound.conf

      What I don't understand is why unbound restarts every couple of minutes. My WAN interface is PPPoE and has it's custom reset a 5AM, maybe that triggers it.

      Here's my config:

      unbound.png

      Generally I have quite a simple setup, so no VPN, no QoS, no pfblocker. Also I use Pihole as my main DNS server and unbound only resolves the local hosts

      fireodoF GertjanG 2 Replies Last reply Reply Quote 0
      • fireodoF
        fireodo @myman
        last edited by

        @myman 1639990344205-unbound.png

        Disable that and you'll be fine.

        Regards,
        fireodo

        Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
        SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
        pfsense 2.8.0 CE
        Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

        M 1 Reply Last reply Reply Quote 1
        • M
          myman @fireodo
          last edited by

          @fireodo Thanks, I'll give it a try. I don't think I ever used that feature anyway

          1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan @myman
            last edited by

            @myman said in Unbound: fatal error: Could not read config file: /unbound.conf:

            unbound-checkconf returns unbound-checkconf: no errors in /usr/local/etc/unbound/unbound.conf

            Runing " unbound-checkconf" will check the default /usr/local/etc/unbound/unbound.conf, a file that exists, but it is just a demo file.
            The real "unbound.conf", the one unbound for pfSense is using, is here/var/unbound/

            Your unbound is restating every couple of minutes.
            If these restarts happen to often, then the start code can overlap with another startup. Then one of then can fail and you see the error shown.

            Disabling "DHCP registration" is one of the first things to try.

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

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