linux centos安装dnsmasq后如何打开查询日志功能
linux centos安装dnsmasq后如何打开查询日志功能vi /etc/dnsmasq.conf
找到
# For debugging purposes, log each DNS query as it passes through
# dnsmasq.
#log-queries
去掉 #log-queries 前面的#号即可
并且在 log-queries 下方增加一行设置日志文件路径
log-facility=/var/log/dnsmasq.log
修改后记得重启dnsmasq服务
service dnsmasq restart
查看实时日志的命令
tail -f /var/log/dnsmasq.log
参考文章:https://www.linux.com/topic/networking/advanced-dnsmasq-tips-and-tricks/
{:3027:}{:3028:}{:3028:}
页:
[1]