install queryperf
cd /usr/local/src
wget http://ftp.isc.org/isc/bind9/9.12.1/bind-9.12.1.tar.gz
compile queryperf
tar -zxvf bind-9.12.1.tar.gz
cd /usr/local/src/bind-9.12.1/contrib/queryperf
./configure; make # will generate queryperf binary
cp queryperf /usr/bin
queryperf uses the format:
queryperf [-d datafile] [-s server_addr] [-p port] [-q num_queries]
-d: Followed by a file, the content of the file is the user's request to DNS, one request per line, so for testing, we can write tens of thousands of entries in it.
-s: DNS server address
-p: DNS server port
-q: how many times to request
Other open source testing tools tcpcopy