Unbound DNS keeps crashing every 2-3 mins.

Started by apoorv569, July 07, 2026, 07:25:14 PM

Previous topic - Next topic
I used to use Pi-Hole as my network wide ad-blocker and for local DNS so I can have some like nas.homeserver.lan for all my services I host at home, but I recently learned about Unbound DNS in OPNsense and switched to it, I use DNS over TLS with quad9 for my upstream DNS, I also have various blocklists enabled,
  • Abuse.ch - ThreatFox IOC
  • AdGuard List
  • EasyList
  • EasyPrivacy
  • Steven Black List
  • YoYo List
  • Ads Blocklist
  • NSFW Blocklist
  • Threat Intelligence Feeds
  • Fake - scams / fakes
  • Pop-Up Ads
  • Badware Hoster blocking
and I have various overrides mimicking what I had in Pi-Hole for all my services such as nas.homeserver.lan also added few of my domains for split horizon DNS so the traffic can stay local when I am at home. I also have a floating rule that blocks all port 53 traffic on all my interfaces/VLANs except WAN and and WG interfaces and I also have a destination NAT rule that forwards all port 53 traffic to 127.0.0.1 to force all traffic via Unbound basically.
Now everything works fine, except every few mins, IDK if it crashes or what but DNS resolutions keep failing and I see SERVFAIL error in the Unbound logs and the only solution to this is to restart the Unbound DNS service couple of times and the cycle continues of it crashing and me restarting it fix the issue.
I have attached some photos for my various settings and rules I have regarding this.

Try disabling the firewall rules for a try. It might be the case that you created a loop where Unbound tries to query itself when it makes upstream queries.
Intel N100, 4* I226-V, 2* 82559, 16 GByte, 500 GByte NVME, Leox LXT-010H-D

1100 down / 450 up, Bufferbloat A+

Quote from: meyergru on July 08, 2026, 02:52:38 PMTry disabling the firewall rules for a try. It might be the case that you created a loop where Unbound tries to query itself when it makes upstream queries.


You mean the floating rule that blocks all port 53 traffic for all interfaces? or the destination NAT rule?

Both could be blocking Unbound Traffic when slightly wrong.
Intel N100, 4* I226-V, 2* 82559, 16 GByte, 500 GByte NVME, Leox LXT-010H-D

1100 down / 450 up, Bufferbloat A+

Quote from: meyergru on Today at 11:02:41 AMBoth could be blocking Unbound Traffic when slightly wrong.

Without both, client might use their own DNS, which is not what I want. I want all devices to my unbound DNS.  Perhaps something I can tweak or filter out in the firewall rule to fix this?

I proposed to ,,try" disabling These rules in the absence of you having presented your exact rules, which in Turn prevents anyone from inspecting them for any potential errors.

If Unbound works without them being enabled, it would prove something is wrong and then we can start looking. So basically, this is just a quick and Dirty Test, not a permanent Solution.
Intel N100, 4* I226-V, 2* 82559, 16 GByte, 500 GByte NVME, Leox LXT-010H-D

1100 down / 450 up, Bufferbloat A+