Update README.md

This commit is contained in:
cola 2021-11-13 14:06:50 +08:00 committed by GitHub
parent df120dbfaf
commit 9271201d98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,22 @@
Cloudflare API v4 Dynamic DNS Update in Bash, without unnecessary requests
Now the script also supports v6(AAAA DDNS Recoards)
----
创建 Cloudflare API 令牌,请转到 https://dash.cloudflare.com/profile/api-tokens 并按照以下步骤操作:
1. 单击创建令牌
2. 为令牌提供一个名称,例如,`cloudflare-ddns`
3. 授予令牌以下权限:
* 区域 - 区域 - 读取
* 区域 - 区域设置 - 读取
* 区域 - DNS - 编辑
4. 将区域资源设置为:
* 包括 - 特定区域 - 选择你想设置的域名
----
![image.png](https://i.loli.net/2021/11/13/OMpjhUyubrwN6Lk.png)
```
bash <(curl -Ls https://git.io/cloudflare-ddns) -k cloudflare-api-key \
-h host.example.com \ # fqdn of the record you want to update