DNS: can't parse query=ANY to layers.DNS
Open
- Dominant language
- Go
- Stars
- 6.8k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
I'm using gopacket to parse DNS packets arriving from eBPF and I noticed that when doing something like:
```
$ nslookup -type=any example.com
```
The following code does not work:

and the reason is that `layer7`, coming from `packet.ApplicationLayer()`, isn't recognized as type `(*layers.DNS)`, as showed by `TypeOf()`:
```
l7 type:
l7 type:
l7 type:
l7 type: *gopacket.Payload
l7 type:
l7 type: *gopacket.Payload
l7 type:
l7 type:
```
Contributor guide
Assessment
This issue has not been assessed yet.