Comments (2)
没有,你可能没有理解对。
-m xxx.list
指定的域名列表,属于 tag:chn,tag:chn 只会走 china 上游
-g xxx.list
指定的域名列表,属于 tag:gfw,tag:gfw 只会走 trust 上游
-d xxx
用于指定默认的tag(未匹配任何列表的域名的tag),可用值:chn、gfw、none
from chinadns-ng.
事实上,利用这几个简单的选项,可以实现 global、gfwlist、chnroute、回国模式 等等。
比如 ss-tproxy 中的用例:
if is_global_mode; then
# 全局模式(ignlist.ext的走china,其他走trust)
sstp_pid_chinadns=$(
chinadns-ng \
$args \
-m <(list_ext_domain ignlist.ext) \
-d gfw \
-a sstp_white,sstp_white6 \
</dev/null &>>$chinadns_logfile &
echo $!
)
elif is_gfwlist_mode; then
# gfw模式(gfwlist.txt的走trust,其他走china)
sstp_pid_chinadns=$(
chinadns-ng \
$args \
-g gfwlist.txt,<(list_ext_domain gfwlist.ext) \
-d chn \
-A sstp_black,sstp_black6 \
</dev/null &>>$chinadns_logfile &
echo $!
)
else # chnroute
sstp_pid_chinadns=$(
chinadns-ng \
$args \
-m chnlist.txt,<(list_ext_domain ignlist.ext) \
-g gfwlist.txt,<(list_ext_domain gfwlist.ext) \
$(is_true "$chinadns_chnlist_first" && echo '-M') \
-a sstp_white,sstp_white6 \
-A sstp_black,sstp_black6 \
-4 sstp_white -6 sstp_white6 \
</dev/null &>>$chinadns_logfile &
echo $!
)
fi
from chinadns-ng.
Related Issues (20)
- 添加 ip 到 ipset/nftset 时,支持指定元素级别的 timeout 参数
- 关于新版本的使用方法 HOT 20
- `--no-ipv6` 修改: 不过滤、过滤所有、按域名tag过滤、按ip测试结果过滤 HOT 5
- 新版本(2024.03.27)的 udp 似乎有问题 HOT 5
- [ipset.c:606 test_res_ipset] error when querying ip: (2) No such file or directory HOT 2
- [增强] 支持 `udp://` 上游 HOT 37
- --add-tagchn-ip 选项可否设置黑名单 HOT 17
- 对于不支持tcp查询的上游,请带上`udp://`限定 HOT 12
- 是否个例:域名层级问题 HOT 3
- 使用 chinadns-ng 替代 dnsmasq 时,需要注意的事项 HOT 81
- 环境有问题,DNS解析存在“污染” HOT 60
- 24.4.13版本用不了 ,是改变什么吗 HOT 3
- 增加-Dwolfssl编译不过去 HOT 7
- wolfssl 在某些平台上无法正确校验 SSL 证书 HOT 10
- tag有可能支持geosite吗 HOT 1
- 路由器上使用chinadns,一直日志里显示网络不可达 HOT 4
- 请问一下能否支持通过tcp/socks5访问上游 HOT 3
- 一点疑问 HOT 5
- oops, it's gone~ HOT 3
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.