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.
# configctl unbound check
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)
Bug report on GitHub is obviously welcome :)
Quote from: franco on January 30, 2025, 02:02:53 PMBug report on GitHub is obviously welcome :)
https://github.com/opnsense/core/issues/8266 ;)
Thanks Guys!