summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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