在华硕路由器最新固件下不能运行
问题现象
运行提示can't find config '/etc/smartdns'
运行环境
- 固件型号
梅林 3004.388.6_0
默认配置文件 3. 软件版本:最新的 45 版本
重现步骤 运行提示can't find config '/etc/smartdns' 我在这个目录下,把配置文件移动过去,提示启动成功了,但是重启后配置文件又不见了。 而且运行成功后,我用nslookup smartdns也失败了。
https://pymumu.github.io/smartdns/install/asus/
华硕路由推荐从Entware安装,需要一个U盘。 梅林自带Entware安装器,可以直接通过安装器安装: https://github.com/RMerl/asuswrt-merlin.ng/wiki/Entware 如果是koolshare的改版梅林,软件中心里也有Enware安装器。 smartdns包含在Entware官方源中,可以直接安装:
opkg update
opkg install smartdns
Enware的文件全部在/opt目录中,smartdns配置文件在/opt/etc/smartdns/smartdns.conf,按需修改就行。
安装好以后默认开机自启。启动用的init.d脚本,位置在/opt/etc/init.d/S38smartdns。有如下命令:
#启动
/opt/etc/init.d/S38smartdns start
#停止
/opt/etc/init.d/S38smartdns stop
#重启
/opt/etc/init.d/S38smartdns restart
#检查运行状态
/opt/etc/init.d/S38smartdns check
不过目前Enware官方仍然是去年的release43版本,缺少一些最新的特性,请注意。 如果想要更新的版本,可以试试我编译的版本,是从Entware官方的改过来的: https://github.com/cokebar/Entware-smartdns/releases