mirror of
https://github.com/aipeach/cloudflare-api-v4-ddns.git
synced 2025-02-28 09:29:27 +08:00
Update README.md
This commit is contained in:
parent
df120dbfaf
commit
9271201d98
16
README.md
16
README.md
@ -1,6 +1,22 @@
|
|||||||
Cloudflare API v4 Dynamic DNS Update in Bash, without unnecessary requests
|
Cloudflare API v4 Dynamic DNS Update in Bash, without unnecessary requests
|
||||||
Now the script also supports v6(AAAA DDNS Recoards)
|
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. 将区域资源设置为:
|
||||||
|
* 包括 - 特定区域 - 选择你想设置的域名
|
||||||
|
|
||||||
|
----
|
||||||
|

|
||||||
|
|
||||||
```
|
```
|
||||||
bash <(curl -Ls https://git.io/cloudflare-ddns) -k cloudflare-api-key \
|
bash <(curl -Ls https://git.io/cloudflare-ddns) -k cloudflare-api-key \
|
||||||
-h host.example.com \ # fqdn of the record you want to update
|
-h host.example.com \ # fqdn of the record you want to update
|
||||||
|
Loading…
x
Reference in New Issue
Block a user