Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support gfwlist in dnsmasq #419

Merged
merged 1 commit into from
Sep 12, 2020
Merged

Support gfwlist in dnsmasq #419

merged 1 commit into from
Sep 12, 2020

Conversation

Yonsm
Copy link
Contributor

@Yonsm Yonsm commented Jun 25, 2020

dnsmasq 支持 gfwlist 配置

  1. 格式:

gfwlist=<path|domain>[@server][^ipset]

  • path 可以是每行逐条的 gfwlist.txt,也可以直接是单行的 gfwlist 内容,每行均支持逗号分割多个内容(但每行需小于1000字符);
  • server 可以省略默认为 8.8.8.8~53,即 Google TCP DNS;
  • ipset 默认为 gfwlist,如果不想启用 ipset 功能,可以直接用 ^ 而不跟随任何字符即可。
  1. 举例:

gfwlist=mit.edu
gfwlist=github.com,github.io@8.8.4.4~53^gfwlist
gfwlist=/etc/storage/dnsmasq/gfwlist.txt

仅在 parse 参数和配置的过程中改动,均为兑现成原有的功能,方案靠谱,改动也不大,但受益很大,方便且高效过了。

… by one)

e.g. "--gfwlist=/etc/storage/dnsmasq/gfwlist.conf@8.8.8.8#53^gfwlist" equals to multiple line as below:
server=/xxx.xxx/8.8.8.8#53
ipset=/xxx.xxx/gfwlist
@hanwckf hanwckf merged commit dbe29ad into hanwckf:master Sep 12, 2020
@Yonsm Yonsm deleted the gfwlist branch October 19, 2020 03:59
Yh793 added a commit to Yh793/rt-n56u that referenced this pull request Dec 24, 2022
Support TCP DNS, e.g. server=/google.com/8.8.8.8~53
Support load gfwlist.txt (equals to add with --server and --ipset one by one) (hanwckf#419)
Yh793 added a commit to Yh793/rt-n56u that referenced this pull request Jan 1, 2023
- Support TCP DNS, e.g. server=/google.com/8.8.8.8~53 (hanwckf#418)
- Support load gfwlist.txt (equals to add with --server and --ipset one by one) (hanwckf#419)
- Fix TCP DNS crash in dnsmasq 2.8 (hanwckf#754)
Yh793 added a commit to Yh793/rt-n56u that referenced this pull request Jan 1, 2023
- Support TCP DNS, e.g. server=/google.com/8.8.8.8~53 (hanwckf#418)
- Support load gfwlist.txt (equals to add with --server and --ipset one by one) (hanwckf#419)
- Fix TCP DNS crash in dnsmasq 2.8 (hanwckf#754)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants