aboutsummaryrefslogtreecommitdiff
path: root/scripts/testzonefile.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/testzonefile.sh')
-rwxr-xr-xscripts/testzonefile.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/testzonefile.sh b/scripts/testzonefile.sh
new file mode 100755
index 0000000..3b870dc
--- /dev/null
+++ b/scripts/testzonefile.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+if [ "$1" = "test" ]; then
+ for i in $(seq 250); do
+ echo "$i"
+ for o in $(seq 10); do
+ HOST="t$i-$o.example.com."
+ dig -p 5333 +short "$HOST" @localhost > /dev/null &
+ done
+ sleep 1
+ done
+elif [ "$1" = gen ]; then
+ for i in $(seq 250); do
+ for o in $(seq 10); do
+ HOST="t$i-$o.example.com."
+ IP="10.10.$i.$o"
+
+ echo "$HOST 3600 IN A $IP"
+ done
+ done
+else
+ echo "Usage $0 gen|test"
+fi