SagerNet / SagerNet/sing-box

DNS应该增加final action

Open
#3,299 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
38.1k
Forks
4.6k
Avg merge
19d 15h
Merged PRs (30d)
1

Description

经试验,似乎sing-box的dns查询,在未查询到结果时,会继续进行按下面的规则继续进行查询。这在某些需要严格分流的场景会造成意外的结果。
希望能增加dns rule选项,改变该行的运行逻辑,无论是否查询到结果,一旦命中该行规则,就不再继续按后续规则运行。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing sing-box's DNS rule evaluation and how a matched rule proceeds when no result is found. Determine the configuration shape for a final-action option and verify that a matching rule stops later DNS rules regardless of lookup results. Done means the behavior is covered by tests and documented for strict split-DNS scenarios.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.