From f8d943afde63b4c0456247892e01a48f34f5b233 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 30 Jul 2022 15:53:14 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index c5379667..91546fef 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1798,7 +1798,7 @@ UPDATE_DYNDNS(){ OLDIP=`dig +short sc1.scity.us @ns1.scity.us` NEWIP=`dig +short myip.opendns.com @resolver1.opendns.com` - if [ "${OLDIP}" != "${NEWIP}" ]; then + if [ "${OLDIP}" != "${NEWIP}" ] && [ "${NEWIP}" != ";; connection timed out; no servers could be reached" ]; then /usr/bin/curl -s "https://systems:Dcs9613@pdns.scity.us/nic/update?hostname=sc1.scity.us&myip=${NEWIP}" > /dev/null 2>&1 /usr/bin/curl -s "https://systems:Dcs9613@pdns.scity.us/nic/update?hostname=sc2.scity.us&myip=${NEWIP}" > /dev/null 2>&1 /usr/bin/curl -s "https://systems:Dcs9613@pdns.scity.us/nic/update?hostname=scity.us&myip=${NEWIP}" > /dev/null 2>&1