RyoLee / gfwlist2smartdns

A shell script to generate smartdns config from gfwlist.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gfwlist2smartdns

列表内的域名使用含有'-group GFW -exclude-default-group'的server配置,参考smartdns.conf中

server-https https://dns.google/dns-query -check-edns -blacklist-ip -group GFW -exclude-default-group

缓存策略与速度检查策略请按需自行调整cache-size/speed-check-mode等参数

列表文件/etc/smartdns/gfw.conf可通过crontab定时更新

0 2 * * * curl -s https://raw.githubusercontent.com/RyoLee/gfwlist2smartdns/master/run.sh | bash -s -- -o /etc/smartdns/gfw.conf && /etc/init.d/smartdns reload

建议保存到本地运行,类似↓

0 2 * * * bash /opt/gfwlist2smartdns/run.sh -o /etc/smartdns/gfw.conf && /etc/init.d/smartdns reload

About

A shell script to generate smartdns config from gfwlist.

License:GNU General Public License v3.0


Languages

Language:Shell 100.0%