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


As in the title, does anyone know how to capture the dns packets but only for external resources?

If I simply specify port 53, then it captures all the packets including the internal resources which are on range. is a range I need to exclude to capture only external resources.

I also tried port 53 and not dst net but does not work.

Thanks in advance, Peter

asked 27 Jul '11, 02:53

wooju's gravatar image

accept rate: 0%

Sorry, i specified wrong interface and the quare actually works.

(27 Jul '11, 03:00) wooju

Ok, as I mentioned, the qury worked, but reqiarements changed a bit.

Is there a way I can exclude destination network except of host 10.X.X.X ?

Curret code:

port 53 and not dst net

Thanks in advance

(27 Jul '11, 03:16) wooju

Yes, you can filter out the whole subnet except for one host with the following filter:

port 53 and (host or not net
permanent link

answered 28 Jul '11, 11:24

SYN-bit's gravatar image

SYN-bit ♦♦
accept rate: 20%

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: 27 Jul '11, 02:53

question was seen: 7,983 times

last updated: 28 Jul '11, 11:24

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