Update nodemgmt-scripts.sh
This commit is contained in:
@@ -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]}"
|
||||
|
||||
Reference in New Issue
Block a user