Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
dnsmasq 支持
gfwlist
配置,gfwlist=<path|domain>[@server][^ipset]
path
可以是每行逐条的 gfwlist.txt,也可以直接是单行的 gfwlist 内容,每行均支持逗号分割多个内容(但每行需小于1000字符);server
可以省略默认为8.8.8.8~53
,即 Google TCP DNS;ipset
默认为gfwlist
,如果不想启用 ipset 功能,可以直接用^
而不跟随任何字符即可。gfwlist=mit.edu
gfwlist=github.com,github.io@8.8.4.4~53^gfwlist
gfwlist=/etc/storage/dnsmasq/gfwlist.txt
仅在 parse 参数和配置的过程中改动,均为兑现成原有的功能,方案靠谱,改动也不大,但受益很大,方便且高效过了。