• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

KEA DHCP missing "Register DHCP leases in DNS Resolver..."

Scheduled Pinned Locked Moved DHCP and DNS
115 Posts 37 Posters 43.2k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    JonathanLee @pvk1
    last edited by Mar 31, 2024, 3:19 PM

    @pvk1 have you ran pkg update and updated unbound that might fix the restart issues. My system is fine with kea.

    Make sure to upvote

    P 1 Reply Last reply Mar 31, 2024, 4:21 PM Reply Quote 0
    • P
      pvk1 @JonathanLee
      last edited by Mar 31, 2024, 4:21 PM

      @JonathanLee
      Thx I have ran pkg update, but it did not change it.

      If you have an fqdn in the DHCP settings and you switch to KEA, it won't start:

      0d53a61f-2276-47c2-ae68-cf5215ac0a7c-image.png

      After changing it to an IP address it worked. See https://redmine.pfsense.org/issues/14991

      But I found that the DNS Resolver does not get the DHCP devices, so it is of no use to me. I will switch over when this is fixed.

      It is explained here. That is fine for me, but that banner telling people to move to it would have better be left out

      https://docs.netgate.com/pfsense/en/latest/releases/23-09.html#kea-dhcp-server-feature-preview-now-available

      N 1 Reply Last reply Mar 31, 2024, 7:52 PM Reply Quote 0
      • J
        JonathanLee
        last edited by JonathanLee Mar 31, 2024, 8:27 PM Mar 31, 2024, 5:14 PM

        Mine works that is weird, again I use authentication for my NTP, but that is IP based not a FQDN, what if you just found the IP of the FQDN and used that?

        https://forum.netgate.com/topic/162746/authenicated-ntp

        Make sure to upvote

        1 Reply Last reply Reply Quote 0
        • N
          noloader @pvk1
          last edited by Mar 31, 2024, 7:52 PM

          @pvk1 said in KEA DHCP missing "Register DHCP leases in DNS Resolver...":

          If you have an fqdn in the DHCP settings and you switch to KEA, it won't start:

          0d53a61f-2276-47c2-ae68-cf5215ac0a7c-image.png

          After changing it to an IP address it worked. See https://redmine.pfsense.org/issues/14991

          But I found that the DNS Resolver does not get the DHCP devices, so it is of no use to me. I will switch over when this is fixed.

          In your image, you only show two time servers. You have to use three or more time servers. Or that's how it used to work.

          With 2 time servers, the client does not know which is correct. 3 or more allows the client to determine a "bad ticker" from "time keepers."

          And keep in mind, that dialog asks for servers and not pools. So be sure to specify individual servers, and not pools.

          J P 2 Replies Last reply Mar 31, 2024, 8:02 PM Reply Quote 0
          • J
            johnpoz LAYER 8 Global Moderator @noloader
            last edited by johnpoz Mar 31, 2024, 8:03 PM Mar 31, 2024, 8:02 PM

            @noloader said in KEA DHCP missing "Register DHCP leases in DNS Resolver...":

            You have to use three or more time servers. Or that's how it used to work.

            that is never how it worked.. It might of defaulted to having 3 different pool addresses in pfsense general setup, not in dhcpd settings. But there is nothing saying you need more than 1. I only have 1, my local time server.

            with isc dhcpd it resolves to place the IP into the dhcpd scope.. You can not hand out anything via dhcp other than IP. But the new kea preview does not resolve that fqdn you place in there..

            The pool comment is pretty valid, because a pool address will normally return way more than 1 IP.. And dhcp can only hand out 1 IP per entry.. To be honest with a mistake to ever allow putting fqdn in there.. dhcp requires and IP.. Letting users think they could just put in a fqdn was not a good idea.

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.7.2, 24.11

            N 1 Reply Last reply Mar 31, 2024, 8:10 PM Reply Quote 0
            • N
              noloader @johnpoz
              last edited by Mar 31, 2024, 8:10 PM

              @johnpoz said in KEA DHCP missing "Register DHCP leases in DNS Resolver...":

              You have to use three or more time servers. Or that's how it used to work.
              

              that is never how it worked...

              As far as I know, that is how NTP clients have always worked. See https://support.ntp.org/Support/SelectingOffsiteNTPServers#Upstream_Time_Server_Quantity.

              But there's no telling what some internet entrepreneur is doing nowadays.

              J 1 Reply Last reply Mar 31, 2024, 8:12 PM Reply Quote 0
              • J
                johnpoz LAYER 8 Global Moderator @noloader
                last edited by johnpoz Mar 31, 2024, 8:14 PM Mar 31, 2024, 8:12 PM

                @noloader that has nothing to do with the ntp settings in the dhcpd settings... By default there is nothing in there.. Shoot most clients don't ever use those even if you hand them out.

                Don't confuse ntp inner working with a completely different thing dhcpd..

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                1 Reply Last reply Reply Quote 0
                • P
                  pvk1 @noloader
                  last edited by Mar 31, 2024, 9:29 PM

                  @noloader You are taking this too far. I just pasted an FQDN in to give an example. Try it out yourself with a NTP server FQDN. It will allow you to enter it, but KEA won't start. The workaround is to put a IP address in there.

                  G 1 Reply Last reply Apr 1, 2024, 6:06 AM Reply Quote 1
                  • G
                    Gertjan @pvk1
                    last edited by Apr 1, 2024, 6:06 AM

                    @pvk1

                    Yep. The KEA documentation - and for that matter, ISC DHCP states :
                    NTP name server fields in are 'IP' - not a host name.
                    The DHCP server KEA and ISC DHCP are not going tot resolve that host name. The DHCP RFC says : NTP servers are 'IP', not a host name.
                    Here you can see what a DHCP server should hand over to a client : rfc2132 => that's IPv4 addresses.
                    The pfSense GUI help message is :

                    390233df-ab5a-4795-b7b4-c7cd9bbe67b7-image.png

                    and is plain wrong. It's just a IP, no a host name, and even less a pool.

                    I guess ISC DHCP silently ignored it as a NTP host name was given, KEA just bails out with a log-error message.

                    Going even further :
                    I've got several Windows based PCs here, a version 7, a 10 and several 11 : none are using the NTP server IP (192.168.1.1) that came with DHCP ...
                    My iPhone, Pad etc : same thing.
                    Androids : let me guess ^^

                    I'm not even sure why I've set this NTP field. Maybe it will work some day.

                    No "help me" PM's please. Use the forum, the community will thank you.
                    Edit : and where are the logs ??

                    V P 2 Replies Last reply Apr 1, 2024, 6:22 AM Reply Quote 1
                    • V
                      Vollans @Gertjan
                      last edited by Apr 1, 2024, 6:22 AM

                      @Gertjan said in KEA DHCP missing "Register DHCP leases in DNS Resolver...":

                      I'm not even sure why I've set this NTP field. Maybe it will work some day.

                      You’d think after over 20 years we’d just give up on the idea of anyone ever taking it up. ;)

                      1 Reply Last reply Reply Quote 0
                      • P
                        pvk1 @Gertjan
                        last edited by pvk1 Apr 1, 2024, 8:12 AM Apr 1, 2024, 8:10 AM

                        @Gertjan That is all correct, but not the point.

                        The point is that the banner suggests that you should go to System > Advanced > Networking and switch DHCP backend. It should have pointed to a explanation page with the current limitations, because as it is people waste a lot of time.

                        22f22422-573a-45e4-a05e-6b5e52f7327e-image.png

                        Also both the ISC and the KEA page let you enter a FDQN without a warning. KEA brakes on a FDQN, ISC does not.

                        1 Reply Last reply Reply Quote 0
                        • N
                          nvdx
                          last edited by Apr 11, 2024, 11:55 PM

                          I've made a special script that is called via Kea's hooks and live update unbound on each kea's lease update via unbound-control:
                          https://github.com/nvandamme/kea-lease-unbound-control

                          As i'm not an sh guru, feel free to make any pull requests !

                          Cheers

                          G 1 Reply Last reply Apr 12, 2024, 6:30 AM Reply Quote 3
                          • G
                            Gertjan @nvdx
                            last edited by Gertjan Apr 12, 2024, 6:32 AM Apr 12, 2024, 6:30 AM

                            @nvdx

                            Oho !
                            (something very like) This is all that Kea needs so it can register a host name into "unbound" as soon as it comes in.

                            👍

                            Question :

                            bc2240fa-cdcb-4627-9d6e-2dba6d499c32-image.png

                            shouldn't that be :

                            UNBOUND_CONTROL_PATH="/usr/local/sbin/unbound-control"
                            UNBOUND_CONFIG_PATH="/var/unbound/unbound.conf"
                            

                            ?

                            No "help me" PM's please. Use the forum, the community will thank you.
                            Edit : and where are the logs ??

                            J N 2 Replies Last reply Apr 12, 2024, 7:05 AM Reply Quote 0
                            • J
                              JonathanLee @Gertjan
                              last edited by Apr 12, 2024, 7:05 AM

                              @Gertjan that dependent on plus version isn’t it?

                              Make sure to upvote

                              G 1 Reply Last reply Apr 12, 2024, 7:32 AM Reply Quote 0
                              • G
                                Gertjan @JonathanLee
                                last edited by Apr 12, 2024, 7:32 AM

                                @JonathanLee

                                Noop.
                                pfSense Plus and CE are very, like a lot, identical, when it comes to these kind of details.
                                IMHO, Plus and CE have a common build source base.
                                Plus has some value added packages added, and some low level stuff that permits it to run on Azure.
                                Plus has also ZFS file system kernel module loaded, so it can use ZFS as an option.
                                Things like that.
                                Core functionalities like "DNS", or "DHCP", are the same.

                                No "help me" PM's please. Use the forum, the community will thank you.
                                Edit : and where are the logs ??

                                J V 2 Replies Last reply Apr 14, 2024, 6:36 PM Reply Quote 1
                                • N
                                  nvdx @Gertjan
                                  last edited by Apr 12, 2024, 8:54 AM

                                  @Gertjan
                                  The example given is not matching pfsense specificaly.
                                  For pfsense, of course, You're entirely right.
                                  For other OSes, depends on the standard path of un
                                  bound and kea's installation.
                                  I'll add an example file for pfSense along the provided patch.

                                  1 Reply Last reply Reply Quote 0
                                  • J
                                    JonathanLee @Gertjan
                                    last edited by Apr 14, 2024, 6:36 PM

                                    @Gertjan Yes again CE starts with a different subfolder over Plus I think patches show a different root folder

                                    Make sure to upvote

                                    1 Reply Last reply Reply Quote 0
                                    • V
                                      Vollans @Gertjan
                                      last edited by Apr 14, 2024, 8:22 PM

                                      @Gertjan said in KEA DHCP missing "Register DHCP leases in DNS Resolver...":

                                      Plus has also ZFS file system kernel module loaded, so it can use ZFS as an option.

                                      As does CE. Plus has the tools for managing the ZFS system via the front end included, though, as a Plus.

                                      1 Reply Last reply Reply Quote 0
                                      • QinnQ
                                        Qinn
                                        last edited by Apr 24, 2024, 8:53 AM

                                        Maybe install System_Patches, there are 2 Kea patches and 2 DNS resolver.

                                        Hardeware: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz 102 GB mSATA SSD (ZFS)
                                        Firmware: Latest-stable-pfSense CE (amd64)
                                        Packages: pfBlockerNG devel-beta (beta tester) - Avahi - Notes - Ntopng - PIMD/udpbroadcastrelay - Service Watchdog - System Patches

                                        4 1 Reply Last reply Apr 26, 2024, 7:17 AM Reply Quote 1
                                        • 4
                                          4o4rh @Qinn
                                          last edited by Apr 26, 2024, 7:17 AM

                                          @Qinn how do you find these two patches

                                          S QinnQ 2 Replies Last reply Apr 26, 2024, 1:15 PM Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received