From 3db7899ab9b3f5705f6240f96f6b22a845295026 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 13 Nov 2023 17:50:53 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index ceec3e19..4de77f83 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -519,9 +519,11 @@ UPDATE_DYNDNS(){ fi if [ "${1}" == "home" ]; then - OLDIP=`dig +short sc1.scity.us @ns1.scity.us +time=2` + OLDIP=`dig +short sc1.scity.us @wdns.scity.us +time=2` elif [ "${1}" == "offsite" ]; then - OLDIP=`dig +short offsite.scity.us @ns1.scity.us +time=2` + OLDIP=`dig +short offsite.scity.us @wdns.scity.us +time=2` + elif [ "${1}" == "kyle" ]; then + OLDIP=`dig +short wan.pattonfam.com @wdns.scity.us +time=2` fi if [ "${2}" != 'q' ]; then echo -e "${idsCL[Cyan]}${OLDIP}" @@ -552,6 +554,9 @@ UPDATE_DYNDNS(){ /usr/bin/curl -s "https://${NM_DYNUSER}:${NM_DYNPASS}@dns.scity.us/nic/update?hostname=offsite.scity.us&myip=${NEWIP}" > /dev/null 2>&1 /usr/bin/curl -s "https://${NM_DYNUSER}:${NM_DYNPASS}@dns.scity.us/nic/update?hostname=backup.scity.us&myip=${NEWIP}" > /dev/null 2>&1 + elif [ "${1}" == "kyle" ]; then + /usr/bin/curl -s "https://${NM_DYNUSER}:${NM_DYNPASS}@wdns.scity.us/nic/update?hostname=wan.pattonfam.com&myip=${NEWIP}" > /dev/null 2>&1 + fi SENDNOTICE "${1^^} DYNDNS Updated" "Updated ${1^} WAN IP from '${OLDIP}' to '${NEWIP}'" [ "${2}" != 'q' ] && echo -e "${idsCL[Green]}done${idsCL[Default]}"