X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=dynamic-ip-update.sh;h=336aaf3583e16b42e527832d67ad1e414a45ac24;hb=2cff2dd2b8040e6cbd721932ae09142881d7e0a6;hp=e49ff3145e57878eb5e8a917f2447ceb62d2e2ab;hpb=4c39892ef8fa3379ce36adbe870723324cb71cea;p=distro-setup diff --git a/dynamic-ip-update.sh b/dynamic-ip-update.sh index e49ff31..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 <