X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=dynamic-ip-update.sh;h=336aaf3583e16b42e527832d67ad1e414a45ac24;hb=cb16d3950c49e44e40c765db5c50fc4f961fee29;hp=e339f7c24ccaa04951b77326a8a109d85f7ebe0a;hpb=d46190aff6f5dc65bd39524e3937dc5765895b42;p=distro-setup diff --git a/dynamic-ip-update.sh b/dynamic-ip-update.sh index e339f7c..336aaf3 100755 --- a/dynamic-ip-update.sh +++ b/dynamic-ip-update.sh @@ -4,7 +4,7 @@ set -eE -o pipefail trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR -cur="$(host -4 iank.life iankelling.org | sed -rn 's/.*has address (.*)/\1/p;T;q')" +cur="$(host -4 b8.nz iankelling.org | sed -rn 's/.*has address (.*)/\1/p;T;q')" ip=$(curl -s4 https://iankelling.org/cgi/pubip) # note, a simpler way to do this would be to ssh and use @@ -12,17 +12,6 @@ ip=$(curl -s4 https://iankelling.org/cgi/pubip) # to update bind if needed. if [[ $cur != $ip ]]; then - nsupdate -k /p/c/machine_specific/li/filesystem/etc/bind/Kiank.life.*.private <$f <