Giter Club home page Giter Club logo

dnsperf's Introduction

DNSPERF

DNS benchmark tool on docker

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)

Running the image form quay.io

docker run -it --rm quay.io/ssro/dnsperf

or

docker run -it --rm quay.io/ssro/dnsperf:qdf

Building your own image

  1. Clone this repo and cd into it
  2. docker build -t dnsperf .
  3. docker run -it --rm some-dnsperf dnsperf

For help just invoke dnsperf -h inside the container

Including the sample query file

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

Usage

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.