Why the bytes stream got by python socket.recvfrom is different from that crawled by WireShark?
问题 I used the python socket to send a DNS query packet socket and listen to the response. Finally, I got a DNS response packet by the socket.recvfrom(2048) function as expected. But strangely, where I compared the response packet with the packet crawled by Wireshark, I found there exists many difference. The differences would be found as 3f at the second picture. The DNS response packet (The highlighted part) crawled by the Wireshark The DNS response packet got by the socket.recvfrom(2048) The