blob: 3b870dcb54897dd94e81d93460eb25b1ba0d2f32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
|