Wireshark – capture all packets for HTTP request

dnswireshark

I want to launch a HTTP request to a website I've never visited before. I would like to pick up all of the packets related to this request; so DNS packets, TCP packets, et cetera.

Is there a way to pick up all of these? I have found that I can filter by the website's IP address, but this does not give me the DNS packets. How can I get all related packets?

Best Answer

Try this:

(ip.addr==192.0.2.4) and (http or dns)

192.0.2.4 is your PC's address.

EDIT: You could include the addresses of your DNS server and the website

(ip.addr==<nameserver> and DNS) or (ip.addr==<website> and http)
Related Topic