This is a simple script to update DNS-records hosted by netcup. It is implemented in lua, so that it can be run on OpenWRT routers. The script needs to be edited to contain the customer specific information. All subdomains (except "mail") will be changed to point to the public ip of the device this script is being run on.
Original version using external IP lookup services (v4.ident.me and v6.ident.me) to determine public IP addresses.
Optimized version for OpenWRT that uses local ubus API to retrieve WAN IP addresses directly from the router's network interfaces, eliminating the need for external IP lookup services. This version is faster and more reliable for OpenWRT devices.
- luasocket
- luasec
- luci-lib-jsonc (a lightweight alternative to lua-cjson)