Alpine linux build of Nominum dnsperf
Building an image out of this repository won't create an image with the sample file, unless you
explicitly create your own by uncommenting few lines in Dockerfile (see below). However I'm providing an image
with the compressed sample data file (qdf
tag)
docker run -it --rm quay.io/ssro/dnsperf
or
docker run -it --rm quay.io/ssro/dnsperf:qdf
- Clone this repo and
cd
into it docker build -t dnsperf .
docker run -it --rm some-dnsperf dnsperf
For help just invoke dnsperf -h
inside the container
Uncomment below code inside dockerfile to include the file and rebuild
# RUN wget ftp://ftp.nominum.com/pub/nominum/dnsperf/data/queryfile-example-current.gz \
# && gunzip queryfile-example-current.gz \
# && rm -rf queryfile-example-current.gz
This will take some time, based on how fast is the download.
Also, the sample file can be downloaded inside the container using the above ftp link
Query server 127.0.0.1 (using the sample query file) for 60 seconds from 1 client with 10 requests/sec:
dnsperf -s 127.0.0.1 -d queryfile-example-current -l 60 -c 1 -Q 10
Test 2 DNS servers for 30 seconds:
dnsperf -s 127.0.0.1 -s 127.0.0.2 -d queryfile-example-current -l 30