Capture DNS queries with MAC addresses
Show DNS lookups with MAC addresses (-e) to see which LAN client sent each query
tcpdump -nn -e -i any port 53
- tool
- tcpdump18 commands
More tcpdump commands
-
tcpdump -i eth0 -nCapture all traffic on eth0 without resolving names
-
tcpdump -i eth0 -w /tmp/capture.pcapSave raw packets to a PCAP file to open later in Wireshark
-
tcpdump -r /tmp/capture.pcap -n | head -50Print packets from a saved PCAP file
-
tcpdump -i any host 10.0.0.5 -nCapture only traffic to and from one IP address
-
tcpdump -i eth0 port 443 -nCapture only HTTPS traffic on port 443