參考:http://www.openwrt.org.cn/bbs/thread-1639-1-1.html
我在openwrt的web界面修改的wan口dns服務器爲8.8.8.8。但是通過ssh查看/etc/resolv.conf文件發現總是被重置爲了:
據我觀察在web剛改完之後有幾秒保持了我修改的dns,但之後馬上會被重置,請問是什麼原因?dnsmasq重置了!實際使用的是/tmp/resolv.conf.auto
修改/etc/config/network 文件 config 'interface' 'lan' option 'type' 'bridge' option 'ifname' 'eth0.0' option 'proto' 'static' option 'netmask' '255.255.255.0' option 'dns' '208.67.222.222' option 'gateway' '192.168.3.1' option 'ipaddr' '192.168.3.250' |
root@Raspberry:/# /etc/init.d/dnsmasq restart