Here is a pcap with DNS response containing multiple answers. How do we check if the TTL in the second answer is less than 10 second? It seems that all the ttl fields (in all the answers in this packet) are referred in display filter as "dns.resp.ttl". Any ideas? Thanks. asked 06 Sep '15, 17:05 pktUser1001 |
One Answer:
When a field, such as dns.resp.ttl, occurs multiple times in a packet, there is no way to use display filters to distinguish individual occurrences of that field. So the display filter "dns.resp.ttl < 10" will show all packets that have one or more dns.resp.ttl fields with a value less than 10. There is no way in the Wireshark GUI to compare specifically against the dns.resp.ttl field in the second answer. answered 06 Sep '15, 17:53 Jim Aragon |
We we can address it like
dns.resp.answers[1].ttl
.