GithubHelp home page GithubHelp logo

mickaelbergem / dnsstresss Goto Github PK

View Code? Open in Web Editor NEW
59.0 3.0 22.0 207 KB

Simple Go program to stress test DNS servers

Home Page: https://mickaelbergem.github.io/dnsstresss/

Go 100.00%
stress-test dns performance

dnsstresss's Introduction

DNSStresss, the DNS stress test tool

Simple Go program to stress test a DNS server.

It displays the number of queries made, along with the answer per second rate reached.

Usage

First:

go install github.com/MickaelBergem/dnsstresss@latest

Then:

$ dnsstresss -h
dnsstresss - dns stress tool

Send DNS requests as fast as possible to a given server and display the rate.

Usage: dnsstresss [option ...] targetdomain [targetdomain [...] ]
-concurrency int
            Internal buffer (default 50)
-d int      Update interval of the stats (in ms) (default 1000)
-f          Don't wait for an answer before sending another
-i          Do an iterative query instead of recursive (to stress authoritative nameservers)
-r string   Resolver to test against (default "127.0.0.1:53")
-random     Use random Request Identifiers for each query
-v          Verbose logging

For IPv6 resolvers, use brackets and quotes:

dnsstresss -r "[2001:4860:4860::8888]:53" -v google.com.

Example:

Usage of DNSStresss, the DNS stress test tool

dnsstresss's People

Contributors

mickaelbergem avatar natgho avatar natolumin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dnsstresss's Issues

Can't use IPv6 resolvers

It doesn't seem possible, with the current cli, to use ipv6 addresses, because of the ip:port format of the -r argument.

This form obviously doesn't work :

    ./dnsstresss -r 2001:4860:4860::8888:53 google.com.

This one (often used with ipv6 literals that need port information) doesn't seem to work either :

    ./dnsstresss -r [2001:4860:4860::8888]:53 google.com.

Does not work at all

%  ./dnsstresss  www.bortzmeyer.org
dnsstresss - dns stress tool
Queried domains: [www.bortzmeyer.org].
Started 50 threads.
Started timer channel.
Requests sent: 0r/s (0 total)   Replies received: 0r/s
Requests sent: 0r/s (0 total)   Replies received: 0r/s
Requests sent: 0r/s (0 total)   Replies received: 0r/s
Requests sent: 0r/s (0 total)   Replies received: 0r/s
...

And tcpdump sees zero traffic on interface lo to 127.0.0.1.

% go version
go version go1.3.3 linux/386

% uname -a
Linux ludwigVII 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt11-1+deb8u5 (2015-10-09) i686 GNU/Linux
` ` ` 

An explicit -r="127.0.0.1:53" changes nothing.

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.