http://dns.measurement-factory.com/tools/dnstop/src/
https://github.com/measurement-factory/dnstop
http://www.tcpdump.org/release/ (libpcap tcpdump)
# 安装:
yum -y install libpcap libpcap-devel
cd /usr/local/src
wget http://dns.measurement-factory.com/tools/dnstop/src/dnstop-20140915.tar.gz
tar -zxvf dnstop-20140915.tar.gz
mkdir -p /usr/local/dnstop/share/man/man8
cd dnstop-2014091; ./configure --prefix=/usr/local/dnstop; make; make install
报目录权限错误时,创建相应的目录:mkdir -p /usr/local/dnstop/share/man/man8
把 /usr/local/dnstop/bin 添加到系统环境变量
# dnstop使用
./dnstop -s eth0
在运行DNSTOP的过程中,可以敲入如下命令:
S,D,T,1,2,^R(ctrl+R),^X(ctrl+X),?
来显示不同的统计信息