使用dnsmasq,环回工作,但本地客户端不

我刚刚在本地机器上完成了configurationdnsmasq,并且在使用自己parsing域时似乎工作正常。 当我指向networking上的另一台机器使用dnsmasq机器作为其唯一的DNS服务器时,我根本无法获得任何域名parsing。

我的configuration文件看起来像这样(我错过了什么?):

的resolv.conf

nameserver 127.0.0.1 

dnsmasq.conf

 # resolv File resolv-file=/etc/resolv.conf # DNS Servers server=131.191.7.5 server=131.191.7.12 # Domain Overrides address=/mydomain.com/192.168.2.253 address=/one.mydomain.com/192.168.2.253 address=/two.mydomain.com/192.168.2.253 address=/thismachine.local/192.168.2.253 

当我运行“sudo lsof -i | grep LISTEN”时,我可以看到在端口53上侦听的dnsmasq:

 dnsmasq 189 nobody 4u IPv4 0x05bf8338 0t0 TCP localhost:domain (LISTEN) dnsmasq 189 nobody 6u IPv6 0x05bf31f0 0t0 TCP uberserve.local:domain (LISTEN) dnsmasq 189 nobody 8u IPv6 0x05bf2f80 0t0 TCP localhost:domain (LISTEN) dnsmasq 189 nobody 10u IPv6 0x05bf2d10 0t0 TCP localhost:domain (LISTEN) 

你的防火墙是什么样子在dnsmasq框?

检查入站端口53。

在端口53上的新的dnsmasq框上运行数据包跟踪,看看发生了什么。

您可以强制客户端使用您的dnsmasq框,如下所示:

挖掘www.google.com @dnsmasboxip