Skip to content

Instantly share code, notes, and snippets.

@simonclausen
Last active September 29, 2020 08:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simonclausen/404ff73ef1f97340c9685bdc1dc905ad to your computer and use it in GitHub Desktop.
Save simonclausen/404ff73ef1f97340c9685bdc1dc905ad to your computer and use it in GitHub Desktop.

Installing dnsperf and resperf

This example is installation from source on Debian 9. Package installs are dependencies for the build. These should apply to other distributions as well.

After dependcies are installed, the usual configure, make, make install can be done.

apt-get install -y bind9utils libbind-dev gnuplot libkrb5-dev libssl-dev libcap-dev libxml2-dev libgeoip-dev
wget ftp://ftp.nominum.com/pub/nominum/dnsperf/2.1.0.0/dnsperf-src-2.1.0.0-1.tar.gz
tar -zxvf dnsperf-src-2.1.0.0-1.tar.gz
cd dnsperf-src-2.1.0.0-1/
./configure
make
make install

Getting a current list of names to test with

To get the current list of example queries: wget ftp://ftp.nominum.com/pub/nominum//dnsperf/data/queryfile-example-current.gz

Using resperf

Ramp up from 0 to 100.000 req/sec over a period of 60 seconds (default test):

resperf-report -s 8.8.8.8 -d queryfile-example-current

Test with 1000 req/sec for 10 minuttes (600 sec) with a 5 second ramp up:

resperf-report -s 8.8.8.8 -d queryfile-example-current -c 600 -m 1000 -r 5

resperf will stop the test when one of these conditions are met: 1) server successfully replying to all requests, 2) exceeding 65,536 outstanding queries or 3) resperf falling 1000 queries behind what it expected to send

Man page: https://linux.die.net/man/1/resperf

@SuperFunks
Copy link

SuperFunks commented Sep 29, 2020

I think the links could use some updating - the dnsperf gzip's are available here:
https://www.dns-oarc.net/tools/dnsperf

Also the pkg-config package is now a dependency to build the binary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment