iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
i3 improvements
[distro-setup]
/
dynamic-ip-update
diff --git
a/dynamic-ip-update
b/dynamic-ip-update
index 12726ae37335f80e0d0d2acdb6eca9d50b3d2ee2..44d9ffe40fadd925aa262b9247aa24f1195e3edb 100755
(executable)
--- a/
dynamic-ip-update
+++ b/
dynamic-ip-update
@@
-88,6
+88,11
@@
main() {
case $gateway in
10.2.0.1)
dyndomain=b8.nz
case $gateway in
10.2.0.1)
dyndomain=b8.nz
+ # This domain is for any case where we want some different
+ # configuration based on lan vs wan. For right now, the only use
+ # is for ssh config to use port forwarding ports on the wan
+ # domain.
+ dyndomain_internet=i.b8.nz
;;
*)
return 0
;;
*)
return 0
@@
-176,6
+181,8
@@
EOF
cat >>$tmpf <<EOF
update delete $dyndomain. A
update add $dyndomain. 300 A $ip4
cat >>$tmpf <<EOF
update delete $dyndomain. A
update add $dyndomain. 300 A $ip4
+update delete $dyndomain_internet. A
+update add $dyndomain_internet. 300 A $ip4
EOF
fi
EOF
fi