Provided by: ldnsutils_1.7.0-3ubuntu8_amd64 bug


       dpa - DNS Packet Analyzer. Analyze DNS packets in ip trace files


       dpa [ OPTION ] TRACEFILE


       dpa  is  used to analyze dns packets in trace files. It has 3 main options: count, filter,
       and count uniques (i.e. count all different occurences).


       -c expressionlist
              Count occurrences of matching expressions

       -f expression
              Filter: only process packets that match the expression

       -h     Show usage

       -p     Show the total number of correct DNS packets, and percentage of -u  and  -c  values
              (of  the total of matching on the -f filter. if no filter is given, percentages are
              on all correct dns packets)

       -of file
              Write all packets that match the -f flag to file, as pcap data.

       -ofh file
              Write all packets that match the -f flag to file, in hexadecimal  format,  readable
              by drill.

       -s     Show possible match names

       -s matchname
              show possible match operators and values for name

       -sf    Only  evaluate  packets (in representation format) that match the -f filter.  If no
              -f was given, evaluate all correct dns packets.

       -u matchnamelist
              Count every occurence of every value of the  matchname  (for  instance,  count  all
              packetsizes, see EXAMPLES in ldns-dpa(1) ).

       -ua    For  every  matchname  in  -u, show the average value of all matches. Behaviour for
              match types that do not have an integer value is undefined.

       -uac   For every matchname in -u,  show  the  average  number  of  times  this  value  was

       -um number
              Only show the results from -u for values that occurred more than <number> times.

       -v level
              Set verbosity to level (1-5, 5 being the highest). Mostly used for debugging.

       -notip file
              Write packets that were not recognized as IP packets to file (as pcap data).

       -baddns file
              Write dns packets that were too mangled to parse to file (as pcap data).

              Show version and exit


       A  <matchnamelist>  is a comma separated list of match names (use -s to see possible match
       names).  A <expressionlist> is a comma separated list of expressions.

       An expression has the following form: <expr>: (<expr>)
               <expr> | <expr>
               <expr> & <expr>

       <match>:        <matchname> <operator> <value>

       <operator>:      =    equal to <value>      !=   not equal  to  <value>       >    greater
       than  <value>       <    lesser  than  <value>       >=   greater than or equal to <value>
            <=   lesser than or equal to <value>      ~=   contains <value>

       See the -s option for possible matchnames, operators and values.


       ldns-dpa -u packetsize -p
              Count all different packetsizes in and show the precentages.

       ldns-dpa -f "edns=1&qr=0" -of
              Filter out all edns enable queries in and put them in

       ldns-dpa -f edns=1 -c tc=1 -u rcode
              For all edns packets, count the number of truncated packets and all their rcodes in

       ldns-dpa -c tc=1,qr=0,qr=1,opcode=QUERY
              For  all packets, count the number of truncated packets, the number of packets with
              qr=0, the number of packets with qr=1 and the number of queries in

       ldns-dpa -u packetsize -ua
              Show all packet sizes and the average packet size per packet.

       ldns-dpa -u srcaddress -uac
              Show all packet source addresses and the average number of packets sent  from  this

       sudo tcpdump -i eth0 -s 0 -U -w - port 53 | ldns-dpa -f qr=0 -sf
              Print all query packets seen on the specified interface.


       Written by Jelte Jansen for NLnetLabs.


       Report bugs to <>.


       Copyright  (C)  2005 NLnet Labs. This is free software. There is NO warranty; not even for

                                            1 Nov 2005                                     dpa(1)