strace Use Example - The Networked Client (Cont.) We'll skip the loading of the name server library, and the NIS library, and the DNS library, and the resolver library... Lets see the conversation with the DNS server. we know it's the DNS server, because of the address (192.114.47.4): socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3 connect(3, {sin_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.114.47.4")}}, 28) = 0 send(3, "\333=\1\0\0\1\0\0\0\0\0\0\6actcom\2co\2il\0\0\34\0\1", 30, 0) = 30 gettimeofday({1032887191, 463122}, NULL) = 0 poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 5000) = 1 recvfrom(3, "\333=\205\200\0\1\0\0\0\1\0\0\6actcom\2co\2il\0\0\34\0"..., 1024, 0, {sin_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.114.47.4")}}, [16]) = 88 close(3) = 0 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3 connect(3, {sin_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.114.47.4")}}, 28) = 0 send(3, "\333>\1\0\0\1\0\0\0\0\0\0\6actcom\2co\2il\6actcom"..., 43, 0) = 43 gettimeofday({1032887191, 491101}, NULL) = 0 poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 5000) = 1 recvfrom(3, "\333>\205\203\0\1\0\0\0\1\0\0\6actcom\2co\2il\6actcom"..., 1024, 0, {sin_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.114.47.4")}}, [16]) = 101 close(3) = 0