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

    Unbound VERY frequent restarts (DNS Resolver Restarts)

    Scheduled Pinned Locked Moved DHCP and DNS
    12 Posts 5 Posters 1.7k 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.
    • W
      whoamib2
      last edited by

      Nothing that I do will stop these restarts, I'm running the latest version 2.4.4-RELEASE-p3 (amd64)
      As you can see my DNS resolver is restarting every 2-3 seconds non stop
      d02ddfc4-cf43-490e-ad0f-dbeee4b4ecb6-image.png

      I've disabled DHCP registration and it's still happening.
      6ef1b70c-677f-4555-a39e-e580a816ada2-image.png

      1 Reply Last reply Reply Quote 0
      • W
        whoamib2
        last edited by

        I finally figured out why my DNS resolver was restarting every 2 seconds, it was because my WAN interface had a IPv6 address which appears to be some kind of pfSense bug, as soon as I remove the IPv6 from the WAN interface it stopped restarting the Unbound resolver:

        As you can see below I changed it from DHCP6 to None:
        aba72dc2-e077-4562-9d57-3695d9de23cc-image.png

        1 Reply Last reply Reply Quote 1
        • J
          jahknem
          last edited by

          I can confirm this behavior. Also when having pfBlockerNG enabled while this bug occurs, unbound is not usable anymore.
          Turning off IPv6 also fixed it for me.
          Using pfSense in a VM with a Ryzen 3950x running 2.4.4-RELEASE-p3 (amd64)

          1 Reply Last reply Reply Quote 0
          • provelsP
            provels
            last edited by

            I don't see this. I have WAN IPv6 set to "DHCP6" and the current pfBNG-devel on Comcast. Were you using "Static IPv6"?

            Peder

            MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
            BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

            1 Reply Last reply Reply Quote 0
            • W
              whoamib2
              last edited by

              Nope I was using DHCP6 as stated above, and changing it to None resolved the issue I've been having for many months.

              1 Reply Last reply Reply Quote 0
              • T
                TimJacobs
                last edited by

                I can confirm the same behavior STILL on 2.4.5-RELEASE-p1.

                The DNS Resolver is one of the most frustrating parts of using a (Netgate) pfSense box; you can't use DHCP DNS registration or it restarts all the time, you can't use IPv6 or it restarts all the time. The perception of users on the network is that everything comes to a grinding halt (DNS timeouts) ☹

                T 1 Reply Last reply Reply Quote 0
                • T
                  TimJacobs @TimJacobs
                  last edited by

                  To extend a bit:

                  • WAN interface has DHCP6 enabled; DNS Resolver keeps working regardless of this setting
                  • Then, when you enable on a LAN interface the IPV6 "Track Interface" option, DNS resolver restarts roughly every two seconds.
                  • Disabling the "Track Interface" on the LAN interface (i.e. setting IPv6 back to 'none'), DNS resolver runs stable again.
                  M 1 Reply Last reply Reply Quote 0
                  • M
                    mcury Rebel Alliance @TimJacobs
                    last edited by

                    @TimJacobs I'm using 2.4.5p1, with DHCP6 WAN, and track interface in LAN, and I'm not facing this problem.
                    I don't use the DHCP DNS registration.

                    What if you set this option in the DNS resolver custom options?

                    server:
                    do-ip6:no

                    dead on arrival, nowhere to be found.

                    T 1 Reply Last reply Reply Quote 0
                    • T
                      TimJacobs @mcury
                      last edited by

                      @mcury Thanks for the suggestion. That does not prevent DNS Resolver of restarting frequently.

                      Possibly the continuous stream of RA's received on the WAN are related?
                      pfSense_IPv6_RA.jpg

                      It's the only thing I can relate to the resets every +-2 seconds; here is one excerpt of the debug logs for a single start/stop:
                      pfSense_DNSReset.jpg

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        mcury Rebel Alliance @TimJacobs
                        last edited by

                        @TimJacobs Unfortunately that was the only thing that crossed my mind that could be the culprit .. Not sure how to proceed now.
                        Let's wait for the community, or maybe the devs can help you further..

                        dead on arrival, nowhere to be found.

                        1 Reply Last reply Reply Quote 0
                        • M
                          mcury Rebel Alliance
                          last edited by

                          I've been reading about this, and the only workaround that I found is to disable the DHCP DNS registration feature..

                          More info about this:
                          https://forum.netgate.com/topic/115482/frequent-unbound-restarts

                          dead on arrival, nowhere to be found.

                          T 1 Reply Last reply Reply Quote 0
                          • T
                            TimJacobs @mcury
                            last edited by

                            @mcury Thanks for thinking along. I had already disabled that feature a while back. One of our DHCP clients was requesting a new lease every 2 seconds (ignoring the lease time) which already caused a lot of DNS resolver issues in the past. Here is the current DNS Resolver config:

                            pfSense0.JPG
                            pfSense.JPG

                            To be honest, without DNSSEC, without DHCP DNS registration, without IPv6 - this is like the most basic configuration you could possibly come up with for a DNS server. The fact that pfSense does not get this working properly has been cause of regret of purchasing an SG-3100 for months already. I really, really, really hope this DNS Resolver gets more stable & functional ASAP. The whole point of using DNS Resolver was moving our DNS server away from our Synology NAS to a "SMB grade network device" 😒

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