diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 0c28f40b..68af1683 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1001,15 +1001,15 @@ UPDATE_DYNDNS(){ fi if [ "${1}" == "home" ]; then - OLDIP=`dig +short sc1.scity.us @ns1.scity.us` + OLDIP=`dig +short sc1.scity.us @ns1.scity.us +time=2` elif [ "${1}" == "offsite" ]; then - OLDIP=`dig +short offsite.scity.us @ns1.scity.us` + OLDIP=`dig +short offsite.scity.us @ns1.scity.us +time=2` fi if [ "${2}" != 'q' ]; then echo -e "${idsCL[Cyan]}${OLDIP}" echo -en "${idsCL[LightCyan]}New IP ${idsCL[White]}: " fi - NEWIP=`dig +short myip.opendns.com @resolver1.opendns.com` + NEWIP=`dig +short myip.opendns.com @resolver1.opendns.com +time=2` [ "${2}" != 'q' ] && echo -e "${idsCL[Green]}${NEWIP}" if ([ "${OLDIP}" != "" ] && [ "${NEWIP}" != "" ] && [[ "${OLDIP}" != *";"* ]] && [[ "${NEWIP}" != *";"* ]] && [ "${OLDIP}" != "${NEWIP}" ]) || [ "${2}" == "force" ]; then