OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: roblang on November 29, 2024, 08:54:54 PM

Title: Unbound DNS Log Errors
Post by: roblang on November 29, 2024, 08:54:54 PM
I have recently set-up a fresh install of OPNSense and everything is working apart from the Unbound DNS log containing a lot of errors (see sample below).

2024-11-29T19:53:44   Error   unbound   [49173:2] error: recvfrom 45 failed: Protocol not available   
2024-11-29T19:53:44   Error   unbound   [49173:2] error: recvfrom 46 failed: Protocol not available   
2024-11-29T19:53:44   Error   unbound   [49173:2] error: recvfrom 45 failed: Protocol not available   
2024-11-29T19:53:44   Error   unbound   [49173:2] error: recvfrom 46 failed: Protocol not available   
2024-11-29T19:53:44   Error   unbound   [49173:2] error: recvfrom 45 failed: Protocol not available   
2024-11-29T19:53:44   Error   unbound   [49173:2] error: recvfrom 46 failed: Protocol not available   
2024-11-29T19:53:38   Error   unbound   [49173:0] error: recvfrom 35 failed: Protocol not available   
2024-11-29T19:53:37   Error   unbound   [49173:2] error: recvfrom 48 failed: Protocol not available   
2024-11-29T19:53:37   Error   unbound   [49173:3] error: recvfrom 36 failed: Protocol not available   
2024-11-29T19:53:36   Error   unbound   [49173:2] error: recvfrom 39 failed: Protocol not available

Can someone point me in the right direction to troubleshoot where these are being generated.

Thanks in advance.
Title: Re: Unbound DNS Log Errors
Post by: roblang on March 02, 2025, 11:13:59 PM
I have just upgraded to latest version of OpnSense and still getting these log messages.  Does anyone have any idea where to start troubleshooting?
Title: Re: Unbound DNS Log Errors
Post by: newsense on March 02, 2025, 11:18:25 PM
Start troubleshooting by describing your Unbound setup. Clearly you changed something there.
Title: Re: Unbound DNS Log Errors
Post by: roblang on March 02, 2025, 11:27:48 PM
I have had the same error since initial installation (24.7).  Log files were getting flooded with errors so I switched to DNSMasq.  Now need wildcard hostname resolution so turned Unbound back on, all default settings apart from "Register ISC DHCP4 Leases" and "Register DHCP Static Mappings".  OPNSense is now on (25.1.2) but the errors are the same as when on (24.7) with unbound enabled.
Title: Re: Unbound DNS Log Errors
Post by: newsense on March 03, 2025, 12:04:56 AM
Last time this recvfrom issue came up on the forum was in 2023 and was fixed in 23.1.1_2 apparently by this commit

https://github.com/opnsense/core/commit/7ebe361 (https://github.com/opnsense/core/commit/7ebe361)

Unsure why this issue resurfaces again after 2 years, your best bet would be to open a ticket on Github opnsense/core referencing this thread.