Skip to content

Instantly share code, notes, and snippets.

@hanshasselberg
Last active August 18, 2021 09:25
Show Gist options
  • 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
@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