Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

PacketQ

> 编程语言
Open source

Moved to https://codeberg.org/DNS-OARC/PacketQ

396 stars0 likes2 views
WebsiteGitHub

About

Moved to https://codeberg.org/DNS-OARC/PacketQ

NOTE: Moved to https://codeberg.org/DNS-OARC/PacketQ

PacketQ

packetq is a command line tool to run SQL queries directly on PCAP files, the results can be outputted as JSON (default), formatted/compact CSV and XML. It also contain a very simplistic web-server in order to inspect PCAP files remotely. PacketQ was previously known as DNS2db but was renamed in 2011 when it was rebuilt and could handle protocols other than DNS among other things.

More information is provided in our FAQ, functions, and fields documentation.

A short demo-video of PacketQ's capabilities is available on http://www.youtube.com/watch?v=70wJmWZE9tY

Features

  • Super-fast native decoding of PCAP-files (even gzipped) and dirt-quick in-memory sorting algorithms.
  • A extensible protocol decoding design with build in support for ICMP and DNS from start.
  • Support for grouping, sorting, counting and most other important SQL-functions.
  • Only dependent on zlib, no other hard-to-find libs needed. Compiles on everything.
  • Build-in web-server, JSON API and a simple JQuery-based GUI concept application with graphs.
  • Can be designed to cache queries by pre-processing PCAPs into static JSON-files that can be used to make queries again.
  • Built in DNS-resolver function (used by GUI).
  • Support for sampling. Helps when making queries to large, uniform PCAP-files.
  • Can convert flags in packet-headers to text on the fly.
  • Can make multiple queries towards the same data in memory.

More information may be found here:

  • https://www.dns-oarc.net/tools/packetq

Issues should be reported here:

  • https://codeberg.org/DNS-OARC/PacketQ/issues

General support and discussion:

  • Mattermost: https://chat.dns-oarc.net/community/channels/oarc-software

Dependencies

PacketQ requires a couple of libraries beside a normal C++ compiling environment with autoconf, automake, libtool and pkgconfig.

PacketQ has an optional dependency on the MaxMindDB library (for the CC() and ASN() functions).

To install the dependencies under Debian/Ubuntu:

apt-get install -y zlib1g-dev libmaxminddb-dev

To install the dependencies under CentOS (with EPEL/PowerTools enabled):

bash
yum install -y zlib-devel libmaxminddb-devel

Build from GitHub

bash
git clone https://codeberg.org/DNS-OARC/PacketQ.git
cd PacketQ
./autogen.sh
./configure [options]
make
make install

Building from source tarball

The source tarball from DNS-OARC comes prepared with configure:

bash
tar zxvf packetq-version.tar.gz
cd packetq-version
./configure [options]
make
make install

Usage example

Retrieves the 10 first packets containing DNS information from the file sample.pcap:

packetq -s "select * from dns limit 10" sample.pcap

Starts a web-server on port 8080 (-p8080) as a daemon (-d) serving files from the directory html/ (-w html/) and PCAP files from the directory pcap/ (-r pcap/):

packetq -d -p8080 -w html/ -r pcap/

Author(s)

  • Per Granå @Per-Grana

Contributor(s)

  • Ole Laursen @OleLaursen
  • Rickard Dahlstrand @rickarddahlstrand
  • Jerry Lundström @jelu
  • Magnus Lundén @ripoff
  • Roger Murray @romu42
  • Henrik Levkowetz @levkowetz
  • Petr Špaček @pspacek
  • Ken Renard @kdrenard

See also the full list of contributors.

Copyright

Copyright (c) 2017-2024 OARC, Inc.

Copyright (c) 2011-2017, IIS - The Internet Foundation in Sweden

All rights reserved.

…

Issues· 12 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScriptdnspcapsql

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言