OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: bedub1 on June 04, 2022, 01:38:42 am

Title: Unbound - "Register DHCP leases"
Post by: bedub1 on June 04, 2022, 01:38:42 am
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?   
Title: Re: Unbound - "Register DHCP leases"
Post by: axsdenied on June 05, 2022, 04:07:43 am
Works well for me.  Did you setup an internal domain?
Title: Re: Unbound - "Register DHCP leases"
Post by: bedub1 on June 05, 2022, 04:21:42 am
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". 
Title: Re: Unbound - "Register DHCP leases"
Post by: axsdenied on June 05, 2022, 04:53:10 am
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?
Title: Re: Unbound - "Register DHCP leases"
Post by: axsdenied on June 05, 2022, 05:24:43 am
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.
Title: Re: Unbound - "Register DHCP leases"
Post by: bedub1 on June 05, 2022, 06:34:39 am
/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!