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

    DNS dies periodically (due to unbound crashing?)

    Scheduled Pinned Locked Moved DHCP and DNS
    2 Posts 2 Posters 583 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.
    • C
      CyberMinion
      last edited by CyberMinion

      Hi,
      On an sg-1100 running 21.05-RELEASE (arm64) (on FreeBSD 12.2-STABLE) I occasionally have the DNS service just...quit. Be forewarned, my DNS setup is a little convoluted, but wonder if this issue is actually unrelated to that. As you can see below, unbound seems to keep restarting every now and then. The log shows this being a regular thing, but here's just a sample:

      a73612d9-da3a-4c00-b508-9c2ce3b7e1c6-image.png

      When I notice the DNS service drop out and go check logs, I see "notice: Restart of unbound 1.12.0." so I suspect this is either the cause (though I'm not sure how) or a symptom.

      That said, I did mention a convoluted DNS setup, and I should explain that. I have two subnets behind the sg-1100. One of those zones has everything using pfSense's DNS Resolver directly. The other subnet, however, has a PiHole instance, and the pfSense's DHCP config tells devices in that subnet to use the PiHole as their DNS server. PiHole then filters results, and afterwards, passes on requests to pfSense. On pfSense, pfBlockerNG is running for both subnets, doing filtering before finally passing the requests upstream when needed to a pair of defined public DNS severs.

      Anyway, I'm seeing DNS dropping out on both subnets, which implies the PiHole mess is irrelevant. When DNS service drops out, I can wait about 20 minutes for it to come back by itself, or I can reboot pfSense, which immediately restores the DNS resolver. I have not tried killing/restarting individual services running on pfSense.

      Any suggestions?

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

        @cyberminion said in DNS dies periodically (due to unbound crashing?):

        pfBlockerNG is running for both subnets

        pfBlockerNG can restart unbound regularly. Do a manual reload of pfBlockerNG and see for yourself.

        This option :

        3c497c02-4cf0-48c5-b677-fd5012978728-image.png

        will also restart unbound when a new DHCP lease comes in.
        Although, checking that option and using pfBlockerNG will make it complaining about it :

        ceb9c807-4d57-4fe8-a6dc-93fdd7cc6066-image.png

        That is : the Python mode doesn't 'like' this "DHCP Registration" setting, so, if set, it (pfBlockerNG ) will default to the older "unbound mode" This mode uses more resources and is slower to restart.

        @cyberminion said in DNS dies periodically (due to unbound crashing?):

        when needed to a pair of defined public DNS severs.

        Are you sure ?
        unbound should be used as a resolver. With "public DNS" you mean you're forwarding ?

        @cyberminion said in DNS dies periodically (due to unbound crashing?):

        When DNS service drops out, I can wait about 20 minutes for it to come back by itself

        This is the real issue : it did not crash, it was just restarting, and this shouldn't take that long.
        Or it does so on your system.
        Bring your system back to default settings (remove or de activate pfBlockerNG and other packages) and add them back again step by step. Restart unbound with the GUI :

        3bc2cdff-5f81-4157-80d9-457f7b1bfef4-image.png

        and check with the unbound logs how long it took.
        Do this for each step, each feed you add to pfBlockerNG.

        The Firewall > pfBlockerNG > Update : Reload > All
        also shows you how much time it took for unbound to restart :

        19ee308d-b97a-45ac-b79b-a36072585ff3-image.png

        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 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.