Skip to content

Instantly share code, notes, and snippets.

@hanshasselberg
Last active August 18, 2021 09:25
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save hanshasselberg/369a6bcd172e214fd791 to your computer and use it in GitHub Desktop.
Save hanshasselberg/369a6bcd172e214fd791 to your computer and use it in GitHub Desktop.
Install dnsperf on ubuntu
sudo apt-get install -y bind9utils libbind-dev libkrb5-dev libssl-dev libcap-dev libxml2-dev
curl ftp://ftp.nominum.com/pub/nominum/dnsperf/2.0.0.0/dnsperf-src-2.0.0.0-1.tar.gz -O
tar xfvz dnsperf-src-2.0.0.0-1.tar.gz
cd dnsperf-src-2.0.0.0-1
./configure
make
sudo make install
@mpontillo
Copy link

FYI, I've created a snap package for dnsperf based on this gist. (Thanks!)

More details here.

@rduchez
Copy link

rduchez commented Jun 5, 2017

with 2.0.0.0 and 2.1.0.0 the lGeoIP lib is also needed. you may need to add libgeoip-dev to the apt-get install command. Thanks for providing the script.

@masatokawano
Copy link

Sample query file is available on ftp://ftp.nominum.com/pub/nominum//dnsperf/data/queryfile-example-current.gz .

@maltris
Copy link

maltris commented Mar 27, 2018

Thanks for sharing!

Installing dependencies for 2.1.0.0 (tested on Ubuntu 17.10):

sudo apt-get install -y bind9utils libbind-dev libkrb5-dev libssl-dev libcap-dev libxml2-dev libjson-c-dev libgeoip-dev

@thiagoalves
Copy link

thiagoalves commented Sep 5, 2018

# Create workdir
mkdir dnsperf
cd dnsperf

# Ensure that base packages are installed
apt-get update
apt-get install -y gzip curl make gcc bind9utils libbind-dev libkrb5-dev libssl-dev libcap-dev libxml2-dev libjson-c-dev libgeoip-dev

# Download and build source code
curl ftp://ftp.nominum.com/pub/nominum/dnsperf/2.0.0.0/dnsperf-src-2.0.0.0-1.tar.gz -O
tar xfvz dnsperf-src-2.0.0.0-1.tar.gz
cd dnsperf-src-2.0.0.0-1
./configure
make
make install

# Cleanup
cd ..
rm -rf dnsperf-src-2.0.0.0-1*

# Download sample query file
curl ftp://ftp.nominum.com/pub/nominum//dnsperf/data/queryfile-example-current.gz -O
gunzip queryfile-example-current.gz

# Run a performance test
resperf -m 100 -d queryfile-example-current

@m1dnight
Copy link

There is a debian package available as well from the official maintainers: https://launchpad.net/~dns-oarc/+archive/ubuntu/dnsperf

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