[Pdns-users] PDNS tools

bert hubert bert.hubert at netherlabs.nl
Tue Feb 5 19:23:00 UTC 2008

On Tue, Feb 05, 2008 at 10:49:37AM -0800, Eugene Pefti wrote:
> Hi friends,
> After successfully compiling pdns tools such as dnsscope, dnsreplay and
> dnswasher I stumbled upon running one of them.
> I generated tcpdump file with tcpdump command:
> #tcpdump > dumpfile

This is wrong, try:

tcpdump -w dumpfile

> #/usr/local/bin/dnsscope ./dumpfile 
> Fatal: PCAP file ./dumpfile has bad magic 333a3031, should be a1b2c3d4
> What is this magic and why is it wrong?

The 'magic value' is used to determine if a file is a capture file. And in
your case, 'dumpfile' is not a pcap file, but the text output of tcpdump.

Good luck!

http://www.PowerDNS.com      Open source, database driven DNS Software 
http://netherlabs.nl              Open and Closed source services

More information about the Pdns-users mailing list