cloudflare-api-v4-ddns
cloudflare-api-v4-ddns copied to clipboard
Cloudflare API v4 Dynamic DNS Update in Bash
在脚本中有如下: grep -Po '(?
from: x-auth-key to: Authorization: Bearer
[root@localhost ~]# ./cf-v4-ddns.sh No file, need IP Updating zone_identifier & record_identifier
https://github.com/Leao9203/cloudflare-api-v4-ddns/issues/1
# 修改原因 1. 当cloudflare dns名称被删除重建时recordid会变更,当本地记录存在时优先使用本地变更会导致更新是报错记录不存在。 2. 没有RECORDTYPE时会取得第一个RECORDID作为更新ID,但是如果同时配置ipv4和ipv6时,会导致只更新第一条记录。
我是在crontab里做的定时任务 `*/5 * * * * cf-v4-ddns.sh >> /home/latezly/cf-ddns.log 2>&1`  刚开始启动的时候一直是正常的 过了一段时间就开始报这个错误 ``` Updating DNS to error code: 1020 Something went wrong :( Response: {"result":null,"success":false,"errors":[{"code":9005,"message":"Content for A record must...
Can you make this a Docker image?
首先感谢大大精简好用的代码,在config填写正确的情况下没有问题,可以正常使用。 出于好奇自己研究了下 在API错误情况下打印: No file, need IP Updating zone_identifier & record_identifier 测试了下 大概出现在这个位置 https://github.com/yulewang/cloudflare-api-v4-ddns/blob/1336b077a26a1a6a88b651dc53519290894b7242/cf-v4-ddns.sh#L123 因为API错误的原因导致文件直接退出没有继续执行后文的错误检测代码 修不来……我爬了
运行无效果,但未报错
每次./脚本后 输出“no file.need ip” 和 “Updating zone_identifier & record_identifier”后无反应 cf面板未更新ip,且本地未生成两个存档数据的txt文件 我使用了全局api key 并且在两台机器上分别使用debian和centos做过测试,也用文件内使用方法在/usr目录下实验过 能想到的原因均测试过,实在没办法请教大佬们,希望有大佬解惑