DNSPerf and ResPerf are free tools developed by Nominum that make it simple to gather accurate latency and throughput metrics for Domain Name Service (DNS). These tools are easy-to-use and simulate typical Internet so network operators can benchmark their naming and addressing infrastructure and plan for upgrades. The latest version of the DNSPerf and ResPerf can be used with test files that include IPv6 queries.
DNSPerf “self-paces” the DNS query load to simulate network conditions. New features in DNSPerf improve the precision of latency measurements and allow for per packet per-query latency reporting is possible. DNSPerf is now multithreaded, multiple DNSPerf clients can be supported in multicore systems (each client requires two cores). The output of DNSPerf has also been improved so it is more concise and useful. Latency data can be used to make detailed graphs so it is simple for network operators to take advantage of the data.
Read More: What is DNSPerf and How to use it
ResPerf systematically increases the query rate and monitors the response rate to simulate caching DNS services.
How to Install DNSPerf on Ubuntu
Firstly, we will need to install some dependancies:
# apt-get install libbind-dev libkrb5-dev libssl-dev libcap-dev libxml2-dev -y # apt-get install bind9utils make -y
Now let’s download the source code
# wget ftp://ftp.nominum.com/pub/nominum/dnsperf/22.214.171.124/dnsperf-src-126.96.36.199-1.tar.gz
Uncompress and compile.
# tar xfvz dnsperf-src-188.8.131.52-1.tar.gz # cd dnsperf-src-184.108.40.206-1 # ./configure # make # make install
CentOS 6.3 64 bit: install dnsperf from source code
(You can download directly from http://www.nominum.com/support/measurement-tools/)
# tar xzvf dnsperf-src-220.127.116.11-1.tar.gz # cd dnsperf-src-18.104.22.168-1
To build dnssperf , We need BIND 9.4 to be installed , including library and header files. Lets do it before proceed,
# yum install -y bind bind-devel bind-libs # yum install make gcc –y
It’s done, now let’s start build dnsperf
# sh configure
Once build a make file. Run,
# make # make install
Now dnsperf got installed.
install dnsperf 2.1 on CentOS7.2
Let’s see How to install DNSPerf on CentOS/Redhat 7.2
Here also same, first we have to install Bind service from Binery with Library and dependencies. Download from https://www.isc.org/downloads/
# tar xzvf bind-9.10.4b2.tar.gz # cd bind-9.10.4b2
Build a make using configure
Rerun to add all required libraries,
# ./configure # make # make install
You can download dnsperf at http://nominum.com/measurement-tools
# tar xzvf dnsperf-src-22.214.171.124-1.tar.gz # cd dnsperf-src-126.96.36.199-1 # sh configure # make # make install
To make sure all DNsperf file;
# ls /usr/local/bin/*perf* /usr/local/bin/dnsperf /usr/local/bin/resperf /usr/local/bin/resperf-report