paulc / dnslib

A Python library to encode/decode DNS wire-format packets
https://github.com/paulc/dnslib
BSD 2-Clause "Simplified" License
295 stars 84 forks source link

Basic Parsing Usage #11

Closed tkoch96 closed 4 years ago

tkoch96 commented 4 years ago

In your example usage, you parse a 'packet' using 'dnslib.DNSRecord.parse'. What is a 'packet'? I.e. what layer of the communication stack? Also, what data-type is 'packet'?

What I'm trying to do is read DNS traffic from pcaps (I know how to filter out things that aren't DNS traffic), with a library like dpkt. dpkt can give me any layer of the stack I want, but neither the full packet nor solely the application layer seem to work as input to 'dnslib.DNSRecord.parse'.

tkoch96 commented 4 years ago

Why did you close this?