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

MAC based DNS possible?

Scheduled Pinned Locked Moved DHCP and DNS
7 Posts 4 Posters 994 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.
  • 3 Offline
    32smooth
    last edited by Aug 20, 2017, 10:24 AM

    Hello,

    I'm a bit confused by the DHCP Static leases feature. It offers to add entries without static IP. When I add one without IP, and a the client with the given Mac goes online, I see 2 entries in the Status -> DHCP leases page and that client can not be accessed by the hostname that I specified in the static lease.

    I'd like to define hostname for clients based on their MAC address so that I can access them by that hostname. The IP should not be relevant, hence I don't want to specify any IPs.

    Is that possible?

    many thanks!

    1 Reply Last reply Reply Quote 0
    • J Offline
      JKnott
      last edited by Aug 20, 2017, 1:19 PM

      Yes you are confused.  While some protocols map a name to the MAC address, IP does not.  You can configure the DHCP server to reserve an address and also add a name to DNS.  It's also possible for the device to pass it's name to the DHCP server and then allow the DHCP server to provide the name to DNS.

      PfSense running on Qotom mini PC
      i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
      UniFi AC-Lite access point

      I haven't lost my mind. It's around here...somewhere...

      1 Reply Last reply Reply Quote 0
      • K Offline
        kpa
        last edited by Aug 21, 2017, 10:45 AM Aug 20, 2017, 3:14 PM

        Not possible, the DNS standard deals only with IP addresses and all matters related to IP address - MAC address pairings are irrelevant to DNS. You already have the next best thing which is static DHCP leases with the registration of the static lease IP addresses to the DNS forwarder/resolver.

        1 Reply Last reply Reply Quote 0
        • 3 Offline
          32smooth
          last edited by Aug 20, 2017, 3:24 PM

          thanks for the replies. I thought it would make little difference for an orchestrated dns/dhcp setup to bind the name to an ip from the dhcp-pool instead of a predefined one. But ok, you learn new things all the time :)

          Best regards,
          Smooth

          1 Reply Last reply Reply Quote 0
          • H Offline
            Harvy66
            last edited by Aug 22, 2017, 4:52 PM

            I thought it would make little difference for an orchestrated dns/dhcp setup to bind the name to an ip from the dhcp-pool

            That's called leaky abstractions. While it seems like a good idea for simple setups, it's a slippery slope of cans of worms.

            1 Reply Last reply Reply Quote 0
            • J Offline
              JKnott
              last edited by Aug 22, 2017, 5:04 PM

              Also, doing this would require overhauling the entire DNS system.  Then there's the issue of MAC addresses being meaningless off the local network.

              PfSense running on Qotom mini PC
              i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
              UniFi AC-Lite access point

              I haven't lost my mind. It's around here...somewhere...

              1 Reply Last reply Reply Quote 0
              • K Offline
                kpa
                last edited by Aug 22, 2017, 5:57 PM

                Also, it is possible to build IP networks that do not have MAC addresses at all.

                1 Reply Last reply Reply Quote 0
                7 out of 7
                • First post
                  7/7
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                  This community forum collects and processes your personal information.
                  consent.not_received