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返回过滤掉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 37
- 可以增加一个测速优选功能吗? HOT 4
- failed to build on arm64 device panther-x2 HOT 2
- ipv6 dns的支持格式 HOT 1
- 多个上游dns是什么工作模式 HOT 1
- no ipv6对group没生效,是我配置有问题吗? HOT 5
- 为什么 "-Dtarget=native-native-musl" 无法编译成功? HOT 2
- 反向污染有没有办法自动识别 HOT 25
- chinadns-ng安装问题。 HOT 13
- 过滤掉无效的返回 HOT 8
- [建议]可否考虑加入socks5客户端 HOT 6
- VOWIFI组的例子
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.