# Fallback-Lösung gesucht: Was tun, wenn DDNS ausfällt?

**URL:** <https://ask.linuxmuster.net/t/fallback-loesung-gesucht-was-tun-wenn-ddns-ausfaellt/2181>\
**Category:** IT in der Schule\
**Created:** [11. April 2018 um 17:55 UTC](https://ask.linuxmuster.net/t/fallback-loesung-gesucht-was-tun-wenn-ddns-ausfaellt/2181 "2018-04-11T17:55:11Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![morpweb](https://ask.linuxmuster.net/letter_avatar_proxy/v4/letter/m/77aa72/32.png) [@morpweb](https://ask.linuxmuster.net/u/morpweb)\
**Post date:** [12. April 2018 um 04:36 UTC](https://ask.linuxmuster.net/t/fallback-loesung-gesucht-was-tun-wenn-ddns-ausfaellt/2181/7 "2018-04-12T04:36:22Z")

</div>

Hallo Michael,

kann [https://www.ddnss.de](https://www.ddnss.de) empfehlen. Seit Nutzung habe ich noch nie einen Ausfall registriert. Update-Skript könnte z.B. so aussehen:

```
#!/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"
   RESULT=`lynx -dump "http://www.ddnss.de/upd.php?key=xxx&host=xxx.ddnss.de"`
   echo "ddnss says: $RESULT!"
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"

```

Grüße

---

_[View the full topic](https://ask.linuxmuster.net/t/fallback-loesung-gesucht-was-tun-wenn-ddns-ausfaellt/2181)._
