dnsmasq无法将virt.example子域查询转发至指定Bind9 DNS服务器的问题求助
dnsmasq无法将virt.example子域查询转发至指定Bind9 DNS服务器的问题求助
我在本地网络里用dnsmasq(地址192.168.0.14)作为主DNS服务器,负责解析example域的所有记录;另外还有一台Bind9服务器(地址192.168.222.67)专门负责virt.example子域的解析。
下面是我的dnsmasq配置片段:
auth-zone=example,192.168.0.14/32 auth-zone=land.example,192.168.0.14/32 server=/example/192.168.0.14 host-record=land.example,192.168.0.14 host-record=host1.example,192.168.0.14 ... host-record=hostN.example,192.168.0.14 ... server=/*.virt.example/192.168.222.67
现在碰到个头疼的问题:dnsmasq会处理所有example域的查询,但对于virt.example下的任何主机查询,它直接返回NXDOMAIN,完全没有转发到Bind9服务器。
查看dnsmasq启动日志,配置加载看起来是正常的:
Apr 19 12:51:45 dnsmasq[7982]: using nameserver 192.168.222.67#53 for domain *.virt.example (no DNSSEC) Apr 19 12:51:45 dnsmasq[7982]: using nameserver 192.168.222.67#53 for domain *.virt.example (no DNSSEC)
但实际查询时,dnsmasq根本没转发请求:
Apr 19 12:52:56 dnsmasq[7982]: query[A] vm04-mail.virt.example from 192.168.0.10 Apr 19 12:52:56 dnsmasq[7982]: auth vm04-mail.virt.example is NXDOMAIN
而Bind9服务器本身是正常工作的,直接查询它能得到正确结果:
$ nslookup vm04-mail.virt.example 192.168.222.67 Server: 192.168.222.67 Address: 192.168.222.67#53 Name: vm04-mail.virt.example Address: 10.10.10.4
有没有大佬能帮忙分析下,为什么dnsmasq不把virt.example的查询转发到Bind9服务器呢?
备注:内容来源于stack exchange,提问作者cppmm
相关产品推荐
相关产品推荐

