如何隐藏 Dnsmasq 版本号?

如何隐藏 Dnsmasq 版本号?

可以隐藏 BIND DNS 服务器版本号,但如何在 dnsmasq 中更改它?

执行命令:

dig localhost version.bind txt chaos 

答案1

我不确定是否存在隐藏version.bind的配置选项dnsmasq,但存在编译时选项NO_ID

 **Compile time option NO_ID**

    Some consider it good practice to obscure software version numbers to
    clients. Compiling with -DNO_ID removes the *.bind info structure.
    This includes: version, author, copyright, cachesize, cache insertions,
    evictions, misses & hits, auth & servers.

以下是相同的讨论主题:

http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2016q3/010859.html http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2016q3/010858.html

相关内容