Unbound - "Register DHCP leases"

Started by bedub1, June 04, 2022, 01:38:42 AM

Previous topic - Next topic
I'm running Unbound, and I cannot get the "Register DHCP leases" option to work.  "Register DHCP static mappings" works just fine.  Is it just me?   

Works well for me.  Did you setup an internal domain?
OPNsense 24.7.7 running on:
Dell Optiplex 3050
Intel I5-7600 @ 3.5Ghz (4 Cores)
Intel I350-T4 Nic
8G DDR4
256G SSD

By "domain" do you mean a windows active directory domain?  I did not.

I did tell the DHCP server to assign a "domain name" that is identical to the "domain" as defined under general - settings - system.

When a client performs an nslookup for "computername", I see in the unbound logs it is searching for "computername.domain". 

No not AD Domain :)

I did meant domain set under SYSTEM: SETTINGS: GENERAL.  I used domain.tld format.  So my DHCP servers end up giving machines a hostname.domain.tld address.

I'm also using Unbound for DNS which is where the "Register DHCP leases" lives.  Are you using any DNS based Ad blocking services?
OPNsense 24.7.7 running on:
Dell Optiplex 3050
Intel I5-7600 @ 3.5Ghz (4 Cores)
Intel I350-T4 Nic
8G DDR4
256G SSD

To double check the registrations are happening you can look into the /var/unbound/dhcpleases.conf file and see if they're there.  If they are, you likely have a DNS leak. If not, then some other config is lacking.
OPNsense 24.7.7 running on:
Dell Optiplex 3050
Intel I5-7600 @ 3.5Ghz (4 Cores)
Intel I350-T4 Nic
8G DDR4
256G SSD

/var/unbound/dhcpleases.conf showed the entries.  I ran another nslookup and it worked perfectly.  I wonder what was up.  hmmm...

Thanks for the help!