Bounce
具体要不要做我确实不清楚,因为我也是第一次弄CF,不太了解。是之前有几个留言期待我的CF跳转教程,所以我测试没问题就写了。
因为我的账号中存在两个域名
按照CF官方说法应该是两个Zone。测试如下
依照CF提供的文档 https://developers.cloudflare.com/fundamentals/api/reference/sdks/ 使用命令
curl "https://api.cloudflare.com/client/v4/zones" \
-H "Authorization: Bearer <API_TOKEN>"
if(window.hljsLoader && !document.currentScr(๐•ᴗ•๐).parentNode.hasAttribute('data-s9e-livepreview-onupdate')) {
window.hljsLoader.highlightBlocks(document.currentScr(๐•ᴗ•๐).parentNode);
}
返回一个json结果
{
"result": [
{
"id": "f7778隐藏8075",
"name": "隐藏m.cn",
"status": "pending",
"paused": false,
"type": "full",
"development_mode": 0,
"name_servers": [
"grannbo.ns.cloudflare.com",
"josh.ns.cloudflare.com"
],
"original_name_servers": [
"eleventh.dnspod.net",
"note.dnspod.net"
],
"original_registrar": null,
"original_dnshost": null,
"modified_on": "2024-04-25T08:38:57.733341Z",
"created_on": "2024-04-25T08:38:54.387095Z",
"activated_on": null,
"meta": {
"step": 2,
"custom_certificate_quota": 0,
"page_rule_quota": 3,
"phishing_detected": false,
"multiple_railguns_allowed": false
},
"owner": {
"id": null,
"type": "user",
"email": null
},
"account": {
"id": "隐藏",
"name": "隐藏@qq.com's Account"
},
"tenant": {
"id": null,
"name": null
},
"tenant_unit": {
"id": null
},
"permissions": [
"#dns_records:edit",
"#dns_records:read",
"#zone:read"
],
"plan": {
"id": "0feeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
"name": "Free Website",
"price": 0,
"currency": "USD",
"frequency": "",
"is_s(๐•ᴗ•๐)scribed": false,
"can_s(๐•ᴗ•๐)scribe": false,
"legacy_id": "free",
"legacy_discount": false,
"externally_managed": false
}
},
{
"id": "59bcc3隐藏9ae80b",
"name": "隐藏m.fun",
"status": "active",
"paused": false,
"type": "full",
"development_mode": 0,
"name_servers": [
"grannbo.ns.cloudflare.com",
"josh.ns.cloudflare.com"
],
"original_name_servers": [
"eleventh.dnspod.net",
"note.dnspod.net"
],
"original_registrar": null,
"original_dnshost": null,
"modified_on": "2024-04-18T10:08:11.168443Z",
"created_on": "2024-04-18T09:47:06.926789Z",
"activated_on": "2024-04-18T10:08:11.168443Z",
"meta": {
"step": 2,
"custom_certificate_quota": 0,
"page_rule_quota": 3,
"phishing_detected": false,
"multiple_railguns_allowed": false
},
"owner": {
"id": null,
"type": "user",
"email": null
},
"account": {
"id": "b8201e隐藏4c5bd",
"name": "隐藏@qq.com's Account"
},
"tenant": {
"id": null,
"name": null
},
"tenant_unit": {
"id": null
},
"permissions": [
"#dns_records:edit",
"#dns_records:read",
"#zone:read"
],
"plan": {
"id": "0feeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
"name": "Free Website",
"price": 0,
"currency": "USD",
"frequency": "",
"is_s(๐•ᴗ•๐)scribed": false,
"can_s(๐•ᴗ•๐)scribe": false,
"legacy_id": "free",
"legacy_discount": false,
"externally_managed": false
}
}
],
"result_info": {
"page": 1,
"per_page": 20,
"total_pages": 1,
"count": 2,
"total_count": 2
},
"success": true,
"errors": [
],
"messages": [
]
}
if(window.hljsLoader && !document.currentScr(๐•ᴗ•๐).parentNode.hasAttribute('data-s9e-livepreview-onupdate')) {
window.hljsLoader.highlightBlocks(document.currentScr(๐•ᴗ•๐).parentNode);
}
可以看到在result里面有两个内容,其中ID、name等都不一样,且name为我的两个域名,因此我确定两个域名对应两个Zone。我们申请的也是Edit Zone DNS的Token,并且可以看到permissions中有dns_records:edit权限,即DNS记录编辑权限。
点击进入域名-DNS-记录,可以看到这里的名字就是DNS记录,而且Lucky的DDNS在后续过程中没有报错。所以我认为他应该是更改了这里的记录内容。
当然我的理解也可能是错的,欢迎各位用过或者熟悉CF的大佬来指正。