iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
various fixes and updates
[distro-setup]
/
dynamic-ip-update
diff --git
a/dynamic-ip-update
b/dynamic-ip-update
index f696c0ceba3312e0bc4b56a6316d9c309a863c96..db139d4f5347aaa5ec7ba782c776f5f9f77a8b47 100755
(executable)
--- a/
dynamic-ip-update
+++ b/
dynamic-ip-update
@@
-1,6
+1,5
@@
-#!/bin/bash -l
-set -eE -o pipefail
-trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
+#!/bin/bash
+source ~/.bashrc
fqdn=$(hostname -f)
fqdn=$(hostname -f)
@@
-80,18
+79,20
@@
answer
quit
EOF
quit
EOF
-nsupdate -k /p/c/machine_specific/li/filesystem/etc/bind/Kb8.nz.*.private <$f
+nsupdate -k /p/c/machine_specific/linode/filesystem/etc/bind/Kb8.nz.*.private <$f
+sed -i 's/^server .*/server l2.b8.nz/' $f
+nsupdate -k /p/c/machine_specific/linode/filesystem/etc/bind/Kb8.nz.*.private <$f
exit
# # persistent initial setup for this:
exit
# # persistent initial setup for this:
-# # create files in /a/c/machine_specific/li/filesystem/etc/bind
+# # create files in /a/c/machine_specific/li
node
/filesystem/etc/bind
# # note, conflink also does some group ownership stuff.
# # note, conflink also does some group ownership stuff.
-mkc /p/c/machine_specific/li/filesystem/etc/bind
-s dnssec-keygen -a HMAC-SHA512 -b 512 -n HOST b8.nz
+mkc /p/c/machine_specific/li
node
/filesystem/etc/bind
+s
udo
dnssec-keygen -a HMAC-SHA512 -b 512 -n HOST b8.nz
user=$(id -un)
user=$(id -un)
-s chown $user:$user *
+s
udo
chown $user:$user *
f=key.b8.nz
f=key.b8.nz