The issue I am facing:
I've been running a raspberry pi for almost a year now, with unbound. Yesterday I did an apt update/upgrade and things were still working fine, but then this morning, DNS started failing and returning SERVFAIL. I spent about two hours following forums with similar issues, double checking configurations, re-installing packages, updating pihole, nothing solved it. But then when I turned on level 4 logging on unbound, it magically started working! I then turned level 4 logging off and it continued to work, so I let it go.
But now this evening it started failing again. Turning on level 4 logging did not solve it this time, so I think that was just a coincidence.
I'm not using DNSSEC
Debug token: https://tricorder.pi-hole.net/3g3MMuvA/
@rdwebdesign I did a pihole -r and it now shows the network enterface as enxb827xxxxxxxx. Though I'm using the "Recomended" setting of only allowing local requests, and not binding to the network interface.
During the reconfigure, it asked for the upstream provider, and if I choose any of them, things work again. However, they fail instantly when only using the setting for unbound: Custom 1 127.0.0.1#5335
Also, I turned off the Conditional forwarding, as I read that that could cause a loop. So just to be safe, I turned it off for now. But that hasn't seemed to affect my issue.
After three or four days of banging my head, I stumbled across a thread that already talked about this issue: WARNING: Raspbian October 2021 release bullseye + unbound, and the devs know about it. But seems there is a reluctance to put a warning or other user notification about it.
It appears that when I did my apt update/upgrade, it borked up the resolvconf.conf file and created another file that together prevent unbound from working properly. So yes, the issue still exists.
After reading that thread several more times, and just for good measure, I also executed the command to replace openresolv with standard resolvconf as well. This should prevent future unintended restarts of unbound.