summaryrefslogtreecommitdiff
path: root/update-ddns.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-03-10 14:35:51 +0100
committerErich Eckner <git@eckner.net>2017-03-10 14:35:51 +0100
commit58f7c63bc59aac8c4dc75043301673c513733abe (patch)
treec903bd968f7b866f223c022ec5519725fb9e7c62 /update-ddns.in
parentf0ca8c72859259c2dd9a919b7ece1878da058a58 (diff)
downloadupdate-ddns-58f7c63bc59aac8c4dc75043301673c513733abe.tar.xz
ignore authority-section-ip
Diffstat (limited to 'update-ddns.in')
-rw-r--r--update-ddns.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/update-ddns.in b/update-ddns.in
index 063e08a..caace9c 100644
--- a/update-ddns.in
+++ b/update-ddns.in
@@ -98,7 +98,8 @@ do
else
dnsIps="$(
dig $1 "${dnsName}" ${dnsVers[${j}]} | \
- grep -v '^\s*\(;\|$\)' | \
+ sed '/^;; AUTHORITY SECTION:$/Q' | \
+ grep '^[^;]' | \
grep "\s${dnsVers[${j}]}\s" | \
awk '{print $5}' | \
sort -u