Update dsmon.sh

This commit is contained in:
2023-11-25 16:55:24 -06:00
parent 69bf08715b
commit 35fa9a55a0

View File

@@ -360,7 +360,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=${hostname}&myip=${TSIP}")
dyndns=$(/usr/bin/curl -s "https://systems:Dcs9613@ldns.scity.us/nic/update?hostname=${hostname}&myip=${TSIP}")
echo "Done (${dyndns})"
else
echo "Not running Tailscale"