OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: braveheart_7 on January 29, 2025, 01:57:15 AM

Title: [SOLVED] 24.7.12 Unbound does not start after enabling Register DHCP Static Mappings
Post by: braveheart_7 on January 29, 2025, 01:57:15 AM
Hi Experts,
Newbie here.

When setting up Unbound-General settings, if I enable "Register DHCP Static Mappings", Unbound will not start. Again, I'm a newbie. I did try the following commands:

root@opnsense:/usr/local/sbin # pluginctl -s unbound start
Service `unbound' has been started.
root@opnsense:/usr/local/sbin # pluginctl -s unbound status
unbound is not running.

If I uncheck "Register DHCP Static Mappings", Unbound will start back with no issues.


Title: Re: 24.7.12_2 Unbound does not start after enabling "Register DHCP Static Mappings"
Post by: franco on January 29, 2025, 09:51:20 AM
# configctl unbound check
Title: Re: 24.7.12_2 Unbound does not start after enabling "Register DHCP Static Mappings"
Post by: braveheart_7 on January 29, 2025, 09:42:42 PM
Thanks! I ran the command and found:

root@opnsense:~ # configctl unbound check
[1738181712] unbound-checkconf[95842:0] error: error parsing local-data at 10 'truenas..home.arpa IN A 10.10.x.x': Empty label
[1738181712] unbound-checkconf[95842:0] error: Bad local-data RR truenas..home.arpa IN A 10.10.x.x
[1738181712] unbound-checkconf[95842:0] fatal error: failed local-zone, local-data configuration

Now I'm looking for how to correct it.
Title: Re: 24.7.12_2 Unbound does not start after enabling "Register DHCP Static Mappings"
Post by: braveheart_7 on January 29, 2025, 09:55:35 PM
***SOLVED***

Thanks @franco!

I found the problem. I had mis-typed an extra . before the domain name in the static lease. Hope this helps someone else.

Title: Re: [SOLVED] 24.7.12 Unbound does not start after enabling Register DHCP Static Mappings
Post by: dseven on January 30, 2025, 10:44:41 AM
Arguably a bug - the OPNsense UI should not allow you to enter an invalid domain name that leads to the DNS servicing being b0rkened (or/and maybe should strip leading dots when combining hostnames with domain names).
Title: Re: [SOLVED] 24.7.12 Unbound does not start after enabling Register DHCP Static Mappings
Post by: block109 on January 30, 2025, 12:53:16 PM
Quote from: braveheart_7 on January 29, 2025, 09:55:35 PM***SOLVED***

Thanks @franco!

I found the problem. I had mis-typed an extra . before the domain name in the static lease. Hope this helps someone else.


It worked, I had the same problem and thanks to franco and braveheart_7 I solved it without delay (and I learned something else in the process)
Title: Re: [SOLVED] 24.7.12 Unbound does not start after enabling Register DHCP Static Mappings
Post by: franco on January 30, 2025, 02:02:53 PM
Bug report on GitHub is obviously welcome :)
Title: Re: [SOLVED] 24.7.12 Unbound does not start after enabling Register DHCP Static Mappings
Post by: dseven on January 30, 2025, 05:24:16 PM
Quote from: franco on January 30, 2025, 02:02:53 PMBug report on GitHub is obviously welcome :)

https://github.com/opnsense/core/issues/8266 ;)
Title: Re: [SOLVED] 24.7.12 Unbound does not start after enabling Register DHCP Static Mappings
Post by: braveheart_7 on February 01, 2025, 02:01:05 AM
Thanks Guys!