Comments (6)
我看了一下 gfwlist.txt,应该没有问题的,限制的原因当然也是主要考虑到性能问题。
1 个 label 的(比如 com),这种直接忽略。因为太短了,命中范围太大。
过长的(4个以上label),直接取后面 4 个label。这样也不会有太大的影响。
from chinadns-ng.
需要动态生成一个 gfwlist.txt
文件时,从 stdin
读取会比较方便。
from chinadns-ng.
必须【美区】?这应该是使用了 cdn 吧,如果使用【域名列表】走可信 dns,估计也是走的 vps 所在区域附近的 cdn 节点。不过无论如何,域名匹配应该是避免不的。关于在 chinadns-ng
上的匹配功能,暂时有一个应该可行且性能也应该不错的想法,不过我人为的给它加了个限制:domain.list 文件中的每个域名,label 最少 2 个,最多 4 个。比如这 3 个都符合要求:
baidu.com # 2 个 label
google.co.jp # 3 个 label
www.google.com.hk # 4 个 label
from chinadns-ng.
我美国的 IP 这 4 个区的都能访问,看来是大陆 IP 的问题了...
https://apps.apple.com/hk/app/speedtest-by-ookla/id1153157709
https://apps.apple.com/tw/app/speedtest-by-ookla/id1153157709
https://apps.apple.com/jp/app/speedtest-by-ookla/id1153157709
https://apps.apple.com/sg/app/speedtest-by-ookla/id1153157709
不过我人为的给它加了个限制:domain.list 文件中的每个域名,label 最少 2 个,最多 4 个。比如这 3 个都符合要求:
baidu.com # 2 个 label google.co.jp # 3 个 label www.google.com.hk # 4 个 label
希望不合法的域名可以被忽略,不知道 gfwlist 里面的域名有没有超过 4 个 label 的...
from chinadns-ng.
@pexcn 已更新,--gfwlist-file
,具体见 readme 以及最新提交。
from chinadns-ng.
嗯,好。
...
-
indicate stdin
有个疑问,gfwlist-file 选项的标准输入用在什么场景呢?
from chinadns-ng.
Related Issues (20)
- 路由器上使用chinadns,一直日志里显示网络不可达 HOT 4
- 请问一下能否支持通过tcp/socks5访问上游 HOT 3
- 一点疑问 HOT 5
- oops, it's gone~ HOT 3
- trust-dns DoT Error:[Upstream.zig:822 Group.parse_failed] invalid proto: 'tls://' HOT 2
- 能同时监听多个端口吗? HOT 6
- 支持bridge协议添加到set HOT 3
- TODO HOT 5
- 能否优化下dns查询的分组机制,防止ddos。 HOT 5
- 【兼容性】对于收到的每个 query msg,都尽量进行”回复“,即使是 bad msg HOT 27
- 是否有办法对特定的局域网内某IP返回过滤掉AAAA HOT 3
- 能否增加域名列表reload的功能? HOT 7
- verdict缓存、dns缓存 持久化 HOT 18
- 服务参数改成配置文件时遇到的一些No such file or directory错误 HOT 3
- 请教:是否支持单纯的dns转发 HOT 10
- 米家智能非标准域名mijia cloud解析问题
- 请教:上游DNS是否支持IPV6地址? HOT 5
- release中没有mips64架构的版本 HOT 11
- 上游 TCP/DoT 服务器的 限流/限速 问题 HOT 7
- 可以增加一个测速优选功能吗? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chinadns-ng.