Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
24.1 Production Series
»
unbound cannot resolve dns entries from LAN ISC DHCP Lease when they are offline
« previous
next »
Print
Pages: [
1
]
Author
Topic: unbound cannot resolve dns entries from LAN ISC DHCP Lease when they are offline (Read 264 times)
ralfonat
Newbie
Posts: 10
Karma: 0
unbound cannot resolve dns entries from LAN ISC DHCP Lease when they are offline
«
on:
June 05, 2024, 06:07:42 pm »
heya,
I really love opnsense, but sometimes it can be quite confusing to find info.
I have my LAN interface setup to serve IPs via ISC DHCP and to register new leases with dns (unbound).
But whenever devices go offline, they seem to vanish from unbound. Is this per definition? Can I deactivate this? I want the dns entries to stay as long as the dhcp lease is still not expired.
Please help me to help myself:
Where can I verify that the entries are in fact removed from unbound, where can I see the current dns list?
If it is actually removed, where should I go look for these "unregister" messages in unbound?
Where can I change settings as to keep DNS?
Many thanks!
BTW: Using OPNsense 24.1.8-amd64.
If theres anything else I should post please advise. Thanks!
Logged
meyergru
Hero Member
Posts: 1253
Karma: 117
IT Aficionado
Re: unbound cannot resolve dns entries from LAN ISC DHCP Lease when they are offline
«
Reply #1 on:
June 05, 2024, 06:51:26 pm »
I would guess that this happens only if ISC DHCP releases the lease. Unexpired leases are kept in /var/unbound/dhcpleases.conf, if you enable "Register ISC DHCP4 Leases".
This expiry should occur automatically when the DHCP lease expires or if it is explicitely released by a DHCPRELEASE. Windows can be configured to do this, I do not know what the default is.
If you want to keep those DNS names active, create a static DHCP mapping and enable "Register ISC DHCP Static Mappings" in Unbound (those can be found in /var/unbound/host_entries.conf).
Logged
Intel Core i9-12900H, 2 x I226, 2x Intel 710, 16 GByte, 1 TByte NVME, ZTE F6005
1100 down / 440 up
,
Bufferbloat A+
ralfonat
Newbie
Posts: 10
Karma: 0
Re: unbound cannot resolve dns entries from LAN ISC DHCP Lease when they are offline
«
Reply #2 on:
June 05, 2024, 08:08:31 pm »
hey meyergru,
thanks!
so opnsense /ui/dhcpv4/leases shows 29 entries
and
@opnpx:/var/unbound # cat dhcpleases.conf | sort | cut -d":" -f1 | uniq -c
22 local-data-ptr
22 local-data
so 7 missing. Is there a command to re-register them?
Logged
meyergru
Hero Member
Posts: 1253
Karma: 117
IT Aficionado
Re: unbound cannot resolve dns entries from LAN ISC DHCP Lease when they are offline
«
Reply #3 on:
June 05, 2024, 09:00:29 pm »
That alone does not say that something is off: You can have DHCP leases with no hostname - I gues those would not be registered in DNS. IDK of a command to re-register.
Logged
Intel Core i9-12900H, 2 x I226, 2x Intel 710, 16 GByte, 1 TByte NVME, ZTE F6005
1100 down / 440 up
,
Bufferbloat A+
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
24.1 Production Series
»
unbound cannot resolve dns entries from LAN ISC DHCP Lease when they are offline