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

    DHCP not registering hostnames in DNS

    Scheduled Pinned Locked Moved DHCP and DNS
    44 Posts 17 Posters 19.5k 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.
    • P
      pooperman @Gertjan
      last edited by

      So as nova said, I need to do something very basic - map MAC to a Hostname. Regardless DHCP or not. PFSense tells me - go register an IP and manage it on your own then, because RFC... Fine - DHCP is pointless from that point on. And now, all registered hosts show up on another VLANs get new DHCP addresses and lose their hostnames! Of course it is a new address space - really, PFSense is not going to pick up the name I've just provided? Networks theses days are filled with mobile users/workstations. Are you expecting admins to chase them all over the infrastructure or resort to pen and paper to get visibility into who is logged in where?

      And yes, any other decent firewall does it - make your pick. Unifi allows to map globally recognized name to a MAC. My basic home router does it. OpenSense guys looked at it in 2019 - they thought this is a bug. Who in the right mind would think this is a feature? lol

      https://forum.opnsense.org/index.php?topic=12369.0

      M 1 Reply Last reply Reply Quote 3
      • M
        mimino @pooperman
        last edited by

        We've just passed the 2 years mark since this was first reported here. If they don't even admit this being an issue we can't expect it to be addressed any time soon. Besides, they now have other priorities, like sorting out the Wireguard mess... To quote the mod himself: "There are a bajillion better things the dev's could be doing..."

        1 Reply Last reply Reply Quote 1
        • P
          pooperman
          last edited by

          Yeah, I think I am starting to understand where the “bajillion” may be coming from. It is in the root of product “philosophy”, which is a reflection of the mentality of its creators. So most of it is really self-inflicted…

          Only PFSense defines “inbound and outbound” traffic from the “perspective of a given interface”, not a user or a person managing it. Only PFSense requires splitting a schedule into two parts before and after midnight when defining overnight schedules. Only PFSense requires numerous extra firewall rules in order to reduce log noise nobody cares about. The funny part – it is all perfectly logical. Yet entire user community keep struggling with these for years – nobody else gets it, because all of that is “logically backwards”.

          That is what happens when you place a person thinking from a perspective of an interface, not the user, in charge of the product design…

          1 Reply Last reply Reply Quote 2
          • S
            stopspam
            last edited by

            It's now 2022 and I am thankful for this thread explaining why something I (like many others above) thought should work still does not work!

            1 Reply Last reply Reply Quote 4
            • P
              Patch
              last edited by Patch

              Normally I set a static IP address if I need the device to have a static IP address to facilitate access by other devices (servers, printers etc). For client devices I allocate via a pool (camera, client computer, IOT etc). At times pool devices names are not informative, in which case centrally adding a meaningful name to pool devices would be a feature I would use.

              The DHCP server description along side the IP address appears to support this.

              Imo there is at least an inconsistency between the text describing entry of an IP address and pfsense behavior. I also assumed DHCP would work if the optional IP was not entered.

              So looking at pfsense labeling from pfsense's perspective. What is the use case for not entering the optional IP address. What actually still works in the DHCP server?

              1 Reply Last reply Reply Quote 2
              • N
                networknotwork @johnpoz
                last edited by networknotwork

                @johnpoz Whether you think "people should just specify an IP" is irrelevant; if it's not technically possible, say that, but stop trying to invalidate others' requirements. Hostname-only mappings are absolutely a valid use case.

                The static mapping page literally says the "If no IPv4 address is given, one will be dynamically allocated from the pool" without the caveat "but if you don't specify the IP, the hostname will not be registered."

                1 Reply Last reply Reply Quote 2
                • DigiguyD
                  Digiguy
                  last edited by

                  Not sure if I should add to this thread or start a new one. Just made the change from Untangle to pfs (out of the box setup) I have a tp-link router setup as wireless access point plugged into switch connected to lan. I see that when some of the dhcp leases are assigned the hostname is registered as the IP address (typically Apple phones and devices) and some are the names given to device (Android phone name). Not sure if I need to change a setting or configure something to display the name of devices. Hope this is makes sense to you experts :)

                  keyserK 1 Reply Last reply Reply Quote 0
                  • keyserK
                    keyser Rebel Alliance @Digiguy
                    last edited by

                    @digiguy said in DHCP not registering hostnames in DNS:

                    Not sure if I should add to this thread or start a new one. Just made the change from Untangle to pfs (out of the box setup) I have a tp-link router setup as wireless access point plugged into switch connected to lan. I see that when some of the dhcp leases are assigned the hostname is registered as the IP address (typically Apple phones and devices) and some are the names given to device (Android phone name). Not sure if I need to change a setting or configure something to display the name of devices. Hope this is makes sense to you experts :)

                    Apple devices no longer reveal their clientname in their DHCP requests pr. default (because of privacy). If you want them to start doing that on your specific home network, you have to press the little Information icon next to your selected WiFi network. On that page that shows the IP address the phone/ipad recieved, you can disable privacy for that network (thus revealing the name in the DHCP request). Please note this will change the MAC address of the phone on your WiFi to it's actual hardware MAC address

                    Love the no fuss of using the official appliances :-)

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

                      @keyser said in DHCP not registering hostnames in DNS:

                      (because of privacy).

                      Yeah clearly we sure wouldn't want anyone knowing the super secret name of "john's iphone" hehehe

                      That has got to be really unique - prob not another one of those anywhere in all of chicagoland ;) heheheh

                      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

                      1 Reply Last reply Reply Quote 0
                      • DigiguyD
                        Digiguy
                        last edited by

                        Well that makes sense.. greatly appreciate your response!

                        1 Reply Last reply Reply Quote 0
                        • karsten-heckK karsten-heck referenced this topic on
                        • patient0P patient0 referenced this topic on
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.