OPNsense Forum

English Forums => 26.1 Series => Topic started by: rolsch on February 09, 2026, 11:51:52 AM

Title: 26.1.1: Unbound: Option "query forwarding"->"Unexpected error, check log for."
Post by: rolsch on February 09, 2026, 11:51:52 AM
After updating to 26.1.1 today,
I switched from ISC DHCP to DNSMASQ (where I mainly use static IP‑MAC mappings).
After that, I migrated the firewall rules to Rules (new).
So far, so good.

Now I've noticed a strange behavior:
As soon as I enable the option "Use system nameservers" under Services → Unbound → Query Forwarding,
a red warning popup appears saying "Unexpected error, check log for details" along with the message "There are no system nameservers configured. Please do so in System: Settings: General."

However, I do have four DNS servers configured there, and two of them have a WAN interface assigned.

If I disable this option, Unbound uses the ISP DNS servers and
I can switch back and forth between the nav-points:

Services → Unbound DNS → Query Forwarding 
and

Services → Unbound DNS → DNS over TLS

without any error.

If I enable the option again,
the error message appears, but Unbound still uses the DNS server list.
It also seems that this option becomes active immediately after checking the box,
even without explicitly saving — restarting Unbound is enough.

I believe that in version 25.x.x I had this option enabled without any error.
Title: Re: 26.1.1: Unbound: Option "query forwarding"->"Unexpected error, check log for."
Post by: rolsch on February 09, 2026, 02:11:50 PM
- also diese Meldung bekomme ich nicht weg...
Title: Re: 26.1.1: Unbound: Option "query forwarding"->"Unexpected error, check log for."
Post by: rolsch on February 10, 2026, 08:23:08 PM
I have deleted, saved the dns entrys in the System: Settings: General.
Restarted the system and enter again the dns-server in System: Settings: General.

But the DANGER message pop up in the two sections:

Services → Unbound DNS → Query Forwarding
Services → Unbound DNS → DNS over TLS

So what the heck is wrong...?????
Title: Re: 26.1.1: Unbound: Option "query forwarding"->"Unexpected error, check log for."
Post by: franco on February 11, 2026, 09:45:06 AM
Can you paste the PHP error from System: Firmware: Reporter here?


Thanks,
Franco
Title: Re: 26.1.1: Unbound: Option "query forwarding"->"Unexpected error, check log for."
Post by: rolsch on February 11, 2026, 09:44:06 PM
sure:

[11-Feb-2026 21:42:16 Europe/Brussels] TypeError: Cannot assign stdClass to property OPNsense\Mvc\Dispatcher::$returnedValue of type array|string|null in /usr/local/opnsense/mvc/app/library/OPNsense/Mvc/Dispatcher.php:166
Stack trace:
#0 /usr/local/opnsense/mvc/app/library/OPNsense/Mvc/Router.php(156): OPNsense\Mvc\Dispatcher->dispatch(Object(OPNsense\Mvc\Request), Object(OPNsense\Mvc\Response), Object(OPNsense\Mvc\Session))
#1 /usr/local/opnsense/mvc/app/library/OPNsense/Mvc/Router.php(139): OPNsense\Mvc\Router->performRequest(Object(OPNsense\Mvc\Dispatcher))
#2 /usr/local/opnsense/www/api.php(36): OPNsense\Mvc\Router->routeRequest('/api/unbound/se...', Array)
#3 {main}
[11-Feb-2026 21:42:33 Europe/Brussels] TypeError: Cannot assign stdClass to property OPNsense\Mvc\Dispatcher::$returnedValue of type array|string|null in /usr/local/opnsense/mvc/app/library/OPNsense/Mvc/Dispatcher.php:166
Stack trace:
#0 /usr/local/opnsense/mvc/app/library/OPNsense/Mvc/Router.php(156): OPNsense\Mvc\Dispatcher->dispatch(Object(OPNsense\Mvc\Request), Object(OPNsense\Mvc\Response), Object(OPNsense\Mvc\Session))
#1 /usr/local/opnsense/mvc/app/library/OPNsense/Mvc/Router.php(139): OPNsense\Mvc\Router->performRequest(Object(OPNsense\Mvc\Dispatcher))
#2 /usr/local/opnsense/www/api.php(36): OPNsense\Mvc\Router->routeRequest('/api/unbound/se...', Array)
#3 {main}