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

odhcpd lacks hotplug script support #196

Open
palonsoro opened this issue Mar 20, 2023 · 2 comments
Open

odhcpd lacks hotplug script support #196

palonsoro opened this issue Mar 20, 2023 · 2 comments

Comments

@palonsoro
Copy link

I am trying to get automatic DNS resolution for the IPv6 addresses delivered by odhcpd on my Turris Omnia.

After some discussion, it seems this may not be possible (at least in an optimal way) mainly because odhcpd is not notifying of DHCPv6 lease changes via hotplug scripts.

This seems to have been asked in the past in the mail list, but at that time there was not a valid use case to implement it.

So not sure if it would be possible to eventually revisit this topic, as I may have now such valid use case: provide a way to dynamically update DNS server configuration so that it provides up-to-date AAAA records of the server's DHCPv6 clients.

If I missed something and/or there is some alternative suggestion, I am also open to it.

Thanks in advance.

@palonsoro
Copy link
Author

Any thoughts on this?

@mikma
Copy link

mikma commented Jun 18, 2023

Since odhcpd broadcasts ubus events for dhcpv4 leases, it seams reasonable to do the same for dhcpv6 leases. I have a PoC implementation in my fork which also contains a lua script which is able to update a WireGuard interface based on odhcpd leases.

https://github.com/mikma/openwrt-odhcpd/commits/wireguard

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