From 2e79ac104ee250ac68a755c1fab512727970a7f9 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 4 Jul 2022 14:09:23 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 729a9430..8755d026 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1737,14 +1737,17 @@ UPDATE_DYNDNS(){ echo -en "${idsCL[LightCyan]}Updating Primary DNS A records with any WAN IP changes... ${idsCL[Default]}" fi - /usr/bin/curl -s "https://systems:Dcs9613@pdns.scity.us/nic/update?hostname=sc1.scity.us&myip=`dig +short myip.opendns.com @resolver1.opendns.com`" > /dev/null 2>&1 - /usr/bin/curl -s "https://systems:Dcs9613@pdns.scity.us/nic/update?hostname=scity.us&myip=`dig +short myip.opendns.com @resolver1.opendns.com`" > /dev/null 2>&1 - /usr/bin/curl -s "https://systems:Dcs9613@pdns.scity.us/nic/update?hostname=sc2.scity.us&myip=`dig +short myip.opendns.com @resolver2.opendns.com`" > /dev/null 2>&1 - /usr/bin/curl -s "https://systems:Dcs9613@pdns.scity.us/nic/update?hostname=scity.xyz&myip=`dig +short myip.opendns.com @resolver1.opendns.com`" > /dev/null 2>&1 - /usr/bin/curl -s "https://systems:Dcs9613@pdns.scity.us/nic/update?hostname=schroedercity.com&myip=`dig +short myip.opendns.com @resolver1.opendns.com`" > /dev/null 2>&1 - /usr/bin/curl -s "https://systems:Dcs9613@pdns.scity.us/nic/update?hostname=dasrei.com&myip=`dig +short myip.opendns.com @resolver1.opendns.com`" > /dev/null 2>&1 - /usr/bin/curl -s "https://systems:Dcs9613@pdns.scity.us/nic/update?hostname=snsinvest.com&myip=`dig +short myip.opendns.com @resolver1.opendns.com`" > /dev/null 2>&1 - /usr/bin/curl -s "https://systems:Dcs9613@pdns.scity.us/nic/update?hostname=misfitsmc.com&myip=`dig +short myip.opendns.com @resolver1.opendns.com`" > /dev/null 2>&1 + NEWIP=`dig +short myip.opendns.com @resolver1.opendns.com` + + /usr/bin/curl -s "https://systems:Dcs9613@pdns.scity.us/nic/update?hostname=sc1.scity.us&myip=${NEWIP}" > /dev/null 2>&1 + /usr/bin/curl -s "https://systems:Dcs9613@pdns.scity.us/nic/update?hostname=scity.us&myip=${NEWIP}" > /dev/null 2>&1 + /usr/bin/curl -s "https://systems:Dcs9613@pdns.scity.us/nic/update?hostname=sc2.scity.us&myip=${NEWIP}" > /dev/null 2>&1 + /usr/bin/curl -s "https://systems:Dcs9613@pdns.scity.us/nic/update?hostname=scity.xyz&myip=${NEWIP}" > /dev/null 2>&1 + /usr/bin/curl -s "https://systems:Dcs9613@pdns.scity.us/nic/update?hostname=schroedercity.com&myip=${NEWIP}" > /dev/null 2>&1 + /usr/bin/curl -s "https://systems:Dcs9613@pdns.scity.us/nic/update?hostname=cloud.schroedercity.com&myip=${NEWIP}" > /dev/null 2>&1 + /usr/bin/curl -s "https://systems:Dcs9613@pdns.scity.us/nic/update?hostname=dasrei.com&myip=${NEWIP}" > /dev/null 2>&1 + /usr/bin/curl -s "https://systems:Dcs9613@pdns.scity.us/nic/update?hostname=snsinvest.com&myip=${NEWIP}" > /dev/null 2>&1 + /usr/bin/curl -s "https://systems:Dcs9613@pdns.scity.us/nic/update?hostname=misfitsmc.com&myip=${NEWIP}" > /dev/null 2>&1 if [ "${1}" != 'q' ]; then echo -e "${idsCL[Green]}Done${idsCL[Default]}"