I would like to be able to get the public IPs of the websites I am accessing with my PC in a way such as:
www.google.es - public IP1
www.cdn.facebook.com - public IP2
and so on. I think this should be done by logging DNS traffic, so I tried using wireshark as part of a solution I found in another answer:
tshark -f "udp port 53" -Y "dns.qry.type == A and dns.flags.response == 0"
However this seems to only show connections between my router and my machine, the list is full of pairs such as:
192.168.200.250 -> 192.168.200.1
192.168.200.1 -> 192.168.200.250`
flags.response==0. Instead selectdns.flags.response==1and adddns.flags.rcode==0to ignore responses that don't actually contain a result.