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 是為了安全,但如果憑證過期了怎麼辦
More...
使用 certbot 安裝 Let’s Encrypt SSL 憑證
More...
DNS BIND 9.18 已進入穩定版本,可以更新它了
More...
安裝 Let’s Encrypt SSL 憑證的工具
More...

作者

留言

撰寫回覆或留言

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