Skip to content
Convert gfwlist into dnsmasq configuration file.
Shell Awk
Branch: develop
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
conf
LICENSE
README.md
domainlist2dnsmasq.awk
gfwlist2dnsmasq-openwrt.sh
gfwlist2dnsmasq.sh
gfwlist2domainlist.awk

README.md

Convert gfwlist into dnsmasq configuration file.

How to use:

Copy gfwlist2domainlist.awk, domainlist2dnsmasq.awk, and gfwlist2dnsmasq.sh to directory /usr/local/bin/, add gfwlist2dnsmasq.sh to /etc/crontab to let it run at 2:30 every day:

30	2	*	*	*	root	/usr/local/bin/gfwlist2dnsmasq.sh > /dev/null 2>&1

user_rule.txt example:

# comment line
! comment line as well
example.net
You can’t perform that action at this time.