-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b3b232b
commit 144953b
Showing
22 changed files
with
1,664 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
icon: material/new-box | ||
--- | ||
|
||
!!! question "Since sing-box 1.12.0" | ||
|
||
# DHCP | ||
|
||
### Structure | ||
|
||
```json | ||
{ | ||
"dns": { | ||
"servers": [ | ||
{ | ||
"type": "dhcp", | ||
"tag": "", | ||
|
||
"interface": "", | ||
|
||
// Dial Fields | ||
} | ||
] | ||
} | ||
} | ||
``` | ||
|
||
### Fields | ||
|
||
#### interface | ||
|
||
Interface name to listen on. | ||
|
||
Tge default interface will be used by default. | ||
|
||
### Dial Fields | ||
|
||
See [Dial Fields](/configuration/shared/dial/) for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
icon: material/new-box | ||
--- | ||
|
||
!!! question "Since sing-box 1.12.0" | ||
|
||
# Fake IP | ||
|
||
### Structure | ||
|
||
```json | ||
{ | ||
"dns": { | ||
"servers": { | ||
"type": "fakeip", | ||
"tag": "", | ||
|
||
"inet4_range": "198.18.0.0/15", | ||
"inet6_range": "fc00::/18" | ||
} | ||
} | ||
} | ||
``` | ||
|
||
### Fields | ||
|
||
#### inet4_range | ||
|
||
IPv4 address range for FakeIP. | ||
|
||
#### inet6_address | ||
|
||
IPv6 address range for FakeIP. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
--- | ||
icon: material/new-box | ||
--- | ||
|
||
!!! question "Since sing-box 1.12.0" | ||
|
||
# DNS over HTTP3 (DoH3) | ||
|
||
### Structure | ||
|
||
```json | ||
{ | ||
"dns": { | ||
"servers": { | ||
"type": "h3", | ||
"tag": "", | ||
|
||
"server": "", | ||
"server_port": 443, | ||
|
||
"path": "", | ||
"headers": {}, | ||
|
||
"tls": {}, | ||
|
||
// Dial Fields | ||
} | ||
} | ||
} | ||
``` | ||
|
||
!!! info "Difference from legacy H3 server" | ||
|
||
* The old server uses default outbound by default unless detour is specified; the new one uses dialer just like outbound, which is equivalent to using an empty direct outbound by default. | ||
* The old server uses `address_resolver` and `address_strategy` to resolve the domain name in the server; the new one uses `domain_resolver` and `domain_strategy` in [Dial Fields](/configuration/shared/dial/) instead. | ||
|
||
### Fields | ||
|
||
#### server | ||
|
||
==Required== | ||
|
||
The address of the DNS server. | ||
|
||
If domain name is used, `domain_resolver` must also be set to resolve IP address. | ||
|
||
#### server_port | ||
|
||
The port of the DNS server. | ||
|
||
`853` will be used by default. | ||
|
||
#### path | ||
|
||
The path of the DNS server. | ||
|
||
`/dns-query` will be used by default. | ||
|
||
#### headers | ||
|
||
Additional headers to be sent to the DNS server. | ||
|
||
#### tls | ||
|
||
TLS configuration, see [TLS](/configuration/shared/tls/#outbound). | ||
|
||
### Dial Fields | ||
|
||
See [Dial Fields](/configuration/shared/dial/) for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
--- | ||
icon: material/new-box | ||
--- | ||
|
||
!!! question "Since sing-box 1.12.0" | ||
|
||
# DNS over HTTPS (DoH) | ||
|
||
### Structure | ||
|
||
```json | ||
{ | ||
"dns": { | ||
"servers": { | ||
"type": "https", | ||
"tag": "", | ||
|
||
"server": "", | ||
"server_port": 443, | ||
|
||
"path": "", | ||
"headers": {}, | ||
|
||
"tls": {}, | ||
|
||
// Dial Fields | ||
} | ||
} | ||
} | ||
``` | ||
|
||
!!! info "Difference from legacy HTTPS server" | ||
|
||
* The old server uses default outbound by default unless detour is specified; the new one uses dialer just like outbound, which is equivalent to using an empty direct outbound by default. | ||
* The old server uses `address_resolver` and `address_strategy` to resolve the domain name in the server; the new one uses `domain_resolver` and `domain_strategy` in [Dial Fields](/configuration/shared/dial/) instead. | ||
|
||
### Fields | ||
|
||
#### server | ||
|
||
==Required== | ||
|
||
The address of the DNS server. | ||
|
||
If domain name is used, `domain_resolver` must also be set to resolve IP address. | ||
|
||
#### server_port | ||
|
||
The port of the DNS server. | ||
|
||
`853` will be used by default. | ||
|
||
#### path | ||
|
||
The path of the DNS server. | ||
|
||
`/dns-query` will be used by default. | ||
|
||
#### headers | ||
|
||
Additional headers to be sent to the DNS server. | ||
|
||
#### tls | ||
|
||
TLS configuration, see [TLS](/configuration/shared/tls/#outbound). | ||
|
||
### Dial Fields | ||
|
||
See [Dial Fields](/configuration/shared/dial/) for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
icon: material/alert-decagram | ||
--- | ||
|
||
!!! quote "Changes in sing-box 1.12.0" | ||
|
||
:material-plus: [type](#type) | ||
|
||
# DNS Server | ||
|
||
### Structure | ||
|
||
```json | ||
{ | ||
"dns": { | ||
"servers": [ | ||
{ | ||
"type": "", | ||
"tag": "" | ||
} | ||
] | ||
} | ||
} | ||
``` | ||
|
||
#### type | ||
|
||
The type of the DNS server. | ||
|
||
| Type | Format | | ||
|-----------------|-----------------------------------------------------| | ||
| empty (default) | [Legacy](/configuration/dns/server/legacy/) | | ||
| `tcp` | [TCP](/configuration/dns/server/tcp/) | | ||
| `udp` | [UDP](/configuration/dns/server/udp/) | | ||
| `tls` | [TLS](/configuration/dns/server/tls/) | | ||
| `https` | [HTTPS](/configuration/dns/server/https/) | | ||
| `quic` | [QUIC](/configuration/dns/server/quic/) | | ||
| `h3` | [HTTP/3](/configuration/dns/server/http3/) | | ||
| `predefined` | [Predefined](/configuration/dns/server/predefined/) | | ||
| `dhcp` | [DHCP](/configuration/dns/server/dhcp/) | | ||
| `fakeip` | [Fake IP](/configuration/dns/server/fakeip/) | | ||
|
||
|
||
#### tag | ||
|
||
The tag of the DNS server. |
8 changes: 8 additions & 0 deletions
8
docs/configuration/dns/server.md → docs/configuration/dns/server/legacy.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
docs/configuration/dns/server.zh.md → docs/configuration/dns/server/legacy.zh.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.