MAC based DNS possible?
-
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!
-
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.
-
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.
-
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 -
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.
-
Also, doing this would require overhauling the entire DNS system. Then there's the issue of MAC addresses being meaningless off the local network.
-
Also, it is possible to build IP networks that do not have MAC addresses at all.