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!!!!
Asked
Active
Viewed 494 times
1 Answers
0
I wish, I had time to make this and help the topic. But here, the IETF RFC 1035 LINK will sure help you.

Amit Kumar
- 59
- 1
- 8
-
Thanks you, @Kumar! – LHh Jul 06 '16 at 07:17