mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-08-23 02:27:35 +08:00
documentation: Update behavior of local
DNS server on darwin
This commit is contained in:
parent
e53fce3366
commit
3849b130be
@ -43,16 +43,18 @@ When enabled, `local` DNS server will resolve DNS by dialing itself whenever pos
|
|||||||
|
|
||||||
Specifically, it disables following behaviors which was added as features in sing-box 1.13.0:
|
Specifically, it disables following behaviors which was added as features in sing-box 1.13.0:
|
||||||
|
|
||||||
* On Apple platforms: Use `libresolv` for resolution, as it is the only one that works properly with NetworkExtension
|
1. On Apple platforms: Attempt to resolve A/AAAA requests using `getaddrinfo` in NetworkExtension.
|
||||||
that overrides DNS servers (DHCP is also possible but is not considered).
|
2. On Linux: Resolve through `systemd-resolvd`'s DBus interface when available.
|
||||||
* On Linux: Resolve through `systemd-resolvd`'s DBus interface when available.
|
|
||||||
|
|
||||||
As a sole exception, it cannot disable the following behavior:
|
As a sole exception, it cannot disable the following behavior:
|
||||||
|
|
||||||
In the Android graphical client, the `local` DNS server will always resolve DNS through the platform interface,
|
1. In the Android graphical client,
|
||||||
as there is no other way to obtain upstream DNS servers.
|
`local` will always resolve DNS through the platform interface,
|
||||||
|
as there is no other way to obtain upstream DNS servers;
|
||||||
|
On devices running Android versions lower than 10, this interface can only resolve A/AAAA requests.
|
||||||
|
|
||||||
On devices running Android versions lower than 10, this interface can only resolve IP queries.
|
2. On macOS, `local` will try DHCP first in Network Extension, since DHCP respects DIal Fields,
|
||||||
|
it will not be disabled by `prefer_go`.
|
||||||
|
|
||||||
### Dial Fields
|
### Dial Fields
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user