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]}"