This is our old Q&A Site. Please post any new questions and answers at

My DNS trace contains more than 1 'Answer RRs'. How do I extract 'Name' ( and 'Addr' (dns.resp.addr) field from each response & print it in same line as requested domain name. I tried using -Tfields -e "" -e "dns.resp.addr" but I don't get any response at all.

asked 15 Jan '15, 08:20

Vijay%20Gharge's gravatar image

Vijay Gharge
accept rate: 0%


I found issue. It is due to older version I could not print those fields. Thanks to Kali live linux CDs I found newer version !

After processing data using -T & -e options, I got request / response data on separate lines and then just wrote following bash script to map request & response on the same line.

for i in `cat Gn_ADNS1.txt`
        line=`echo $i`
        response_frame=`echo $line | awk -F',' '{ print $2}'`
        if [ ${#response_frame} -gt 0 ] ; then
                req=`cat Gn_ADNS1.txt | grep -w "^$response_frame"`
                echo "$req => $line"
#       else
#               echo "$line !="
permanent link

answered 08 Mar '15, 09:22

Vijay%20Gharge's gravatar image

Vijay Gharge
accept rate: 0%

edited 08 Mar '15, 09:24

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 15 Jan '15, 08:20

question was seen: 4,022 times

last updated: 08 Mar '15, 09:24

p​o​w​e​r​e​d by O​S​Q​A