Total Pageviews

Friday 13 November 2015

解决 dnsmasq 的 “no servers found in /var/run/dnsmasq/resolv.conf, will retry” 问题

安装过程中在 /etc/dnsmasq.conf的resolv-file配置失效
重启dnsmasq服务时出现 “no servers found in /var/run/dnsmasq/resolv.conf, will retry” 
解决办法:
在文件/etc/resolv.dnsmasq.conf中写入:
nameserver 8.8.8.8
nameserver 8.8.4.4
/etc/init.d/dnsmasq找到RESOLV_CONF=/var/run/dnsmasq/resolv.conf改为:
RESOLV_CONF=/etc/resolv.dnsmasq.conf
重启后一切ok!