Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEAT: DHCP Register MAC A Record #1061

Open
djarbz opened this issue Oct 3, 2024 · 3 comments
Open

FEAT: DHCP Register MAC A Record #1061

djarbz opened this issue Oct 3, 2024 · 3 comments

Comments

@djarbz
Copy link

djarbz commented Oct 3, 2024

I would like to request a feature.

My idea is that when DHCP hands out an address, in addition to the normal A Record for the hostname it will also register the MAC as an A Record. Optionally with the Manufacturer prefix.

This would be enabled per scope.

My use case is for devices that may change VLANs but might need to be accessed via a common FQDN. This way I could create a CNAME that points to the MAC A Record and it wouldn't matter what VLAN the "server" is on.

@ShreyasZare
Copy link
Member

Thanks for the request. Wont the MAC based A record entry be in the same zone as that of the current one, or do you want to have to configure another zone for it? Does using the same domain name for both the scopes work for you scenario?

There is a plan to have DHCP Scope restructured to allow customizing options based on client's MAC or Vendor Identifier so I think if such a design is available later, this config can be done with it without need to have MAC based DNS entry.

@djarbz
Copy link
Author

djarbz commented Oct 4, 2024

Here I go thinking faster than I can type lol
Yes, I was thinking of specifying a "global" zone to dump the A Records into such as mac.lan.

I would be curious to see what these changes might entail, is there an issue where you are discussing these changes that I can review?

Another thought is to have a non-compliant record type such as MNAME where instead of linking a hostname to a CNAME we could just put the MAC in there and internally it would query the DHCP leases.

@ShreyasZare
Copy link
Member

Thanks for the response. Will think on this for a while and see what would work better and be easier to configure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants