mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-10-20 08:14:24 +00:00
tun: Fix inconsistent DNS mode behavior without auto_route
This commit is contained in:
@@ -255,7 +255,9 @@ How DNS is handled on the TUN interface.
|
||||
|------------|------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `disabled` | Do not configure native DNS and do not hijack DNS traffic. |
|
||||
| `native` | Set the platform's native interface DNS where possible: per-interface DNS on Windows and Apple platforms, and `systemd-resolved` interface DNS on Linux. |
|
||||
| `hijack` | Same as `native`, with additional port 53 hijacking described below. Used by default. |
|
||||
| `hijack` | Same as `native`, with additional port 53 hijacking described below. |
|
||||
|
||||
`hijack` is used by default when [`auto_route`](#auto_route) is enabled, otherwise `disabled` is used by default.
|
||||
|
||||
`hijack` adds the following on top of `native`:
|
||||
|
||||
|
||||
@@ -259,7 +259,9 @@ TUN 接口上 DNS 的处理方式。
|
||||
|------------|-------------------------------------------------------------------------------------------------------|
|
||||
| `disabled` | 不设置原生 DNS,也不劫持 DNS 流量。 |
|
||||
| `native` | 尽可能设置平台的原生接口 DNS:Windows 与 Apple 上的接口 DNS,Linux 上的 `systemd-resolved` 接口 DNS。 |
|
||||
| `hijack` | 与 `native` 相同,并额外执行下文所述的 53 端口劫持。默认使用。 |
|
||||
| `hijack` | 与 `native` 相同,并额外执行下文所述的 53 端口劫持。 |
|
||||
|
||||
启用 [`auto_route`](#auto_route) 时默认使用 `hijack`,否则默认使用 `disabled`。
|
||||
|
||||
`hijack` 在 `native` 之上额外执行:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user