This bash script is to be used for the Securepoint Dynamic DNS Service (https://www.spdns.de/).
Add your domain and password 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” and “lastcheck” 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” and “lastcheck” to /tmp/lastip
- Load conf file
- Perform the ip update (if the ip was changed or the last check is older as 24h