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