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