Use domain resolver for ECH config queries

When ECH is enabled without a static config, the HTTPS record query for
the ECH config list went through the DNS rules instead of the domain
resolver, and the migration of outbound DNS rule items to the domain
resolver left no way to select a DNS server for it. A rule rejecting
HTTPS records refused the query, and a default DNS server detoured
through the same outbound waited for its own connection until the query
timed out.

Send the query to the domain resolver of the dial fields, then the
default domain resolver, then the only DNS server, and fail it when
none of them is available. DNS servers must set their own domain
resolver for it, as they do for a domain server address.
This commit is contained in:
世界
2026-11-16 06:50:44 +00:00
parent 9e27f3413b
commit 961b56b176
17 changed files with 90 additions and 37 deletions
+1 -1
View File
@@ -190,7 +190,7 @@ Setting this option directly to a string is equivalent to setting `server` of th
| Outbound/Endpoints | Effected domains |
|--------------------|--------------------------|
| `direct` | Domain in request |
| others | Domain in server address |
| others | Domain in server address, domain of the ECH config query |
#### network_strategy
+1 -1
View File
@@ -188,7 +188,7 @@ TCP keep alive 间隔。
| 出站/端点 | 受影响的域名 |
|----------------|---------------------------|
| `direct` | 请求中的域名 |
| 其他类型 | 服务器地址中的域名 |
| 其他类型 | 服务器地址中的域名、ECH 配置查询的域名 |
#### network_strategy