diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/update-dns.sh | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/update-dns.sh b/tools/update-dns.sh index 4c0160c..97fbb50 100755 --- a/tools/update-dns.sh +++ b/tools/update-dns.sh @@ -21,8 +21,7 @@ ip_4="$(ip -br -4 addr list dev eno1 | awk -F' *|/' '{print $3}')" if [[ -n "$ip_4" ]]; then update A $(hostname).dynamic.orbekk.com $ip_4 fi -# IPv6 currently broken on Spectrum :( -# ip_6="$(ip -br -6 addr list scope global dev eno1 | awk -F' *|/' '{print $3}')" -# if [[ -n "$ip_6" ]]; then -# update AAAA $(hostname).dynamic.orbekk.com $ip_6 -# fi +ip_6="$(ip -br -6 addr list scope global dev eno1 | awk -F' *|/' '{print $3}')" +if [[ -n "$ip_6" ]]; then + update AAAA $(hostname).dynamic.orbekk.com $ip_6 +fi |