This bash script is to be used for the Securepoint Dynamic DNS Service (https://www.spdns.de/, https://www.spdyn.de/).
Add your domain and password/updateToken under ~/.spdnsupdater.conf
Example:
DOMAIN=(dmxxxx.spdns.eu dyxxxx.spdns.eu qxxxx.spdns.eu upxxxx.spdns.eu)
PASSWORD=(ieya-xxxxx qsto-xxxxxx mnuq-xxxxx zfoy-xxxxx)
Run the script bash spdnsupdater.sh
- Load “lastip” from /tmp/lastip (if available)
- Get the current ip adress from “http://checkip4.spdyn.de/”
- Check if the ip was changed (since the last run)
- Checks when the last update was done (atm after 24h the script force the ip update).
- Save “lastip” to /tmp/lastip
- Load conf file
- Perform the ip update (if the ip was changed or the last check is older as 24h
- Added IPv6 support (If domain name is compatible both IPv4 and IPv6 will be set)