# cloudflare-api-v4-ddns **Repository Path**: Leao9203/cloudflare-api-v4-ddns ## Basic Information - **Project Name**: cloudflare-api-v4-ddns - **Description**: 基于 Cloudflare API 的 DDNS 脚本 - **Primary Language**: Unknown - **License**: Unlicense - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 2 - **Created**: 2022-01-21 - **Last Updated**: 2023-08-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 基于 Cloudflare API 在 Bash 中进行 DDNS 更新,无需一些不必要的依赖。 现在这个脚本已经支持了 IPv6(AAAA 的 DNS 记录) 更详细的用法可以在我博客上看到 https://blog.ascn.site/post/20220121081740/ # 用法 curl https://gitee.com/Leao9203/cloudflare-api-v4-ddns/raw/dev/cf-v4-ddns.sh > /usr/local/bin/cf-ddns.sh && chmod +x /usr/local/bin/cf-ddns.sh cf-ddns.sh -a cloudflare-api-token \ # 填写 Cloudflare API Token -u user@example.com \ # 填写 Cloudflare 用户邮箱 -h host.example.com \ # 填写更新的子域名 -z example.com \ # 填写在 Cloudflare 所托管的域名 -t A|AAAA # 填写更新的记录类型,IPv4(A)或者 IPv6(AAAA) ## 可选操作: -k cloudflare-api-key \ # 使用 Cloudflare Global Key,注意不能和 API Token 同时使用。 -f false|true \ # 强制更新 DNS,忽略本地文件。