mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-04-15 05:08:33 +10:00
69 lines
1006 B
Markdown
69 lines
1006 B
Markdown
---
|
|
icon: material/new-box
|
|
---
|
|
|
|
!!! quote "Changes in sing-box 1.14.0"
|
|
|
|
:material-alert: `headers`, `tls`, Dial Fields moved to [HTTP Client Fields](#http-client-fields)
|
|
|
|
!!! question "Since sing-box 1.12.0"
|
|
|
|
# DNS over HTTPS (DoH)
|
|
|
|
### Structure
|
|
|
|
```json
|
|
{
|
|
"dns": {
|
|
"servers": [
|
|
{
|
|
"type": "https",
|
|
"tag": "",
|
|
|
|
"server": "",
|
|
"server_port": 0,
|
|
|
|
"path": "",
|
|
"method": "",
|
|
|
|
... // HTTP Client Fields
|
|
}
|
|
]
|
|
}
|
|
}
|
|
```
|
|
|
|
### 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.
|
|
|
|
`443` will be used by default.
|
|
|
|
#### path
|
|
|
|
The path of the DNS server.
|
|
|
|
`/dns-query` will be used by default.
|
|
|
|
#### method
|
|
|
|
HTTP request method.
|
|
|
|
Available values: `GET`, `POST`.
|
|
|
|
`POST` will be used by default.
|
|
|
|
### HTTP Client Fields
|
|
|
|
See [HTTP Client Fields](/configuration/shared/http-client/) for details.
|