Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does anyone know how I might be able to filter DNS requests in tshark which ask for the ANY record?
So far I am able to filter DNS queries with:
tshark -r capture.cap -T fields -e ip.src -e ip.dst -e -R "dns.flags.response eq 0"
How would I also filter by ANY ?

share|improve this question
up vote 6 down vote accepted

You would need to filter queries where the QTYPE is * (also known as ANY) (represented by the integer 255):

In WireShark or NetMon this would be


So for tshark I assume it would be:

"dns.qry.type eq 255"

You can find the numerical values for all query types in RFC 1035 §3.2.3 "QTYPE Values"

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.