Update dsmon.sh

This commit is contained in:
2023-07-15 19:02:43 -05:00
parent ad05ee0791
commit ee6e3610c9

View File

@@ -335,7 +335,7 @@ GETTSIP_NODE(){
([ "${hostname}" == "" ] || [[ "${hostname}" != *".scity"* ]]) && hostname=$(hostname) && hostname="${hostname,,}.ts.scity.us" || hostname=${hostname/.scity/.ts.scity}
echo "Tailscale running, TSIP: ${TSIP}"
echo -en "Updating DNS for '${hostname}' ... "
dyndns=$(/usr/bin/curl -s "https://systems:Dcs9613@dns.scity.us/nic/update?hostname=backup.ts.scity.us&myip=${TSIP}")
dyndns=$(/usr/bin/curl -s "https://systems:Dcs9613@dns.scity.us/nic/update?hostname=${hostname}&myip=${TSIP}")
echo "Done (${dyndns})"
else
echo "Not running Tailscale"