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
tags
tcpdumpdnsnetworktroubleshooting

More tcpdump commands

  • tcpdump -i eth0 -n

    Capture all traffic on eth0 without resolving names

  • tcpdump -i eth0 -w /tmp/capture.pcap

    Save raw packets to a PCAP file to open later in Wireshark

  • tcpdump -r /tmp/capture.pcap -n | head -50

    Print packets from a saved PCAP file

  • tcpdump -i any host 10.0.0.5 -n

    Capture only traffic to and from one IP address

  • tcpdump -i eth0 port 443 -n

    Capture only HTTPS traffic on port 443

all 18 tcpdump commands