Skip to content

Instantly share code, notes, and snippets.

@kometchtech
Forked from hanshasselberg/dnsperf_install.sh
Last active November 30, 2018 14:42
Show Gist options
  • Save kometchtech/c5681b2a70b30c99bf7e834ffb3abba5 to your computer and use it in GitHub Desktop.
Save kometchtech/c5681b2a70b30c99bf7e834ffb3abba5 to your computer and use it in GitHub Desktop.
Install dnsperf on ubuntu 16.04
#!/bin/bash
# Installing related packages
sudo apt-get install -y bind9utils libbind-dev libkrb5-dev libssl-dev libcap-dev libxml2-dev
# Download query sample file
curl -LO ftp://ftp.nominum.com/pub/nominum/dnsperf/data/queryfile-example-current.gz$
# Download dnsperf source file
curl ftp://ftp.nominum.com/pub/nominum/dnsperf/2.1.0.0/dnsperf-src-2.1.0.0-1.tar.gz -O
# Extracting files
tar xfvz dnsperf-src-2.1.0.0-1.tar.gz
cd dnsperf-src-2.1.0.0-1
# configure
./configure
make clean
make
# install
sudo make install
@kometchtech
Copy link
Author

以下の環境で導入を確認

  • Ubnutu 16.04.3
  • dnsperf 2.1.0.0

@vovinacci
Copy link

vovinacci commented Aug 3, 2018

Thanks for the howto. It failed for me on clean Ubuntu 16.04.3 when building with
/usr/bin/ld: cannot find -lGeoIP
After apt-get install geoip-bin libgeoip-dev build was just fine.

@vvb0x56
Copy link

vvb0x56 commented Nov 8, 2018

Thanks for howto, it helped me, also.
Could you also add apt install build-essential, for those who may not have compilator installed.

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