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

请教smartdns中如何设置规则让某个域名或IP直连而不会通过代理? #1863

Open
zxlhhyccc opened this issue Dec 1, 2024 · 4 comments

Comments

@zxlhhyccc
Copy link
Contributor

例如:我想将域名pubstatic.b0.upaiyun.com或者对应的IP设置直连,然后不会通过代理工具代理,请问如何设置规则。

@PikuZheng
Copy link
Contributor

设一个没有代理的上游。把这个域名指定用这个上游。

@zxlhhyccc
Copy link
Contributor Author

设一个没有代理的上游。把这个域名指定用这个上游。

是:address /www.example.com/1.2.3.4这样子的格式吗?

@PikuZheng
Copy link
Contributor

没理解。smartdns配置的是连接某个上游时是否通过代理。和查询的域名无关。严格来说,你的问题“smartdns如何使某个域名不走代理”是不成立的。

@EarSum
Copy link

EarSum commented Dec 16, 2024

这个需求你应该在代理工具上使用分流规则将特定域名转发至直连,smartdns本身只能控制对于某个域名的解析是否走代理,而无法控制对该域名或其解析出的IP的连接行为是否走代理。

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

No branches or pull requests

3 participants