From 58f7c63bc59aac8c4dc75043301673c513733abe Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 10 Mar 2017 14:35:51 +0100 Subject: ignore authority-section-ip --- update-ddns.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2