-
Notifications
You must be signed in to change notification settings - Fork 12
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 #287 from Tantalor93/delay
add request delay
- Loading branch information
Showing
6 changed files
with
222 additions
and
9 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
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,29 @@ | ||
--- | ||
title: Delaying requests | ||
layout: default | ||
parent: Examples | ||
--- | ||
|
||
# Delaying requests | ||
v3.4.0 | ||
{: .label .label-yellow } | ||
*dnspyre* by default generates queries one after another as soon as the previous query is finished. In some cases you might want to delay | ||
the queries. This is possible using `--request-delay` flag. This option allows user to specify either constant or randomized delay to be added | ||
before sending query. | ||
|
||
## Constant delay | ||
To specify constant delay, you can specify arbitrary GO duration as parameter to the `--request-delay` flag. Each parallel worker will | ||
always wait for the specified duration before sending another query | ||
|
||
``` | ||
dnspyre --duration 10s --server '1.1.1.1' google.com --request-delay 2s | ||
``` | ||
|
||
## Randomized delay | ||
To specify randomized delay, you can specify interval of GO durations `<GO duration>-<GO duration>` as parameter to the `--request-delay` flag. | ||
Each parallel worker will always wait for the random duration specified by the interval. If you specify interval `1s-2s`, workers will wait | ||
between 1 second and 2 seconds before sending another query | ||
|
||
``` | ||
dnspyre --duration 10s --server '1.1.1.1' google.com --request-delay 1s-2s | ||
``` |
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