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

    How to Pass Kea DHCP Hostnames/Descriptions into Pihole??

    Scheduled Pinned Locked Moved DHCP and DNS
    21 Posts 3 Posters 1.9k 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.
    • B
      Burnski666 @johnpoz
      last edited by Burnski666

      @johnpoz @Gertjan

      Here is the breadth of my entire local networking knowledge. I was running a basic Asus Router, and PiHole in docker on an RPI5. The Top Client list would display the name of the device that I had assigned to it in the DHCP of said basic Asus router.

      I decided to upgrade to an Omada switch & AP's before xmas but couldnt get my head around the Omada router; so landed on a Topton baremetal appliance and pfSense CE.

      I spent days recreating my VLANs, VPNs, DDNS, and several hours manually assigning static IP's and naming the 60+ devices on my network, After days of banging my head agains the wall i found that in 2.7.2 Kea wouldnt pass through the hostname/description of my local devices to PiHole correctly, and i didnt want to start-over by switching to ISC assigning static IP's / descriptions to my devices so I chalked it up to a win since it was 95% functioning.

      That is it. this is everything i know about local networking. I just honestly want to know "what box to check" to get the hotname and/or description of the local devices i've assigned Static IP's to in DHCP to flow through to Pihole again (or not, its honestly not make-or-break, its just a nice to have that was working fine on my 12+ year old Asus router)

      6535b17a-110c-4eee-b28a-e69e2b1fcecf-image.png

      johnpozJ 1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @Burnski666
        last edited by johnpoz

        @Burnski666 if your pihole points to pfsense, and you want it to resolve those IPs to names - you have to uncheck the box on the pihole to never forward private ranges.

        And pfsense needs to resolve them.. do a query to pfsense via nslookup does it resolve

        example here is a dns query to my pfsense IP 192.168.9.253, asking for the name of 192.168.9.10

        > 192.168.9.10
        Server:  sg4860.home.arpa
        Address:  192.168.9.253
        
        Name:    nas.home.arpa
        Address:  192.168.9.10
        

        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.8, 24.11

        B 2 Replies Last reply Reply Quote 0
        • B
          Burnski666 @johnpoz
          last edited by

          @johnpoz

          I have Pihole setup to use pfSense for its upstream resolver:

          8105e065-b6ca-4378-a9d2-b34dba285fb6-image.png

          I dont have Never Forward reverse lookup checked:

          d75a40f6-4c39-4789-9972-29b7d1794fa0-image.png

          Also, do I still need this:

          4e71cbe6-9003-4428-8f52-8e7e146ad648-image.png

          EDIT: is nslookup a plugin? I dont see it / cant find it?

          1 Reply Last reply Reply Quote 0
          • B
            Burnski666 @johnpoz
            last edited by

            @johnpoz

            is this what im after? this is the IP of the desktop PC im on:

            da88f7fb-ae45-4ef9-9b01-f8daf84a4f38-image.png

            johnpozJ 1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator @Burnski666
              last edited by johnpoz

              @Burnski666 well if pfsense doesn't resolve it then no anything asking for that IP will not get an answer.

              lookup.jpg

              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.8, 24.11

              B 2 Replies Last reply Reply Quote 0
              • B
                Burnski666 @johnpoz
                last edited by

                @johnpoz gotcha. how do i fix it?

                1 Reply Last reply Reply Quote 0
                • B
                  Burnski666 @johnpoz
                  last edited by

                  @johnpoz

                  i disabled pointing my DNS to pihole and just back to the default resolver. did a flushdns and it still doesnt resolve my local PC

                  cb737b24-28c4-461f-a6f4-67fcc2736e16-image.png

                  johnpozJ 1 Reply Last reply Reply Quote 0
                  • johnpozJ
                    johnpoz LAYER 8 Global Moderator @Burnski666
                    last edited by

                    @Burnski666 as I said if pfsense doesn't resolve then nothing will.. If kea is not creating the dns entries from dhcp, then you need to fix that..

                    Do you have kea set to register them - it was moved to the kea interface.. before that was like a setting in the resolver.

                    kea.jpg

                    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.8, 24.11

                    B 4 Replies Last reply Reply Quote 0
                    • B
                      Burnski666 @johnpoz
                      last edited by

                      @johnpoz

                      as far as i know/understand, whatever i have setup in pfsense is whatever it was OOTB. Only thing ive changed was setting static IP's for all my devices, and pointed my DNS to my Pihole. Here are a couple screenshots of various pages, maybe something will look wrong to you?

                      d076210f-ffb3-4e20-ba8a-8bc2ed4c3895-image.png

                      b1cc5b3a-664a-449c-b6ee-af35952e496b-image.png

                      b26d60a2-4af3-49ad-8371-362e3df220f5-image.png

                      7805b2f5-67e0-4c61-b6e3-ffc0f07d2a15-image.png

                      01e26bc1-79c8-4c13-81a9-dc3b08da6988-image.png

                      Does any of this help/mean anything that might figure out why i cant get hostnames into pihole?

                      1 Reply Last reply Reply Quote 0
                      • B
                        Burnski666 @johnpoz
                        last edited by

                        @johnpoz

                        ok, wait i just checked that box

                        3d49e541-1293-46ff-afb7-edb53c783cc7-image.png

                        and now it resolves my PC

                        7d38cf97-e08d-4bb3-81d1-332e45756cad-image.png

                        but still nothing coming through to pihole.

                        bf628471-0a87-45a0-917a-f2f72cfa4b25-image.png

                        1 Reply Last reply Reply Quote 0
                        • B
                          Burnski666 @johnpoz
                          last edited by

                          @johnpoz

                          sweet baby jesus i think it works.

                          i also enabled early DNS since i have mostly static leases

                          32747acf-127d-4fc4-9b3d-b67209b74f0e-image.png

                          and i added my router to the conditional forward in pihole

                          746261e2-0925-4dd5-b1d1-8327392f84c7-image.png

                          and now names are coming through!

                          88e26af6-8b9b-46c3-99d5-bc3039cad357-image.png

                          Am i missing anything else? Do i have any security issues you can see that i inadvertantly created? thanks.

                          1 Reply Last reply Reply Quote 0
                          • B
                            Burnski666 @johnpoz
                            last edited by Burnski666

                            @johnpoz hmm ok i thought i was done but maybe not.

                            I have a bunch of smart bulbs. ive gone through and renamed them [ Services -> DHCP Server -> LAN]

                            98966f2f-72e1-4ccc-bea6-85d2eddbdca9-image.png

                            but they still come through to pihole with their default names:

                            4f474660-139b-4a4b-ab80-cec37f44af2e-image.png

                            How do i get pihole to pickup (pfsense to broadcast?) the hostname/description ive assigned it?

                            EDIT: disregard, turns out it was a simple as giving it a few min to update

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post
                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.