This commit is contained in:
alcapone1933
2022-12-29 14:31:11 +01:00
parent 07275139ed
commit 5c6ad37592
5 changed files with 40 additions and 6 deletions

View File

@@ -5,3 +5,10 @@ if ! curl -sSL --user-agent "${CURL_USER_AGENT}" --fail "https://ipv64.net" 2>&1
echo "$DATUM FEHLER !!! - 404 Sie haben kein Netzwerk oder Internetzugang oder die Webseite ipv64.net ist nicht erreichbar"
exit 1
fi
STATUS="OK"
NAMESERVER_CHECK=$(dig +timeout=1 @ns1.ipv64.net 2> /dev/null)
echo "$NAMESERVER_CHECK" | grep -s -q "timed out" && { NAMESERVER_CHECK="Timeout" ; STATUS="FAIL" ; }
if [ "${STATUS}" = "FAIL" ] ; then
echo "$DATUM FEHLER !!! - 404 NAMESERVER ist nicht ist nicht erreichbar, Sie haben kein Netzwerk oder Internetzugang"
exit 1
fi