DNSREPLAY(1)
π DNSREPLAY(1) β bestie's guide to the PowerDNS nameserver debugging tool π
okay so. you're in the DNSREPLAY(1) girlies club now (manual name: dnsreplay, from the PowerDNS Authoritative Server era, we love a legacy icon π). sit down, grab a matcha, let's get into it.
β¨ SYNOPSIS β¨
dnsreplay [OPTION]... FILENAME ADDRESS [PORT]
πΈ NAME πΈ
dnsreplay β a PowerDNS nameserver debugging tool. literally that's the whole vibe. she debugs. π
π¦ DESCRIPTION π¦
so what does she do. this program takes recorded questions and answers and replays them to the nameserver you point at, then reports back afterwards which percentage of answers matched, were better, or were worse. giving you the full report card fr fr πβ¨
dnsreplay compares the answers (plus a handful of other metrics) against the actual ones found in the dumpfile. side by side. no cap.
and by default? she will only replay queries that have the recursion-desired flag set. picky queen. we respect it. π
π OPTIONS π
FILENAMEβ this is expected to be a PCAP file, babe. the queries get sent off to the DNS server you specify asADDRESSandPORT. πADDRESSβ the IPv4 or IPv6 address of the nameserver you're replayingFILENAMEto. where she's headed, basically. βοΈPORTβ if you omit it,53will be used. default queen. β¨--help,-hβ shows you a summary of the options. your little cheat sheet. π€--ecs-mask <VAL>β when EDNS forwarding an IP address, mask out the first octet with this value. octet-1 get editing. π--ecs-stamp <FLAG>β adds the original IP address as an EDNS Client Subnet Option when forwarding to the reference server. tagging the origin, iykyk. π·οΈ--packet-limit <NUM>β stop after replayingNUMpackets. the default forNUMis0, which means no limit β she'll go forever, main character energy, no brakes. π₯--pcap-dns-port <VAL>β look at packets from or to this port in the PCAP. default is53. πͺ--quiet <FLAG>β ifFLAGis set to1,dnsreplaywill not be very noisy with its output. and this is the default, so she's quiet out of the box. shhh, she's resting. π--recursive <FLAG>β ifFLAGis set to1,dnsreplaywill only replay queries with the recursion-desired flag set. also the default. selective, and she's thriving. π--source-from-pcap <FLAG>β ifFLAGis set to1,dnsreplaywill send the replayed queries from the source IP address and port present in the PCAP file. this requiresIP_TRANSPARENTsupport, bestie, don't forget. default is0, which means the replayed queries will be sent from a local address. π--source-ip <VAL>β send the replayed queries from the source IP you put inVAL. default is to send them from a local address. π--source-port <VAL>β send the replayed queries from the source port specified inVAL. default is to send from a random port selected by the kernel. chaos by design, we stan. π²--speedup <FACTOR>β replay queries with this speedupFACTOR. default is1. zoom zoom. ποΈπ¨--timeout-msec <MSEC>β wait at leastMSECmilliseconds for a reply. default is500. she's patient but not that patient. β³
π BUGS π
okay bestie, real talk, the receipts:
dnsreplay has no certain handling for timeouts. π
she handles around at most 65536 outstanding answers. that's the ceiling, and she knows it.
π SEE ALSO π
pcap(3PCAP)tcpdump(8)dnswasher(1)
the whole friend group. go say hi. π«Ά
π AUTHOR π
PowerDNS.COM BV
β COPYRIGHT β
PowerDNS.COM BV
and that's the whole page, pookie!! π this edition of the DNSREPLAY(1) manual comes to you from the PowerDNS Authoritative Server, dated Aug 05, 2026 β go replay some packets, stay transparent (IP_TRANSPARENT, obviously π
), and remember: default is 53, default is quiet, default is recursion-desired. periodt. ππ¦β¨
π¦ where this page comes from
- ubuntu stonking: pdns-tools 5.1.4-1 Β· GPL-2.0-only WITH OpenSSL Exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms