-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #189 from Tantalor93/docs
Docs
- Loading branch information
Showing
19 changed files
with
245 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem "jekyll", "~> 4.3" # installed by `gem jekyll` | ||
gem "jekyll", "~> 4.3.2" # installed by `gem jekyll` | ||
# gem "webrick" # required when using Ruby >= 3 and Jekyll <= 4.2.2 | ||
|
||
gem "just-the-docs", "0.5.0" # pinned to the current release | ||
gem "just-the-docs", "0.7.0" # pinned to the current release | ||
# gem "just-the-docs" # always download the latest release | ||
|
||
gem "jekyll-relative-links", "0.7.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
title: Basics | ||
layout: default | ||
parent: Examples | ||
--- | ||
|
||
# Basics | ||
*dnspyre* is a tool for benchmarking DNS servers, it works by spawning configured number of concurrent worker thread, where each worker thread | ||
is sending DNS queries for a domains provided to the *dnspyre* tool. The *dnspyre* runs until on the conditions is met: | ||
* configured number of repetitions of domain queries is sent (`-n`, `--number` flag is specified) | ||
* the required duration of benchmark run elapses (`--duration` is specified) | ||
* benchmark is interrupted with the SIGINT signal | ||
|
||
## Run benchmark with the configured number of repetitions | ||
This example runs the benchmark in 10 parallel threads, where each thread will send 2 `example.com.` DNS queries | ||
of type `A` one after another to the `8.8.8.8` server | ||
|
||
``` | ||
dnspyre -n 2 -c 10 --server 8.8.8.8 example.com | ||
``` | ||
|
||
## Run benchmark over specified time | ||
This example runs the benchmark in 10 parallel threads for a duration of 30 seconds while sending `example.com` DNS queries of type `A` | ||
to the `8.8.8.8` server | ||
|
||
``` | ||
dnspyre --duration 30s -c 10 --server 8.8.8.8 google.com | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
title: Concurrency | ||
layout: default | ||
parent: Examples | ||
--- | ||
|
||
# Concurrency | ||
*dnspyre* by default benchmarks a DNS server using a single thread (worker). This can be adjusted using `-c` (`--concurrency`) flag. | ||
|
||
In this example, the benchmark runs in 10 parallel threads (option `-c`) , where each thread will send 2 (option `-n`) `example.com.` DNS queries | ||
of type `A` one after another to the `8.8.8.8` server | ||
|
||
``` | ||
dnspyre -n 2 -c 10 --server 8.8.8.8 example.com | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
title: Domain sources | ||
layout: default | ||
parent: Examples | ||
--- | ||
|
||
# Domain sources | ||
*dnspyre* benchmarks DNS servers by querying the domains specified as arguments to the tool, the domains to the tool can be passed in a various ways: | ||
|
||
|
||
## Domains provided directly as arguments | ||
You can pass an arbitrary number of domains to be used for the DNS benchmark, by specifying more arguments. In this example, domains | ||
`redsift.io`, `example.com`, `google.com` are used to generate DNS queries | ||
|
||
``` | ||
dnspyre -n 10 -c 10 --server 8.8.8.8 redsift.io example.com google.com | ||
``` | ||
|
||
## Domains provided using file on local filesystem | ||
Instead of specifying domains as arguments to the *dnspyre* tool, you can just specify a file containing domains to be used by the tool. | ||
By referencing the file using `@<path-to-file>`. In this example, the domains are read from the `data/2-domains` file. | ||
|
||
``` | ||
dnspyre -n 10 -c 10 --server 8.8.8.8 @data/2-domains | ||
``` | ||
|
||
## Domains provided using file publicly available using HTTP(s) | ||
The file containing hostnames does not need to be available locally, it can be also downloaded from the remote location using HTTP(s). | ||
In this example, the domains are downloaded from the https://raw.githubusercontent.com/Tantalor93/dnspyre/master/data/2-domains | ||
|
||
``` | ||
dnspyre -n 10 -c 10 --server 8.8.8.8 https://raw.githubusercontent.com/Tantalor93/dnspyre/master/data/2-domains | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.