Files
sing-box/docs/configuration/dns/server/https.md

1006 B

icon
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

{
  "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 for details.