I'm coding a program by C language in order to analyze DNS packet. Specifically, I have to capture DNS packet and I need to know the domain name after capturing DNS packets. How can a access to the answer section? My code is using pcap library. Anyone can give me some suggestions? A sample code will be very helpfull for me. Many thanks!!!!
2
votes
1 Answers
0
votes
I wish, I had time to make this and help the topic. But here, the IETF RFC 1035 LINK will sure help you.