From 9271201d98928e234481ebcc09db6f1e68e66b0e Mon Sep 17 00:00:00 2001 From: cola <44671411+aipeach@users.noreply.github.com> Date: Sat, 13 Nov 2021 14:06:50 +0800 Subject: [PATCH] Update README.md --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index caaa4b6..f92ac13 100644 --- a/README.md +++ b/README.md @@ -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