DNSPKTFLOW(1)
β¨ DNSPKTFLOW β¨
okay bestie, gather round, because this is the dnspktflow manual page, it lives in section 1 of the manual (user commands, yk), and it's the User Contributed Perl Documentation corner of the world. it analyzes and draws DNS flow diagrams from a tcpdump file. yes really. she does all that. π
πΈ SYNOPSIS πΈ
dnspktflow -o output.png file.tcpdump
dnspktflow -o output.png -x -a -t -q file.tcpdump
like. that's it. two lines and you're already iconic. π«Ά
π¦ DESCRIPTION π¦
so here's the vibe: dnspktflow takes a tcpdump network traffic dump file, runs it through the tshark application, and then shows you the resulting DNS packet flows as a "flow-diagram" image. no cap.
she can give you a single image, or a whole series of images that you can then play in sequence like an animation. choose your fighter. π«
and lowkey the origin story? dnspktflow was written as a debugging utility, to help trace DNS queries and responses β especially as they apply to DNSSEC-enabled lookups. she's a tool with a purpose, a main character with lore. periodt.
π REQUIREMENTS π
this app needs the following Perl modules and software components to work, bestie:
graphviz (http://www.graphviz.org/)
GraphViz (Perl module)
tshark (http://www.wireshark.org/)
and if you want to output screen presentations, you also need:
MagicPoint (http://member.wide.ad.jp/wg/mgp/)
also β and this is the fun part β if the following modules are installed, a GUI interface gets enabled for communication with dnspktflow:
QWizard (Perl module)
Getopt::GUI::Long (Perl module)
not me installing extra modules just for the GUI. π
β¨ OPTIONS β¨
dnspktflow takes a wide variety of command-line options, and they're grouped below into functional lil families: input packet selection, output file options, output visualization options, graphical options, and debugging. slay.
π Input Packet Selection
these options decide which packets dnspktflow will select. the vibe check of the packet world.
-iSTRING,--ignore-hosts=STRING β a regular expression of host names to ignore in the query/response fields.-rSTRING,--only-hosts=STRING β a regular expression of host names to analyze in the query/response fields.-f,--show-frame-numβ display the packet frame numbers.-bINTEGER,--begin-frame=INTEGER β begin at packet frame NUMBER.
π Output File Options
these ones decide the type and location of dnspktflow's output. where's the pic going, bestie.
-oSTRING,--output-file=STRING β output file name (default:out%03d.pngas PNG format.)--figβ output format should be fig.-OSTRING,--tshark-out=STRING β save tshark output to this file.-m,--multiple-outputsβ one picture per request (use%03din the filename.)-MSTRING,--magic-point=STRING β saves a MagicPoint presentation for the output.
π Output Visualization Options:
these determine the specifics of dnspktflow's output. the ~aesthetics~ section.
--layout-styleβ selects the graphviz layout style to use (dot,neato,twopi,circo, orfdp).-L,--last-line-labels-onlyβ only show data on the last line drawn.-zINTEGER,--most-lines=INTEGER β only show at most INTEGER connections.-T,--input-is-tshark-outβ the input file is already processed by tshark.
β Graphical Options:
these decide which fields get included in dnspktflow's output.
-t,--show-typeβ shows message type in result image.-q,--show-queriesβ shows query questions in result image.-a,--show-answersβ shows query answers in result image.-A,--show-authoritativeβ shows authoritative information in result image.-x,--show-additionalβ shows additional information in result image.-l,--show-label-linesβ shows lines attaching labels to lines.--fontsize=INTEGER β Font Size
π Debugging:
these options may assist in debugging dnspktflow. when things are giving chaos instead of slay.
-d,--dump-pktsβ dump data collected from the packets.-h,--helpβ show help for command line options.
π COPYRIGHT π
Copyright 2004-2013 SPARTA, Inc. All rights reserved. See the COPYING file included with the DNSSEC-Tools package for details.
π§ AUTHOR π§
Wes Hardaker <hardaker@users.sourceforge.net>
π SEE ALSO π
Getopt::GUI::Long(3) Net::DNS(3) QWizard.pm(3)
http://dnssec-tools.sourceforge.net/
this page is from perl v5.42.0, dated 2025-07-23, and it's the DNSPKTFLOW(1) page, bestie. go trace some DNS flows, you've got this. πβ¨π¦
π¦ where this page comes from
- fedora 43: dnssec-tools 2.2.3-30.fc43 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms