{"id":26676925,"url":"https://github.com/jinqians/cf_ddns","last_synced_at":"2026-05-04T06:33:21.086Z","repository":{"id":206985406,"uuid":"718155522","full_name":"jinqians/cf_ddns","owner":"jinqians","description":"cloudflare 动态 DNS（DDNS）！Cloudflare 的 DDNS 功能允许您通过 API 更新您的域名解析记录，使之适用于动态 IP 地址。","archived":false,"fork":false,"pushed_at":"2025-02-12T12:37:55.000Z","size":26,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T13:52:39.073Z","etag":null,"topics":["cloudflare","cloudflare-ddns","cloudflare-ddns-script","ddns","ddns-updater"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jinqians.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-13T13:55:35.000Z","updated_at":"2025-02-12T12:37:58.000Z","dependencies_parsed_at":"2023-12-08T15:07:54.724Z","dependency_job_id":"503161a2-7179-40e6-94f8-ecadf528968b","html_url":"https://github.com/jinqians/cf_ddns","commit_stats":null,"previous_names":["jinqians/cd_ddns"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinqians%2Fcf_ddns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinqians%2Fcf_ddns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinqians%2Fcf_ddns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinqians%2Fcf_ddns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jinqians","download_url":"https://codeload.github.com/jinqians/cf_ddns/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245585811,"owners_count":20639671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloudflare","cloudflare-ddns","cloudflare-ddns-script","ddns","ddns-updater"],"created_at":"2025-03-26T04:17:29.440Z","updated_at":"2026-05-04T06:33:16.044Z","avatar_url":"https://github.com/jinqians.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cf_ddns简介\n该脚本用于自动更新 Cloudflare DNS 记录的 IP 地址。它适用于需要定期更新 DNS 记录以匹配动态 IP 地址的情况\n\n## 食用教程：\n### 一、下载脚本\n```shell\nwget https://raw.githubusercontent.com/jinqians/cd_ddns/main/cf_ddns.sh\n```\n### 二、获取API密钥\n打开cloudflare，在My Profile---\u003eAPI Tokens中获取Global API密钥\n\n### 三、配置脚本信息\n在首次运行脚本时，它会提示你输入 Cloudflare 账户信息和其他配置，包括：\u003cbr\u003e\n+ Cloudflare 账户的邮箱（Auth Email） \u003cbr\u003e\n+ Cloudflare 账户的 API Key（Auth Key） \u003cbr\u003e\n+ Cloudflare 区域名称（Zone Name） \u003cbr\u003e\n+ 需要更新的 DNS 记录名称（Record Name） \u003cbr\u003e\n\n以上信息填写完成后，选择要更新的 IP 类型（IPv4 或 IPv6）。\n\n### 四、设置定时任务\n使用`crontab -e`添加定时任务，例如5分钟执行一次\n\n```shell\n*/5 * * * * /bin/bash \u003c空格\u003e your path/cf_ddns.sh\n```\n## 其他相关说明\n### 后续运行：\n在第一次配置完成后，脚本会将这些配置保存到 * cloudflare_config.txt * 文件中。后续运行时，脚本将直接从配置文件中读取这些配置，无需再次输入。\n\n### 日志和错误处理：\n脚本会将执行日志记录到 cloudflare.log 文件中。如果发生任何错误，它也会将错误信息输出到日志文件中，以便你进行排查。\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjinqians%2Fcf_ddns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjinqians%2Fcf_ddns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjinqians%2Fcf_ddns/lists"}