From ed9e013135ec62716491ff16ebf3bffa9bfcdef6 Mon Sep 17 00:00:00 2001 From: f Date: Tue, 1 Mar 2022 18:33:23 -0300 Subject: [PATCH] knot is always at knot.doma.in --- nsupdate.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nsupdate.sh b/nsupdate.sh index 5fe991f..eeab470 100755 --- a/nsupdate.sh +++ b/nsupdate.sh @@ -3,10 +3,9 @@ # Registers the local IPv6 address to the DNS IP6="`whatsmyip6`" -KNOT="${KNOT:-${IP6}}" +KNOT="${KNOT:-knot.${DOMAIN}}" test -z "${IP6}" && exit 1 -test -z "${KNOT}" && exit 1 test -z "${DOMAIN}" && exit 1 # Add a dot if the hostname contains the domain