Last active
August 18, 2021 09:25
-
-
Save hanshasselberg/369a6bcd172e214fd791 to your computer and use it in GitHub Desktop.
Install dnsperf on ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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.
Sample query file is available on ftp://ftp.nominum.com/pub/nominum//dnsperf/data/queryfile-example-current.gz .
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
# 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
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
FYI, I've created a snap package for
dnsperf
based on this gist. (Thanks!)More details here.