Archived
2
0
Fork
You've already forked drool
1
This repository has been archived on 2026年03月04日. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Lua 57.5%
  • Roff 18.4%
  • Makefile 11%
  • Shell 8.5%
  • M4 4.6%
2026年03月04日 09:53:15 +01:00
.copr SPEC 2024年11月12日 17:10:03 +01:00
debian Migrate to Codeberg 2025年09月03日 14:10:25 +02:00
m4 Fix #1 : Add initial files and directories 2017年01月17日 13:31:41 +01:00
rpm Migrate to Codeberg 2025年09月03日 14:10:25 +02:00
src Release 2.0.0 2021年07月16日 10:53:26 +02:00
.gitignore Rewrite, v1.99.1 2018年07月04日 17:03:09 +02:00
autogen.sh Release 2.0.0 2021年07月16日 10:53:26 +02:00
CHANGES Changes typo 2021年07月16日 14:43:37 +02:00
configure.ac Migrate to Codeberg 2025年09月03日 14:10:25 +02:00
dnsjit_version.lua Respdiff, v1.99.2 2018年07月19日 14:06:14 +02:00
LICENSE Release 2.0.0 2021年07月16日 10:53:26 +02:00
Makefile.am Release 2.0.0 2021年07月16日 10:53:26 +02:00
README.md Discontinued 2026年03月04日 09:53:15 +01:00

DISCONTINUED: This project has been discontinued and will not receive any future updates or bug fixes.

DNS Replay Tool (drool)

drool can replay DNS traffic from packet capture (PCAP) files and send it to a specified server, with options such as to manipulate the timing between packets, as well as loop packets infinitely or for a set number of iterations. This tool's goal is to be able to produce a high amount of UDP packets per second and TCP sessions per second on common hardware.

The purpose can be to simulate Distributed Denial of Service (DDoS) attacks on the DNS and measure normal DNS querying. For example, the tool could enable you to take a snapshot of a DDoS and be able to replay it later to test if new code or hardening techniques are useful, safe & effective. Another example is to be able to replay a packet stream for a bug that is sequence- and/or timing-related in order to validate the efficacy of subsequent bug fixes.

More information may be found here:

Issues should be reported here:

General support and discussion:

Known Issues

  • IP fragments are currently not processed and will be discarded.
  • TCP sessions are not reassembled, each packet is parsed as DNS after discarding the first two bytes.

Usage example

Send all DNS queries twice as fast as found in the PCAP file to localhost using UDP.

drool replay --timing multiply=0.5 --no-tcp file.pcap 127.0.0.1 53

Send all DNS queries over TCP to localhost as they were recorded.

drool replay --timing keep --no-udp file.pcap 127.0.0.1 53

Take all DNS queries found in the PCAP file and send them as fast as possible over UDP to localhost by ignoring both timings, replies and starting 3 threads that will simultaneously send queries.

drool replay --no-tcp --no-responses --threads --udp-threads 3 file.pcap 127.0.0.1 53

Dependencies

drool is built upon dnsjit and requires it to be installed along with autoconf/automake.

Build

sh autogen.sh
./configure
make
make test
make install

Author(s)

Jerry Lundström jerry@dns-oarc.net

Copyright (c) 2017-2021, OARC, Inc.

Copyright (c) 2017, Comcast Corporation

All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
 notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
 notice, this list of conditions and the following disclaimer in
 the documentation and/or other materials provided with the
 distribution.
3. Neither the name of the copyright holder nor the names of its
 contributors may be used to endorse or promote products derived
 from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.