# Ddclient updated IP nicht mehr

**URL:** <https://ask.linuxmuster.net/t/ddclient-updated-ip-nicht-mehr/4978>\
**Category:** Server\
**Created:** [12. März 2020 um 17:36 UTC](https://ask.linuxmuster.net/t/ddclient-updated-ip-nicht-mehr/4978 "2020-03-12T17:36:00Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Michael](https://ask.linuxmuster.net/user_avatar/ask.linuxmuster.net/michael/32/59_2.png) [@Michael](https://ask.linuxmuster.net/u/Michael)\
**Post date:** [12. März 2020 um 19:32 UTC](https://ask.linuxmuster.net/t/ddclient-updated-ip-nicht-mehr/4978/5 "2020-03-12T19:32:25Z")

</div>

Hallo Steffen.

> [@crazy-to-bike](#):
>
> Daher wäre ein alternatives IP-Update-Skript schon sehr interessant.

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

```auto
#!/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](https://ask.linuxmuster.net/t/fallback-loesung-gesucht-was-tun-wenn-ddns-ausfaellt/2181/7)

---

_[View the full topic](https://ask.linuxmuster.net/t/ddclient-updated-ip-nicht-mehr/4978)._
