From c33e5effd0630318fce6817b80f767ea4b466b52 Mon Sep 17 00:00:00 2001 From: Stephan Oeste Date: Tue, 21 Jun 2022 13:56:11 +0200 Subject: [PATCH] do not match SOA records --- contrib/dnsupdate | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/dnsupdate b/contrib/dnsupdate index a592c2ca..d7c4813d 100644 --- a/contrib/dnsupdate +++ b/contrib/dnsupdate @@ -18,7 +18,7 @@ FILTERS='x1 x5 x9 xd x49 x400 x404 x408 x40c x448' echo update delete ${ZONE} aaaa for proto in A AAAA ; do dig -t ${proto} -p 5353 @127.0.0.1 ${ZONE} | \ - grep -i "^${ZONE}.*A[[:space:]]" | \ + grep -i "^${ZONE}.*[[:space:]]A" | \ awk '{ print "update add "$1" 3600 "$4" "$5"" }' done echo send @@ -34,7 +34,7 @@ for filter in ${FILTERS} ; do echo update delete ${filter}.${ZONE} aaaa for proto in A AAAA ; do dig -t ${proto} -p 5353 @127.0.0.1 ${filter}.${ZONE} | \ - grep -i "^${filter}.*A[[:space:]]" | \ + grep -i "^${filter}.*[[:space:]]A" | \ awk '{ print "update add "$1" 3600 "$4" "$5"" }' done echo send