summaryrefslogtreecommitdiff
path: root/tools/update-dns.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/update-dns.sh')
-rwxr-xr-xtools/update-dns.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/update-dns.sh b/tools/update-dns.sh
index a08ac26..f4f08e6 100755
--- a/tools/update-dns.sh
+++ b/tools/update-dns.sh
@@ -1,5 +1,5 @@
keyfile=/opt/secret/bind/dynamic.orbekk.com/update/named.conf.key
-INTERFACE=bond0.10
+INTERFACE=wan-vport
update() {
local type="$1"
@@ -18,7 +18,7 @@ update() {
} | nsupdate -v -k "$keyfile"
}
-ip_4="$(ip -br -4 addr list dev ${INTERFACE} | awk -F' *|/' '{print $3}')"
+ip_4="$(ip netns exec router ip -br -4 addr list dev ${INTERFACE} | awk -F' *|/' '{print $3}')"
if [[ -n "$ip_4" ]]; then
update A $(hostname).dynamic.orbekk.com $ip_4
fi