smartdns icon indicating copy to clipboard operation
smartdns copied to clipboard

请教一下OpenWrt 下的luci的配置跟自定义设置重合以哪个为准备

Open LsnmxNB opened this issue 3 years ago • 7 comments

如题,luci有缓存大小,域名TTL等,我看作者发的一些参数只能在自定义下

#域名结果缓存个数

dns cache size

cache-size [number]

0: for no cache

cache-size 16384

luci下是1000000以哪个准 cache-size 12288 cache-file /mnt/sda1/smartdns/smartdns.cache cache-persist yes rr-ttl-min 600 prefetch-domain yes serve-expired yes serve-expired-ttl 345600 serve-expired-prefetch-time 43200 force-qtype-SOA 65 dnsmasq-lease-file /var/lib/misc/dnsmasq.leases

Snipaste_2022-08-14_20-37-52 Snipaste_2022-08-14_20-40-22

Snipaste_2022-08-14_21-10-10

LsnmxNB avatar Aug 14 '22 12:08 LsnmxNB

@pymumu 大佬,我都被luci的配置搞晕了

LsnmxNB avatar Aug 14 '22 12:08 LsnmxNB

再弱弱问下缓存持久化文件路径 设置为/tmp/ 这个RAM位置时,路由重启是不是就没缓存了,可是设置到ROM的路径,DNS缓存会频繁读写,SSD扛不住啊

LsnmxNB avatar Aug 14 '22 13:08 LsnmxNB

持久缓存文件 只有在smartdns正常退出时才写入一次,启动时才读取一次。另外需注意,日志文件是一直在写入的,如果没必要永久保存请尽量将其记录到tmpfs

PikuZheng avatar Aug 14 '22 14:08 PikuZheng

如果一个配置项出现了两次,以最后一次为准(配置文件载入顺序) 顺便说一下配置上我基本上是使用自定义的conf文件,不用界面

PikuZheng avatar Aug 14 '22 14:08 PikuZheng

@PikuZheng 谢谢,现在只用自定义的conf文件,界面留空就行了吧,日志位置我看看关闭/记录到tmp都行

LsnmxNB avatar Aug 14 '22 16:08 LsnmxNB

持久缓存文件 只有在smartdns正常退出时才写入一次,启动时才读取一次。另外需注意,日志文件是一直在写入的,如果没必要永久保存请尽量将其记录到tmpfs

tmp就是tmpfs么

yyysuo avatar Aug 15 '22 15:08 yyysuo

持久缓存文件 只有在smartdns正常退出时才写入一次,启动时才读取一次。另外需注意,日志文件是一直在写入的,如果没必要永久保存请尽量将其记录到tmpfs

tmp就是tmpfs么

不一定是

PikuZheng avatar Aug 15 '22 22:08 PikuZheng