OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: jata on August 29, 2024, 12:44:34 AM

Title: KEA vs ISC dhcp
Post by: jata on August 29, 2024, 12:44:34 AM
I am on latest 24.7 and have tried switching to KEA dhcp (I only use ipv4 on my system) but have found that a number of clients do not resolve to their hostname using KEA so I went back to ISC.

Is this a known limitation for KEA dhcp at the moment?

I also remember reading a release note for opnsense 24.7 relating to ISC dhcp and static dhcp reservations - something about having to restart a service after changing/adding reservations. At the moment I need to restart opnsense for these new reservations to apply but there must be a way to do this without having to restart?
Title: Re: KEA vs ISC dhcp
Post by: doktornotor on August 29, 2024, 07:00:16 AM
Quote from: jata on August 29, 2024, 12:44:34 AM
At the moment I need to restart opnsense for these new reservations to apply but there must be a way to do this without having to restart?

You restart DNS, not OPNsense.
Title: Re: KEA vs ISC dhcp
Post by: franco on August 29, 2024, 07:37:37 AM
Both work ;)

https://github.com/opnsense/changelog/blob/2e5acd6eb/community/24.7/24.7#L112

I will clarify "restart it" then.


Cheers,
Franco
Title: Re: KEA vs ISC dhcp
Post by: franco on August 29, 2024, 07:40:24 AM
https://github.com/opnsense/changelog/commit/081913fee54
Title: Re: KEA vs ISC dhcp
Post by: doktornotor on August 29, 2024, 07:43:40 AM
Quote from: franco on August 29, 2024, 07:37:37 AM
Both work ;)

;D 8)
Title: Re: KEA vs ISC dhcp
Post by: jata on August 29, 2024, 08:05:42 AM
haha - thanks guys. I knew there was a better way than restarting my router. I tried restarting dhcp but this wasn't working.

To be clear - i restart unbound dns. Correct?

Title: Re: KEA vs ISC dhcp
Post by: franco on August 29, 2024, 08:06:23 AM
Correct.


Cheers,
Franco
Title: Re: KEA vs ISC dhcp
Post by: jata on August 29, 2024, 10:24:06 AM
Any thoughts on my first question regarding KEA and how it handles hostname vs. ISC?

My understanding is that ISC will be around for a while so it's not an immediate concern. I'd be interested to hear if/how others are getting on with KEA?
Title: Re: KEA vs ISC dhcp
Post by: franco on August 29, 2024, 10:30:54 AM
Dynamic lease registration in DNS is not supported with Kea. Only static leases.


Cheers,
Franco
Title: Re: KEA vs ISC dhcp
Post by: lilsense on August 29, 2024, 12:49:04 PM
Quote from: franco on August 29, 2024, 10:30:54 AM
Dynamic lease registration in DNS is not supported with Kea. Only static leases.


Cheers,
Franco
For this is a good reason to have roll your own DHCP server.
Title: Re: KEA vs ISC dhcp
Post by: franco on August 29, 2024, 12:54:35 PM
Mid-term the idea here is to really take a different path and add DHCP support to Dnsmasq to do dynamic lease registration out of the box. Talk about how stoked we all are about Kea, but some good can come out of this.


Cheers,
Franco
Title: Re: KEA vs ISC dhcp
Post by: gspannu on August 29, 2024, 05:05:28 PM
Quote from: franco on August 29, 2024, 12:54:35 PM
Mid-term the idea here is to really take a different path and add DHCP support to Dnsmasq to do dynamic lease registration out of the box. Talk about how stoked we all are about Kea, but some good can come out of this.


Cheers,
Franco

8) That is great news.... Support in dnsmasq.

dnsmasq is lightweight, highly configurable... has been around for so long, so lots of help/ support available on public forums.
I would use dnsmasq over anything for a lightweight resolver.
Title: Re: KEA vs ISC dhcp
Post by: franco on August 29, 2024, 05:13:44 PM
I can't resist: strictly speaking Dnsmasq is not a resolver. ;)


Cheers,
Franco
Title: Re: KEA vs ISC dhcp
Post by: chemlud on August 29, 2024, 05:18:00 PM
..stubby coming into play?
Title: Re: KEA vs ISC dhcp
Post by: franco on August 29, 2024, 05:28:59 PM
Or bounce through Unbound. It will likely remain the default for that resolver/forwarder discussion's sake.


Cheers,
Franco
Title: Re: KEA vs ISC dhcp
Post by: gspannu on August 29, 2024, 06:53:34 PM
Quote from: franco on August 29, 2024, 05:13:44 PM
I can't resist: strictly speaking Dnsmasq is not a resolver. ;)


Cheers,
Franco

Strictly speaking, you are correct indeed...  ;)
Title: Re: KEA vs ISC dhcp
Post by: mifi42 on August 29, 2024, 07:10:11 PM
Quote from: gspannu on August 29, 2024, 05:05:28 PM

8) That is great news.... Support in dnsmasq.

dnsmasq is lightweight, highly configurable... has been around for so long, so lots of help/ support available on public forums.
I would use dnsmasq over anything for a lightweight resolver.

I agree. Dnsmasq has served me well during years and years.
I was reminded of the smoothness of the dnsmasq experience over the years, when I tried to battle through unbound quirks during the past couple of days.

Strictly speaking, of course.  ;)

Michiel
Title: Re: KEA vs ISC dhcp
Post by: jata on August 29, 2024, 10:53:00 PM
Thanks all. My takeaway is to stay with ISC and wait for something better that is coming soonish...
Title: Re: KEA vs ISC dhcp
Post by: agh1701 on August 30, 2024, 07:40:40 PM
I just want to make sure I understand KEA.

Static DHCP leases in KEA will propagate to unbound as long as you restart unbound after adding the static lease.  from then on it will continue to propagate.

I understand that dynamic DNS registration (ipconfig /registerdns) does not work and never has.

Will regular leases issued by kea propagate to unbound DNS?
Title: Re: KEA vs ISC dhcp
Post by: franco on August 31, 2024, 09:58:41 PM
> Will regular leases issued by kea propagate to unbound DNS?

I assume you mean regular leases as in "dynamic". So no.
Title: Re: KEA vs ISC dhcp
Post by: ajeffco on September 02, 2024, 02:37:20 AM
I was really glad to see ISC Kea make it into OPNsense.  Unfortunately Kea on OPNsense does not have the same feature set as roll your own ISC kea with ISC Bind and High Availability.

I see that each release is adding of Kea on OPNsense is adding more and more functionality which I think is great.

Hopefully on OPNsense, at some point whatever DNS server comes into the mix with continued improvement of Kea will allow users running OPNSense CARP/HA to have DHCP and DNS high availability as well, allowing us to drop a couple of external servers.  ;D

Title: Re: KEA vs ISC dhcp
Post by: koushun on April 16, 2025, 11:53:12 AM
Look at the latest comments https://github.com/opnsense/core/issues/7475