You can use this script to update your no-ip domain name in your OpenWrt-based router, if you don't want to use the bulky ddns-scripts
package (documented here) provided.
-
Edit the values of the variables in the script
T_DEV : The actual (NOT logical) interface name of your WAN interface
T_USER : Your No-IP username or email
T_PASS : Your NO-IP password
T_DOMS : Your domain name(s) to be updated (separate multiple domains with a,
in the string) -
Copy the script to your router
scp noip-ddns-hotplug root@<router-ip>:/etc/hotplug.d/iface/99-ddns
The No-IP API documentation for updating your domain name is here.
- Set the user-agent string
- Interpret the response
- Add IPv6 support
- Set domain
offline
status when interface is down