Skip to content

kiss2u/ros-cloudflare-ddns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

登入cloudflare

API_KEY:右上角点头像,点My Profile,最下面Global API Key

Zone ID:进入域名设置,Overview页面下,右下角Zone ID


获取CFid命令

找个linux系统比如debian

apt install -y curl python
curl -X GET "https://api.cloudflare.com/client/v4/zones/修改为zone_id/dns_records" -H "X-Auth-Email: 修改为登入cloudflare的Email" -H "X-Auth-Key: 修改为API_KEY" -H "Content-Type: application/json" | python -mjson.tool

显示结果中

"content": "顶级域名"

紧接着下面第二行

"id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxx"

这个xxxxxxxxxxxxxxxxxxxxxxxxxxxx就是CFid

编辑ros-ddns-sample

脚本运行成功并且生效后,制作计划任务。

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published