diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2023-02-26 17:19:56 -0500 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2023-02-26 17:19:56 -0500 |
commit | d7e7271306957131ed42f2ede04038d745468fd3 (patch) | |
tree | d4dfc5dca1b51053bf0e2f15f925c0482ef89d1c /tools | |
parent | 71514f067bfb999b5b5712d2b5f6a3184c3505c0 (diff) |
router config
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/update-dns.sh | 4 |
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 |