清除smartdns解析结果缓存 服务应用

先停止smartdns,然后删除cache文件。
默认情况下,cache文件在

/etc/smartdns/smartdns.cache
/tmp/smartdns.cache
/var/cache/smartdns/smartdns.cache

指令用这一条就行了(开了持久化缓存):

service smartdns stop && sleep 1 && rm /etc/smartdns/smartdns.cache && service smartdns start

https://github.com/pymumu/smartdns/issues/1421

标签: Smartdns

诺恒 发布于  2023-10-18 20:24