From 24992daacbfc18a826e1ae43f00188522e128c49 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 1 Jul 2023 19:05:47 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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