Idea for dynamic DNS (e.g. you have DHCP on your WAN at home): instead of polling every 5 minutes: what's my IP? has it changed?

What about scripting something with devd.conf(5) for ADDR_ADD / ADDR_DEL? i.e. catchthe event and launch a script to set DNS.

https://man.freebsd.org/cgi/man.cgi?query=devd.conf&sektion=5

devd.conf(5)

@dvl I've been using /etc/dhclient-exit-hooks for that at home.

[ ."$reason" = .BOUND ] and [ ."$reason" = .RENEW ] will pass the new IP to a shellscript that updates my records at bunny.net DNS via their REST API.

@sko That sounds familiar. I'm searching for documentation on dhclient hooks and failing. No mention of hook on dhclient or dhclient man pages.
dhclient.conf(5)