dnsdump 是一支 perl 程式,用來 sniffer 、分析 DNS 封包

下載使用 dnsdump

wget http://dns.measurement-factory.com/tools/dnsdump/src/dnsdump

因為是 perl 寫的,所以要相關 module 加下

Net::Pcap
Net::Packet
Net::DNS
yum install libdnet perl-Net-Libdnet perl-Net-Pcap

如果執行 ./dnsdump 時遇到

Can't load '/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/Net/Libdnet/Libdnet.so' for module Net::Libdnet: libdnet.1: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm line 230.

解決方式如下即可

ldconfig -v

再來開始使用 dnsdump

./dnsdump -i eth0

不過還是遇到問題

zone file representation not defined for OPT at ./dnsdump line 301.

卡關

Related posts 相關文章
DNSSEC sign 簽錯了,導致 DNS 查詢失敗
More...
現在 clickFix 會搭配 nslookup DNS
More...
如何驗證 Linux 的 DNS 查詢有輪替
More...
dnscrypt-proxy 讓 DNS 查詢加密
More...

作者

留言

撰寫回覆或留言

發佈留言必須填寫的電子郵件地址不會公開。