System Management
An administrator runs tcpdump -i eth0 -w capture.pcap port 53. What does the command produce?
Show the answer
Correct answerD. A binary pcap file of DNS packets on eth0 that tcpdump -r can read later
AWhy not this: -w writes raw binary packet data, not decoded text, so cat does not show readable output.
BWhy not this: The port 53 filter applies at capture time, so only DNS packets are written to the file.
CWhy not this: With -w, tcpdump writes packets to the file instead of printing them to the screen.
DWhy this is right: -w saves raw DNS packets captured on eth0 to a pcap file, and tcpdump -r reads it back.
The -w option writes raw packets to a pcap file, the port 53 filter limits capture to DNS traffic, and -r reads the file back. It is tempting to think -w prints readable text to the file, but it stores binary packet data.