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

Predefined 似乎更适合 dns 规则动作 #2637

Open
4 of 5 tasks
ReleTor opened this issue Feb 25, 2025 · 2 comments
Open
4 of 5 tasks

Predefined 似乎更适合 dns 规则动作 #2637

ReleTor opened this issue Feb 25, 2025 · 2 comments

Comments

@ReleTor
Copy link
Contributor

ReleTor commented Feb 25, 2025

操作系统

Windows

系统版本

24H2

安装类型

sing-box 原始命令行程序

如果您使用图形客户端程序,请提供该程序版本。

No response

版本

描述

现在的 Predefined 作为一个 server 似乎有点不合适,感觉更适合在规则动作中指定。

重现方式

{
  "action": ""
  "rcode": "",
  "answer": [],
  "ns": [],
  "extra": []
}

日志

支持我们

完整性要求

  • 我保证阅读了文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
  • 我保证提供了可以在本地重现该问题的服务器、客户端配置文件与流程,而不是一个脱敏的复杂客户端配置文件。
  • 我保证提供了可用于重现我报告的错误的最简配置,而不是依赖远程服务器、TUN、图形界面客户端或者其他闭源软件。
  • 我保证提供了完整的配置文件与日志,而不是出于对自身智力的自信而仅提供了部分认为有用的部分。
@ReleTor ReleTor changed the title Predefined 似乎更适合以 dns 规则动作 Predefined 似乎更适合 dns 规则动作 Feb 25, 2025
@nunu6689
Copy link

There's also a hosts dns server. The same as predefined dns server, you need to know the exact domain to match which is not efficient. Maybe added a new condition for dns rule like fallback, if the hosts or predefined dns server return empty it will be skipped.

@nekohasekai
Copy link
Member

There's also a hosts dns server. The same as predefined dns server, you need to know the exact domain to match which is not efficient. Maybe added a new condition for dns rule like fallback, if the hosts or predefined dns server return empty it will be skipped.

You are looking for ip_accept_any

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