some DHCP hostnames not resolving.

Started by donee, March 05, 2024, 03:57:15 PM

Previous topic - Next topic
This is a new install of OPNsense 24.1.2_1-amd64. I noticed that I could not resolve all my hosts properly.  Then I looked in the log and notied I had this error for the clinet

2024-03-04T16:04:30-05:00   Error   dhcpd   uid lease 10.10.0.71 for client bc:24:11:xxd:xx:xx is duplicate on 10.10.0.0/24   
2024-03-04T16:04:30-05:00   Error   dhcpd   from the dynamic address pool for 10.10.0.0/24   
2024-03-04T16:04:30-05:00   Error   dhcpd   Remove host declaration s_lan_6 or remove 10.10.0.71   
2024-03-04T16:04:30-05:00   Error   dhcpd   Dynamic and static leases present for 10.10.0.71.

Why am i getting a duplicate?  What is s_lan_6?

There is one other host that is not resolving but also not throwing errors, but I am hoping fixing this issue with fix that issue. 

Static assignments must be outside of the dynamic range.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

I think I got the errors fixed by giving the dhcp static ip one outside the dhcp server range.  Now I think the only issue is any of the dhcp static entries the dns does not resolve forward or backward.  The dynamic dhcp leases resolve dns just fine, just not the static leases. 

Is Services>Unbound>General>Register ISC DHCP Static Mappings on?

Yes that fixed it, I only had "Register ISC DHCP4 Leases" checked.  I did not realize that static ones where separate.