Install dnstop

# yum install libpcap-devel ncurses-devel

# yum install gcc

Now, grab latest source code usingĀ wget command, enter:
# cd /tmp
# wget http://dns.measurement-factory.com/tools/dnstop/src/dnstop-20140915.tar.gz

# tar -zxvf dnstop-20080502.tar.gz
# cd dnstop-20080502
Compile and install dnstop, enter:
# ./configure
# make
# make install

How do I view dns traffic with dnstop?

Simply, type the following command at a shell prompt to monitor traffic for eth0 interface:
# dnstop {interface-name}
# dnstop eth0
# dnstop em0
Sample output:

2 new queries, 220 total queries Mon Aug 4 05:56:50 2008

Sources count %

—————- ——— ——

180.248.xxx.26 72 32.7

77.89.xx.108 7 3.2

186.xxx.13.108 5 2.3

90.xxx.94.39 4 1.8

178.xx.77.83 4 1.8

187.xxx.149.23 4 1.8

xxx.13.249.70 4 1.8

1.xxx.169.102 4 1.8

189.xx.191.126 4 1.8

xxx.239.194.97 3 1.4

# dnstop -l 3 eth0
Under Debian / Ubuntu Linux, enter:
# dnstop -t -s eth0
Where,

  • -s Track second level domains
  • -t Track third level domains

By Rayhan

My name is Rayhan and I'm an IT professional with over 10 years of experience in the field. I'm passionate about all things tech, and I love helping people solve their IT problems. In my free time, I enjoy tinkering with new gadgets and software, and I'm always on the lookout for the latest tech trends. I believe that technology has the power to make our lives easier and more enjoyable, and I'm excited to be a part of this ever-evolving field. Thank you for taking the time to visit my page.

Leave a Reply

Your email address will not be published. Required fields are marked *