I have an openwrt router running with below dhcp reservation done in /etc/config/dhcp,
config host
option dns '1'
option name 'pinas'
option mac 'xxxx'
option ip '192.168.0.195'
option leasetime '6h'
option duid 'xxxx'
option hostid '95'
config host
option dns '1'
option name 'raspberrypi'
option mac 'xxxx'
option ip '192.168.0.6'
option leasetime '6h'
option duid 'xxxxxx'
option hostid '06'
I self host a website by using ddns and IPv6 (only)
My IPv6 address is not static but not changing so frequent (so far its been 3 days and IPv6 address not changed). If Router is restarted I will get a new IPv6 address.
Currently I am running a custom ddns update shell script on the clients every 5 minutes to check for IPv6 address changes, and if changed update it.
As I found out IPv6 address is not changing frequently, I was thinking if there is any other trigger I can setup to run these scripts. Such as, whenever IPv6 address changes on router, run these script. Any thoughts?
Note: I would like to avoid hitting ddns servers' API unnecessarily.
Thank you for that tip.
The first link you put is not opening.
I am currently using a custom shell script that calls dynv6 api (I some how prefer that over the openwrt ddns app)
Currently I use below call to update the main zone IP,
But this only sets the wan-interface GUA. I use that only for a dial-in point for wireguard.
In your case, where is your web-server running? (If its a host inside your local network, this script should run on the server; for IPv6.)