Files
sing-box-extended-mirror/docs/configuration/shared/dns01_challenge.zh.md
T

74 lines
1.1 KiB
Markdown
Raw Normal View History

2025-12-21 23:11:00 +08:00
---
icon: material/new-box
---
!!! quote "sing-box 1.13.0 中的更改"
2025-12-26 16:20:27 +08:00
:material-plus: [alidns.security_token](#security_token)
2026-01-17 06:52:43 -06:00
:material-plus: [cloudflare.zone_token](#zone_token)
:material-plus: [acmedns](#acmedns)
2025-12-21 23:11:00 +08:00
2023-09-16 21:37:22 +08:00
### 结构
```json
{
"provider": "",
2025-12-21 23:11:00 +08:00
2023-09-16 21:37:22 +08:00
... // 提供商字段
}
```
### 提供商字段
#### Alibaba Cloud DNS
```json
{
"provider": "alidns",
"access_key_id": "",
"access_key_secret": "",
2025-12-21 23:11:00 +08:00
"region_id": "",
"security_token": ""
2023-09-16 21:37:22 +08:00
}
```
2025-12-21 23:11:00 +08:00
##### security_token
!!! question "自 sing-box 1.13.0 起"
用于 STS 临时凭证的安全令牌。
2023-09-16 21:37:22 +08:00
#### Cloudflare
```json
{
"provider": "cloudflare",
2025-12-21 23:11:00 +08:00
"api_token": "",
"zone_token": ""
2023-09-16 21:37:22 +08:00
}
2025-12-21 23:11:00 +08:00
```
##### zone_token
!!! question "自 sing-box 1.13.0 起"
具有 `Zone:Read` 权限的可选 API 令牌。
提供后可将 `api_token` 限定到单个区域。
2026-01-17 06:52:43 -06:00
#### ACME-DNS
!!! question "自 sing-box 1.13.0 起"
```json
{
"provider": "acmedns",
"username": "",
"password": "",
"subdomain": "",
"server_url": ""
}
```
参阅 [ACME-DNS](https://github.com/joohoi/acme-dns)。