exclude SOA-only zones
authorChristian Grothoff <christian@grothoff.org>
Sat, 26 May 2018 16:11:21 +0000 (18:11 +0200)
committerChristian Grothoff <christian@grothoff.org>
Sat, 26 May 2018 16:11:29 +0000 (18:11 +0200)
contrib/scripts/zonewalk-to-types.sh

index 54c887b8f48c203e85d965d4be3ae6e308de2023..dfe15a8e3406b0823d98d55417f564f29e9c4514 100755 (executable)
@@ -10,7 +10,7 @@ NUM_CLIENTS=3
 # FILE ($1) contains results from DNS lookup; strip
 # everything but the hostnames, remove duplicates
 # and then randomize the order.
-cat $1 | awk '{print $1}' | sort | uniq | shuf > $1.tmp
+cat $1 | grep -v SOA | awk '{print $1}' | sort | uniq | shuf > $1.tmp
 TOTAL=`cat $1.tmp | wc -l`
 GROUP_SIZE=`expr $TOTAL / \( $NUM_CLIENTS + 1 \)`
 echo "Creating $NUM_CLIENTS benchmark sets with 2x $GROUP_SIZE entries each."