DDNS
DDNS copied to clipboard
[debug] 更新DNS出错,提示:[Errno 61] Connection refused
描述问题 (Describe the bug)
更新DNS出错,提示:[Errno 61] Connection refused
版本信息 (version info)
- DDNS Version: ddns[v2.13.3@2023-04-19T11:45:22+00:00]
- OS Version: macOS Ventura 13.4.1
- Type(运行方式): Python3
- related issues (相关问题):
复现步骤 (To Reproduce)
执行ddns -c config.json,更新失败,报错
配置文件 (config file)
{
"$schema": "https://ddns.newfuture.cc/schema/v2.8.json",
"id": "",
"token": "<my-token>",
"dns": "cloudflare",
"ipv4": ["<my-domain>"],
"index4": "url:https://myip4.ipip.net",
"ttl": 600,
"proxy": "127.0.0.1:1080;DIRECT",
"debug": true
}
调试输出 (debug output)
DDNS[ v2.13.3@2023-04-19T11:45:22+00:00 ] run: posix darwin
Configuration was loaded from <== <my-path>/config.json
========================= Tue Aug 8 18:43:32 2023 =========================
2023-08-08 18:43:32,276 <cache.load> 48@/opt/homebrew/lib/python3.11/site-packages/util/cache.py
[DEBUG] load cache data from /var/folders/cr/_0b_4srn5k79yx0znsxvvy6h0000gn/T/ddns.cache
2023-08-08 18:43:32,276 <run.main> 151@/opt/homebrew/lib/python3.11/site-packages/run.py
[WARNING] Cache file is out of dated.
2023-08-08 18:43:32,276 <ip._open> 51@/opt/homebrew/lib/python3.11/site-packages/util/ip.py
[DEBUG] open: https://myip4.ipip.net
2023-08-08 18:43:32,453 <ip._open> 55@/opt/homebrew/lib/python3.11/site-packages/util/ip.py
[DEBUG] response: 当前 IP:<my-ip> 来自于:<my-address>
Tue Aug 8 18:43:32 2023 <my-domain>(A) ==> <my-ip> [via 127.0.0.1:1080]
2023-08-08 18:43:32,454 <cloudflare.update_record> 135@/opt/homebrew/lib/python3.11/site-packages/dns/cloudflare.py
[INFO] >>>>><my-domain>(A)
2023-08-08 18:43:32,454 <cloudflare.request> 44@/opt/homebrew/lib/python3.11/site-packages/dns/cloudflare.py
[INFO] api.cloudflare.com/ : {'name': '<my-main-domain>'}
2023-08-08 18:43:32,468 <run.change_dns_record> 81@/opt/homebrew/lib/python3.11/site-packages/run.py
[ERROR] [Errno 61] Connection refused
Tue Aug 8 18:43:32 2023 <my-domain>(A) ==> <my-ip> [via DIRECT]
2023-08-08 18:43:32,470 <cloudflare.update_record> 135@/opt/homebrew/lib/python3.11/site-packages/dns/cloudflare.py
[INFO] >>>>><my-domain>(A)
2023-08-08 18:43:32,470 <cloudflare.request> 44@/opt/homebrew/lib/python3.11/site-packages/dns/cloudflare.py
[INFO] api.cloudflare.com/ : {'name': '<my-main-domain>'}
2023-08-08 18:43:32,479 <run.change_dns_record> 81@/opt/homebrew/lib/python3.11/site-packages/run.py
[ERROR] [Errno 61] Connection refused
2023-08-08 18:43:32,480 <cache.sync> 85@/opt/homebrew/lib/python3.11/site-packages/util/cache.py
[DEBUG] save cache data to /var/folders/cr/_0b_4srn5k79yx0znsxvvy6h0000gn/T/ddns.cache