通过IP监视DNS查询


0

我在Mac Server V2.4上运行DNS。我想记录所有进行的DNS查询-有没有办法做到这一点?TCPdump仅向我显示某个时刻发生的事情,并且难以阅读,我还有什么其他选择?

Answers:


1

如果我在Unix服务器上运行bind,则将其添加到位于的配置文件中/etc/named.conf。尽管不确定Apple提供了多少访问权限来自定义配置,但:

channel query_log {
    file "/var/log/named/query.log" versions 5 size 1m;
    severity dynamic;
    print-time yes;
};
category queries { query_log; };
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.