diff options
author | Erich Eckner <git@eckner.net> | 2017-03-10 14:35:51 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-03-10 14:35:51 +0100 |
commit | 58f7c63bc59aac8c4dc75043301673c513733abe (patch) | |
tree | c903bd968f7b866f223c022ec5519725fb9e7c62 | |
parent | f0ca8c72859259c2dd9a919b7ece1878da058a58 (diff) | |
download | update-ddns-58f7c63bc59aac8c4dc75043301673c513733abe.tar.xz |
ignore authority-section-ip
-rw-r--r-- | update-ddns.in | 3 |
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 |