基于 Cloudflare API 的 A/AAAA 记录自动监控与切换工具
支持候选 IP 延迟测试、IPv6、记录类型自动识别。
C:\Users\sz\AppData\Local\Programs\Python\Python313\python.exe G:\acepython\cf-auto-up\main.py 2025-04-25 21:16:57 [INFO] 配置已保存到 ./config.json 2025-04-25 21:16:57 [INFO] 开始监控 A 记录 test.kohara123.asia,当前 IP: 1.1.1.1:53 2025-04-25 21:16:57 [INFO] 8.8.8.8:53 可达 (延迟 24.12 ms) 2025-04-25 21:16:57 [INFO] 114.114.114.114:53 可达 (延迟 0.42 ms) 2025-04-25 21:16:57 [INFO] 最快 IP 是 114.114.114.114 (延迟 0.42 ms),开始更新 DNS... 2025-04-25 21:16:58 [INFO] A 记录已更新为 114.114.114.114 2025-04-25 21:16:58 [INFO] 配置已保存到 ./config.json
git clone https://cnb.cool/koharachan/cf-auto-up.git
cd cf-auto-up
pip install -r requirements.txt
先运行main.py,生成配置并尝试运行
python3 main.py
如果没毛病,就挂到后台,让它跑就行了
This project is licensed under the GNU General Public License v3.0.
Copyright (C) 2025 koharachan
See LICENSE for full text.