Skip to content

Commit

Permalink
do not match SOA records
Browse files Browse the repository at this point in the history
  • Loading branch information
Emzy committed Jun 21, 2022
1 parent 0cc2ce4 commit c33e5ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/dnsupdate
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c33e5ef

Please sign in to comment.