1
drdre 2023-10-18 15:04:50 +08:00
不会谷歌搜索一下吗?原版要 ssh 修改
|
3
Brainos 2023-10-21 13:37:44 +08:00 1
参考 https://github.com/RMerl/asuswrt-merlin.ng/wiki/Custom-config-files#postconf-scripts 和 https://github.com/RMerl/asuswrt-merlin.ng/wiki/Custom-domains-with-dnsmasq
我建议使用一种更安全的方法,创建`/jffs/scripts/dnsmasq.postconf`文件并`chmod 755 /jffs/scripts/dnsmasq.postconf`,内容为: ```shell #!/bin/sh source /usr/sbin/helper.sh sed -i '1,$d' /tmp/resolv.dnsmasq pc_append 'addn-hosts=/jffs/configs/dnsmasq.d/hostfilenameyouwant' "/etc/dnsmasq.conf" ``` 最后把你想要的 hosts 解析写进`/jffs/configs/dnsmasq.d/hostfilenameyouwant`里 |