[SOLVED] 24.7.12 Unbound does not start after enabling Register DHCP Static Mappings

Started by braveheart_7, January 29, 2025, 01:57:15 AM

Previous topic - Next topic
January 29, 2025, 01:57:15 AM Last Edit: January 29, 2025, 09:59:30 PM by braveheart_7 Reason: Solved
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.




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.

***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.


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).

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)