Ddclient updated IP nicht mehr

Hallo Steffen.

Hier kommt es … ich habe es auch hier aus dem Forum.
Wer war der ursprüngliche Autor?

#!/bin/bash

IP=`curl -s http://checkip.dyndns.org | grep -o '\([0-9]\{1,3\}\.\)\{3\}[0-9]\{1,3\}'`

ABUSE_LOCK_FILE="/tmp/ddnss.abuse"
LAST_IP_FILE="/tmp/lastip"
LAST_IP=`cat $LAST_IP_FILE`

#lockfile check, lockfile is only used if a abuse result appears
if [ -e "$ABUSE_LOCK_FILE" ]; then
     echo "Dyndns abuse lockfile exisits: $ABUSE_LOCK_FILE"  
     exit 1
fi
#end of lockfile check

if [ "$IP" != "$LAST_IP" ]; then
   echo "Current IP: $IP"

# drei Services definiert: ddnds, goip und afraid.org:

   RESULT=`lynx -dump "https://ddnss.de/upd.php?key=hiermeinkey"`
   echo "ddnss says: $RESULT!"
   curl --data "username=meinkey&subdomain=meinesubdomain.goip.de" https://www.goip.de/setip? > /var/log/goip.log
   curl -k https://freedns.afraid.org/dynamic/update.php?hiermeinkey >> /var/log/goip.log

else
   echo "IP is still the same: $LAST_IP"
fi

if [ "$RESULT" == "abuse" ]; then
   echo "Abuse lock!"
   echo "Abuse lock!" > "$ABUSE_LOCK_FILE"
fi

echo "$IP" > "$LAST_IP_FILE"

hth,
Michael

Ich habe die Quelle wiedergefunden … ursprünglich kam es von hier:
Fallback-Lösung gesucht: Was tun, wenn DDNS ausfällt? - #7 von morpweb