dnsmasq 提供公共 DNS 服务

dnsmasq 提供公共 DNS 服务

如果我要使用 dnsmasq 向公众提供 DNS 服务,如何设置listen-address?我将我的从 更改为192.168.1.10.0.0.0它停止工作:

$ cat /etc/dnsmasq.d/public.conf
# listen to public
listen-address=0.0.0.0
# provide only DNS service and disable DHCP and TFTP on it
no-dhcp-interface=eth0

$ dig +short docs.google.com
;; connection timed out; no servers could be reached

$ netstat -ulnp | grep :53
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
udp        0      0 0.0.0.0:53              0.0.0.0:*                           -               
udp6       0      0 :::53                   :::*                                -               

请帮忙。谢谢。

相关内容