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