After failing to create a custom Inadyn DDNS configuration for deSEC.io that would update both IPv4 and IPv6, I've created a script that updates my deSEC domain IP.
It is a simple yet effective script that updates a deSEC.io domain name with the latest WAN IPv4 and IPv6 addresses. It uses deSEC's API to push updates.
If anyone wants to try it out, it is available on Github.
First, add the script to your
Second, edit the script, look at its header and change the deSEC values in to match your own configuration.
Third, add a schedule for it. I used
It was created for personal use, but may be useful for someone else as well.
Cheers
It is a simple yet effective script that updates a deSEC.io domain name with the latest WAN IPv4 and IPv6 addresses. It uses deSEC's API to push updates.
If anyone wants to try it out, it is available on Github.
First, add the script to your
/jffs
partition.wget -qO /jffs/scripts/desec_ddns.sh https://diasdmhub.github.io/scripts/mt_desec_ddns/desec_ddns.sh
Second, edit the script, look at its header and change the deSEC values in to match your own configuration.
# nano /jffs/scripts/desec_ddns.sh
Bash:
# deSEC domain
desecDomain="## YOUR DOMAIN NAME ##"
# deSEC DNS Token
desecToken="## DESEC TOKEN ##"
# WAN interface name
wanInterface="## YOUR WAN INTERFACE ##"
Third, add a schedule for it. I used
init-start
and appended a crontab directive.# nano /jffs/scripts/init-start
# deSEC DDNS update script scheduled for every 30 minutes
cru a deSEC_DDNS "*/30 * * * * /jffs/scripts/desec_ddns.sh"
It was created for personal use, but may be useful for someone else as well.
Cheers
Last edited: