dnsmasq未记录DNS查询问题排查求助
dnsmasq未记录DNS查询问题排查求助
大家好,我最近碰到了一个dnsmasq的棘手问题——它完全不记录DNS查询日志,想请各位帮忙分析下原因。
我先是在命令行直接调试,执行了这个命令:
dnsmasq --no-daemon --log-queries
但当我把log-queries配置项写到配置文件里,以守护进程模式运行dnsmasq时,日志文件里完全看不到任何查询记录。按道理来说,我执行dig example.com这类DNS查询操作时,应该会在日志里有对应的记录才对。
下面是刚才命令行运行dnsmasq的输出:
dnsmasq: started, version 2.89 cachesize 150 dnsmasq: compile time options: IPv6 GNU-getopt DBus no-UBus i18n IDN2 DHCP DHCPv6 no-Lua TFTP conntrack ipset nftset auth cryptohash DNSSEC loop-detect inotify dumpfile dnsmasq: reading /etc/resolv.conf dnsmasq: using nameserver 8.8.8.8#53 dnsmasq: using nameserver 1.1.1.1#53 dnsmasq: using nameserver 2001:4860:4860::8888#53 dnsmasq: using nameserver 2001:4860:4860::8844#53 dnsmasq: read /etc/hosts - 7 names
我的系统环境信息:
- Ubuntu版本:23.10
- 内核版本:6.5.0
- dnsmasq版本:2.89
备注:内容来源于stack exchange,提问作者Saad Ahmed
相关产品推荐
相关产品推荐

