2

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!!!!

LHh
  • 31
  • 3

1 Answers1

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