Bind 一些有趣的东西 【未完待续】

statistics-channels 语句


格式:

statistics-channels {

[ inet ( ip_addr | * ) [ port ip_port ] [allow { address_match_list } ]; ]

[ inet ...; ]

};


我们设的例子:

statistics-channels {

       inet 192.168.0.60 port 8080 allow { 192.168.0.252; };

};

测试并放开端口

#yum install -y libxml2

#named-checkconf

#service named restart


看到的结果,WEB访问的结果跟nginx的status模块类似,提供的数值很多,也可供nagios等监控软件进行监控:

164623188.jpg


灿哥推荐Dnstop试玩了一下

#yum install -y libpcap-devel ncurses-devel

wget http://dns.measurement-factory.com/tools/dnstop/src/dnstop-20121017.tar.gz

tar zxvf dnstop-20121017.tar.gz

cd dnstop-20121017
./configure 
make

make install


Help Info:

http://dns.measurement-factory.com/tools/dnstop/dnstop.8.html


使用方法:

dnstop [-46apsQR] [-bexpression] [-iaddress] [-ffilter] [-rinterval]
	    [device] [savefile]


秒级刷新

#dnstop eth2
Sources           Count      %   cum%
------------- --------- ------ ------
192.168.0.252         4  100.0  100.0


这里蛮多例子:

http://www.cyberciti.biz/faq/dnstop-monitor-bind-dns-server-dns-network-traffic-from-a-shell-prompt/ 





本文转自 煮酒品茶 51CTO博客,原文链接:http://blog.51cto.com/cwtea/1338939,如需转载请自行联系原作者
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值