Easylist 转 Dnsmasq

通过正则转换实现。

wget --no-check-certificate -qO - https://easylist-downloads.adblockplus.org/easylistchina+easylist.txt | grep ^\|\|[^\*]*\^$ | sed -e 's:||:address\=\/:' -e 's:\^:/0\.0\.0\.0:' > /etc/dnsmasq.d/chinalist+easylist.conf
wget --no-check-certificate -qO - https://raw.githubusercontent.com/cjx82630/cjxlist/master/cjx-annoyance.txt | grep ^\|\|[^\*]*\^$ | sed -e 's:||:address\=\/:' -e 's:\^:/0\.0\.0\.0:' > /etc/dnsmasq.d/cjxlist.conf

 

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.