{"id":426,"date":"2025-02-06T11:24:47","date_gmt":"2025-02-06T03:24:47","guid":{"rendered":"https:\/\/blog.laning.org\/?p=426"},"modified":"2025-03-29T17:18:58","modified_gmt":"2025-03-29T09:18:58","slug":"cloudflare%e5%92%8c%e9%98%bf%e9%87%8c%e4%ba%91ddns%e7%9a%84shell%e5%ae%9e%e7%8e%b0","status":"publish","type":"post","link":"https:\/\/blog.laning.org\/index.php\/2025\/02\/06\/426\/","title":{"rendered":"Cloudflare\u548c\u963f\u91cc\u4e91DDNS\u7684Shell\u5b9e\u73b0"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u4e0b\u4e00\u6b65\u5f00\u53d1\u8ba1\u5212<\/h2>\n\n\n\n<p>\u63a5\u5165Telegram\u673a\u5668\u4eba\uff0cIP\u53d8\u5316\u65f6\u81ea\u52a8\u901a\u77e5<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u811a\u672c\u5730\u5740<\/h2>\n\n\n\n<p><a href=\"https:\/\/raw.githubusercontent.com\/laningya\/Raspberry-Pi\/refs\/heads\/master\/shell\/cfddns.sh\">raw.githubusercontent.com\/laningya\/Raspberry-Pi\/refs\/heads\/master\/shell\/cfddns.sh<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/raw.githubusercontent.com\/laningya\/Raspberry-Pi\/refs\/heads\/master\/shell\/aliddns.sh\">raw.githubusercontent.com\/laningya\/Raspberry-Pi\/refs\/heads\/master\/shell\/aliddns.sh<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4f7f\u7528\u8bf4\u660e<\/h2>\n\n\n\n<ol>\n<li>Cloudflare\n<ul>\n<li>proxy=false\/true\uff0c\u662f\u5426\u5f00\u59cbCloudflare\u5c0f\u9ec4\u4e91\u9009\u9879<\/li>\n\n\n\n<li>ZONE_ID\uff0cAPI_TOKEN\uff0cCloudflare \u57dfID\u548cAPI\u4ee4\u724c\uff0cAPI\u9700\u5bf9\u5e94\u57df\u540d\u7684DNS\u7f16\u8f91\u548c\u8bfb\u53d6\u6743\u9650<\/li>\n\n\n\n<li>IPv4Domain\uff0c\u9700\u8981\u586b\u5199\u5168\u5199\uff0c\u5982&#8221;test.yourdomain.com&#8221;<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u963f\u91cc\u4e91\n<ul>\n<li>accessKeyId,accessSecret\uff0c\u9700\u8981\u5728\u963f\u91cc\u4e91\u63a7\u5236\u53f0\u83b7\u53d6\uff0c\u5e76\u8d4b\u4e88DNS\u7f16\u8f91\u548c\u8bfb\u53d6\u6743\u9650<\/li>\n\n\n\n<li>\u4e0eCloudflare\u4e0d\u540c\uff0c\u5b50\u57df\u540d\u548c\u4e3b\u57df\u540d\u5206\u5f00<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0b\u4e00\u6b65\u5f00\u53d1\u8ba1\u5212 \u63a5\u5165Telegram\u673a\u5668\u4eba\uff0cIP\u53d8\u5316\u65f6\u81ea\u52a8\u901a\u77e5 \u811a\u672c\u5730\u5740 raw.githubusercont [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Cloudflare\u548c\u963f\u91cc\u4e91DDNS\u7684Shell\u5b9e\u73b0 &ndash; Laning &#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.laning.org\/index.php\/2025\/02\/06\/426\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cloudflare\u548c\u963f\u91cc\u4e91DDNS\u7684Shell\u5b9e\u73b0 &ndash; Laning &#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"\u4e0b\u4e00\u6b65\u5f00\u53d1\u8ba1\u5212 \u63a5\u5165Telegram\u673a\u5668\u4eba\uff0cIP\u53d8\u5316\u65f6\u81ea\u52a8\u901a\u77e5 \u811a\u672c\u5730\u5740 raw.githubusercont [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.laning.org\/index.php\/2025\/02\/06\/426\/\" \/>\n<meta property=\"og:site_name\" content=\"Laning &#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2025-02-06T03:24:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-29T09:18:58+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"laning\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.laning.org\/#website\",\"url\":\"https:\/\/blog.laning.org\/\",\"name\":\"\\u8fa3\\u5b81\\u7684\\u535a\\u5ba2\",\"description\":\"Learning on the go\",\"publisher\":{\"@id\":\"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.laning.org\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-CN\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.laning.org\/index.php\/2025\/02\/06\/426\/#webpage\",\"url\":\"https:\/\/blog.laning.org\/index.php\/2025\/02\/06\/426\/\",\"name\":\"Cloudflare\\u548c\\u963f\\u91cc\\u4e91DDNS\\u7684Shell\\u5b9e\\u73b0 &ndash; Laning &#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\/\/blog.laning.org\/#website\"},\"datePublished\":\"2025-02-06T03:24:47+00:00\",\"dateModified\":\"2025-03-29T09:18:58+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/blog.laning.org\/index.php\/2025\/02\/06\/426\/#breadcrumb\"},\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.laning.org\/index.php\/2025\/02\/06\/426\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.laning.org\/index.php\/2025\/02\/06\/426\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\\u9996\\u9875\",\"item\":\"https:\/\/blog.laning.org\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cloudflare\\u548c\\u963f\\u91cc\\u4e91DDNS\\u7684Shell\\u5b9e\\u73b0\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/blog.laning.org\/index.php\/2025\/02\/06\/426\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/blog.laning.org\/index.php\/2025\/02\/06\/426\/#webpage\"},\"author\":{\"@id\":\"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93\"},\"headline\":\"Cloudflare\\u548c\\u963f\\u91cc\\u4e91DDNS\\u7684Shell\\u5b9e\\u73b0\",\"datePublished\":\"2025-02-06T03:24:47+00:00\",\"dateModified\":\"2025-03-29T09:18:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/blog.laning.org\/index.php\/2025\/02\/06\/426\/#webpage\"},\"wordCount\":50,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93\"},\"articleSection\":[\"Github\"],\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/blog.laning.org\/index.php\/2025\/02\/06\/426\/#respond\"]}]},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93\",\"name\":\"laning\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/blog.laning.org\/#personlogo\",\"inLanguage\":\"zh-CN\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/17215f328425d53537532588320693a1?s=96&d=retro&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/17215f328425d53537532588320693a1?s=96&d=retro&r=g\",\"caption\":\"laning\"},\"logo\":{\"@id\":\"https:\/\/blog.laning.org\/#personlogo\"},\"sameAs\":[\"https:\/\/blog.laning.org\"],\"url\":\"https:\/\/blog.laning.org\/index.php\/author\/laning\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Cloudflare\u548c\u963f\u91cc\u4e91DDNS\u7684Shell\u5b9e\u73b0 &ndash; Laning &#039;s Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.laning.org\/index.php\/2025\/02\/06\/426\/","og_locale":"zh_CN","og_type":"article","og_title":"Cloudflare\u548c\u963f\u91cc\u4e91DDNS\u7684Shell\u5b9e\u73b0 &ndash; Laning &#039;s Blog","og_description":"\u4e0b\u4e00\u6b65\u5f00\u53d1\u8ba1\u5212 \u63a5\u5165Telegram\u673a\u5668\u4eba\uff0cIP\u53d8\u5316\u65f6\u81ea\u52a8\u901a\u77e5 \u811a\u672c\u5730\u5740 raw.githubusercont [&hellip;]","og_url":"https:\/\/blog.laning.org\/index.php\/2025\/02\/06\/426\/","og_site_name":"Laning &#039;s Blog","article_published_time":"2025-02-06T03:24:47+00:00","article_modified_time":"2025-03-29T09:18:58+00:00","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"laning"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/blog.laning.org\/#website","url":"https:\/\/blog.laning.org\/","name":"\u8fa3\u5b81\u7684\u535a\u5ba2","description":"Learning on the go","publisher":{"@id":"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.laning.org\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-CN"},{"@type":"WebPage","@id":"https:\/\/blog.laning.org\/index.php\/2025\/02\/06\/426\/#webpage","url":"https:\/\/blog.laning.org\/index.php\/2025\/02\/06\/426\/","name":"Cloudflare\u548c\u963f\u91cc\u4e91DDNS\u7684Shell\u5b9e\u73b0 &ndash; Laning &#039;s Blog","isPartOf":{"@id":"https:\/\/blog.laning.org\/#website"},"datePublished":"2025-02-06T03:24:47+00:00","dateModified":"2025-03-29T09:18:58+00:00","breadcrumb":{"@id":"https:\/\/blog.laning.org\/index.php\/2025\/02\/06\/426\/#breadcrumb"},"inLanguage":"zh-CN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.laning.org\/index.php\/2025\/02\/06\/426\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.laning.org\/index.php\/2025\/02\/06\/426\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/blog.laning.org\/"},{"@type":"ListItem","position":2,"name":"Cloudflare\u548c\u963f\u91cc\u4e91DDNS\u7684Shell\u5b9e\u73b0"}]},{"@type":"Article","@id":"https:\/\/blog.laning.org\/index.php\/2025\/02\/06\/426\/#article","isPartOf":{"@id":"https:\/\/blog.laning.org\/index.php\/2025\/02\/06\/426\/#webpage"},"author":{"@id":"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93"},"headline":"Cloudflare\u548c\u963f\u91cc\u4e91DDNS\u7684Shell\u5b9e\u73b0","datePublished":"2025-02-06T03:24:47+00:00","dateModified":"2025-03-29T09:18:58+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.laning.org\/index.php\/2025\/02\/06\/426\/#webpage"},"wordCount":50,"commentCount":0,"publisher":{"@id":"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93"},"articleSection":["Github"],"inLanguage":"zh-CN","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blog.laning.org\/index.php\/2025\/02\/06\/426\/#respond"]}]},{"@type":["Person","Organization"],"@id":"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93","name":"laning","image":{"@type":"ImageObject","@id":"https:\/\/blog.laning.org\/#personlogo","inLanguage":"zh-CN","url":"https:\/\/secure.gravatar.com\/avatar\/17215f328425d53537532588320693a1?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/17215f328425d53537532588320693a1?s=96&d=retro&r=g","caption":"laning"},"logo":{"@id":"https:\/\/blog.laning.org\/#personlogo"},"sameAs":["https:\/\/blog.laning.org"],"url":"https:\/\/blog.laning.org\/index.php\/author\/laning\/"}]}},"_links":{"self":[{"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/posts\/426"}],"collection":[{"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/comments?post=426"}],"version-history":[{"count":1,"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/posts\/426\/revisions"}],"predecessor-version":[{"id":427,"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/posts\/426\/revisions\/427"}],"wp:attachment":[{"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/media?parent=426"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/categories?post=426"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/tags?post=426"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}