Added dynu create

This commit is contained in:
2026-04-16 12:57:09 +02:00
parent bd04430411
commit 93101d0293
2 changed files with 28 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
set -e
DYN_HOSTNAME=${DYN_HOSTNAME:-""}
DYN_USER=${DYN_USER:-""}
DYN_PASS=${DYN_PASS:-""}
WAIT_TIME=${WAIT_TIME:-"10"}
GET_IP_SERVER=${GET_IP_SERVER:-"http://ipecho.net/plain"}
while true; do
EXT_IP=${EXT_IP:-$(curl -s $GET_IP_SERVER)}
echo "public IP: $EXT_IP"
curl -s "https://api.dynu.com/nice/update?username=${DYN_USER}&password=${DYN_PASS}&hostname=${DYN_HOSTNAME}&myip=${EXT_IP}"
echo
sleep $WAIT_TIME
done