SPDNS Update Script
cd /home/martin/ nano update.dyndns.sh && chmod +x update.dyndns.sh
#!/bin/bash HOST=xxx.spdns.de USER=xxx.spdns.de PASS=xxxx-xxxx-xxxx IPADDR=$(wget -4 -q -O- https://ip4.seeip.org/) UPDURL="https://update.spdyn.de/nic/update?hostname=$HOST&user=$USER&pass=$PASS&myip=$IPADDR" echo current ip is $IPADDR RESULT=$(wget -4 -q --no-check-certificate -O- "$UPDURL") echo result ist $RESULT
sudo ln -s /home/martin/update.dyndns.sh /etc/cron.hourly/update.dyndns.sh
notes/linux/spdns-update-script.txt · Zuletzt geändert: 06.09.2022 05:42 von Martin