Lede: resolv.conf中的dns总是被重置到127.0.0.11

Created on 30 Mar 2020  ·  1Comment  ·  Source: coolsnowwolf/lede

1.resolv.conf中的dns总是被重置到127.0.0.11

旁路由运行openwrt,resolv.conf中的dns总是在重启后被重置为127.0.0.11,即使修改文件属性为444也无解,求教这个怎么改?

不然,openwrt的luci系统打开会很慢,求同袍们指教!谢谢!

Most helpful comment

docker中运行的openwrt吧?系统-启动项-本地启动脚本加入下面这段:
cat > /etc/resolv.conf < search lan
nameserver 127.0.0.1
options ndots:0
EOF

>All comments

docker中运行的openwrt吧?系统-启动项-本地启动脚本加入下面这段:
cat > /etc/resolv.conf < search lan
nameserver 127.0.0.1
options ndots:0
EOF

Was this page helpful?
0 / 5 - 0 ratings