NewFuture / DDNS

:triangular_flag_on_post: 自动更新域名解析到本机IP(支持dnspod,阿里DNS,CloudFlare,华为云,DNSCOM...)
https://ddns.newfuture.cc/
MIT License
4.31k stars 657 forks source link

[debug] cloudflare ipv4地址不更新 #396

Closed chencd97 closed 1 year ago

chencd97 commented 1 year ago

描述问题 (Describe the bug)

版本信息 (version info)

复现步骤 (To Reproduce)

我用docker的方式运行 newfuture/ddns:latest 今天就是有求需要关闭ddns, 手动在 cloudflare 上手动将域名的A解析换成了别的IP地址 (非当前公网IP) 之后重启了我的Ubuntu系统, , ipv4地址没变(因为上级时使用OpenWRT拨号,没有重启路由器), 但是分配给Ubuntu的ipv6地址变了 然后重新启动newfuture/ddns:latest时发现域名下的A地址一直没有被改变成目前公网的ip地址 但是AAAA(ipv6)地址是有被改变的

是不是有缓存的原因导致上次的ipv4地址没变就不更新?

配置文件 (config file)

{
  "$schema": "https://ddns.newfuture.cc/schema/v2.8.json",
  "debug": true,
  "dns": "cloudflare",
  "id": null,
  "index4": "url:https://myip4.ipip.net/",
  "index6": "url:https://myip6.ipip.net/",
  "ipv4": [
    "xxx"
  ],
  "ipv6": [
    "xxx"
  ],
  "proxy": "DIRECT",
  "token": "xxx",
  "ttl": 60
}

调试输出 (debug output)

========================= Thu May  4 09:40:14 2023 =========================
2023-05-04 09:40:14,667 <cache.load> 48@util/cache.py 
[DEBUG] load cache data from /tmp/ddns.cache
2023-05-04 09:40:14,668 <run.main> 154@run.py 
[DEBUG] Cache is empty.
2023-05-04 09:40:14,668 <ip._open> 51@util/ip.py 
[DEBUG] open: https://myip4.ipip.net/
2023-05-04 09:40:14,855 <ip._open> 55@util/ip.py 
[DEBUG] response: 当前 IP:xxxx  来自于:中国 xxxx  电信

2023-05-04 09:40:14,857 <ip._open> 51@util/ip.py 
[DEBUG] open: https://myip6.ipip.net/
2023-05-04 09:40:14,998 <ip._open> 55@util/ip.py 
[DEBUG] response: 当前 IP:240e:xxxx  来自于:中国 xxxx  电信

. . DDNS[ v2.13.3@2023-04-19T11:44:58+00:00 ] run: posix linux
Configuration was loaded from <== /config/config.json

补充说明 (Additional context)

运行日志中的 response: 当前 IP:都是可以正常获取到的 我打了码