SagerNet / SagerNet/sing-box

[Feature Suggestion] Adding "server" option to be used with "override_address"

Open
#4,426 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

override_address is not always an IP address and it can be a domain address. However, there is not an option to specify which DNS server to be used to resolve the specified domain to an IP address. It would be great if there was such an option. An argument like the following example is suggested:

{
    "action": "route-options",
    "override_address": "www.example.com",
    "domain": "cdn.example.com",
    "server": "google-dns" // dns server used to resolve "www.example.com" to IP
}

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

The issue names no implementation file, entry point, or test. Start by locating handling for the route-options action and the existing DNS resolution path, then determine how a selected server should be represented and used. Done means domain-valued override_address can be resolved through the configured server without changing existing behavior.

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
Quiet
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.