index.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="pinterest" content="nopin">
  6. <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
  7. <meta name="generator" content="Hugo 0.56.3" />
  8. <link rel="canonical" href="https://snail007.goproxyauth.com/goproxy/posts/domain-cf/">
  9. <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet">
  10. <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  11. <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/solarized_dark.min.css">
  12. <title>域名解析 域名控制台&#43;极客&#43;cloudflare 的配置方法 - GOPROXY IN ACTION</title>
  13. <meta name="description" content="域名解析 域名控制台&#43;极客&#43;cloudflare 的配置方法">
  14. <meta property="og:title" content="域名解析 域名控制台&#43;极客&#43;cloudflare 的配置方法 - GOPROXY IN ACTION">
  15. <meta property="og:type" content="article">
  16. <meta property="og:url" content="https://snail007.goproxyauth.com/goproxy/posts/domain-cf/">
  17. <meta property="og:image" content="https://snail007.goproxyauth.com/goproxy/images/default.png">
  18. <meta property="og:site_name" content="GOPROXY IN ACTION">
  19. <meta property="og:description" content="域名解析 域名控制台&#43;极客&#43;cloudflare 的配置方法">
  20. <meta property="og:locale" content="zh_CN">
  21. <meta name="twitter:card" content="summary_large_image">
  22. <meta name="twitter:site" content="GOPROXY IN ACTION">
  23. <meta name="twitter:url" content="https://snail007.goproxyauth.com/goproxy/posts/domain-cf/">
  24. <meta name="twitter:title" content="域名解析 域名控制台&#43;极客&#43;cloudflare 的配置方法 - GOPROXY IN ACTION">
  25. <meta name="twitter:description" content="域名解析 域名控制台&#43;极客&#43;cloudflare 的配置方法">
  26. <meta name="twitter:image" content="https://snail007.goproxyauth.com/goproxy/images/default.png">
  27. <script type="application/ld+json">
  28. {
  29. "@context": "http://schema.org",
  30. "@type": "NewsArticle",
  31. "mainEntityOfPage": {
  32. "@type": "WebPage",
  33. "@id":"https:\/\/snail007.goproxyauth.com\/goproxy\/"
  34. },
  35. "headline": "域名解析 域名控制台\x2b极客\x2bcloudflare 的配置方法 - GOPROXY IN ACTION",
  36. "image": {
  37. "@type": "ImageObject",
  38. "url": "https:\/\/snail007.goproxyauth.com\/goproxy\/images\/default.png",
  39. "height": 800,
  40. "width": 800
  41. },
  42. "datePublished": "2019-07-05T08:20:48JST",
  43. "dateModified": "2019-07-05T08:20:48JST",
  44. "author": {
  45. "@type": "Person",
  46. "name": "GOPROXY IN ACTION"
  47. },
  48. "publisher": {
  49. "@type": "Organization",
  50. "name": "GOPROXY IN ACTION",
  51. "logo": {
  52. "@type": "ImageObject",
  53. "url": "https:\/\/snail007.goproxyauth.com\/goproxy\/images/logo.png",
  54. "width": 600,
  55. "height": 60
  56. }
  57. },
  58. "description": "域名解析 域名控制台\x2b极客\x2bcloudflare 的配置方法"
  59. }
  60. </script>
  61. <link href="https://snail007.goproxyauth.com/goproxy/css/styles.css" rel="stylesheet">
  62. </head>
  63. <body>
  64. <header class="l-header">
  65. <nav class="navbar navbar-default">
  66. <div class="container">
  67. <div class="navbar-header">
  68. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
  69. <span class="sr-only">Toggle navigation</span>
  70. <span class="icon-bar"></span>
  71. <span class="icon-bar"></span>
  72. <span class="icon-bar"></span>
  73. </button>
  74. <a class="navbar-brand" href="https://snail007.goproxyauth.com/goproxy/">GOPROXY IN ACTION</a>
  75. </div>
  76. <div id="navbar" class="collapse navbar-collapse">
  77. <ul class="nav navbar-nav navbar-right">
  78. <li><a href="https://github.com/snail007/goproxy/releases/">下载</a></li>
  79. <li><a href="https://snail007.goproxyauth.com/goproxy/categories/goproxy%E6%89%8B%E5%86%8C/">实战</a></li>
  80. <li><a href="https://snail007.goproxyauth.com/goproxy/manual/zh/#/">手册</a></li>
  81. <li><a href="/goproxy/about/">关于</a></li>
  82. </ul>
  83. </div>
  84. </div>
  85. </nav>
  86. </header>
  87. <main>
  88. <div class="container">
  89. <div class="row">
  90. <div class="col-md-8">
  91. <nav class="p-crumb">
  92. <ol class="breadcrumb">
  93. <li><a href="https://snail007.goproxyauth.com/goproxy/"><i class="fa fa-home" aria-hidden="true"></i></a></li>
  94. <li itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="https://snail007.goproxyauth.com/goproxy/posts/" itemprop="url"><span itemprop="title">posts</span></a></li>
  95. <li class="active">域名解析 域名控制台&#43;极客&#43;cloudflare 的配置方法</li>
  96. </ol>
  97. </nav>
  98. <article class="single">
  99. <header>
  100. <ul class="p-facts">
  101. <li><i class="fa fa-calendar" aria-hidden="true"></i><time datetime="2019-07-05T08:20:48JST">Jul 5, 2019</time></li>
  102. <li><i class="fa fa-bookmark" aria-hidden="true"></i><a href="https://snail007.goproxyauth.com/goproxy/posts/">posts</a></li>
  103. </ul>
  104. <h1 class="title">域名解析 域名控制台&#43;极客&#43;cloudflare 的配置方法</h1>
  105. </header>
  106. <div class="article-body">
  107. <h4 id="准备工作">准备工作</h4>
  108. <p>本文综合的介绍了cloudflare注册使用,从域名解析到回源,完成了一个二级域使用cloudflare的CDN加速的配置过程。</p>
  109. <p>首先你要去 cloudflare 官网 <a href="https://dash.cloudflare.com/sign-up">https://dash.cloudflare.com/sign-up</a> 注册一个账号,然后登录,提示你添加域名的时候,不要添加,略过即可。</p>
  110. <h4 id="操作步骤">操作步骤</h4>
  111. <p>前提有一顶级域名domain.com,有一VPS,IP地址为111.222.111.222,要求二级域名test.domain.com指向上述IP地址。</p>
  112. <h5 id="1-在域名domain-com服务器上进行解析">1、在域名domain.com服务器上进行解析</h5>
  113. <p>例如:</p>
  114. <p>主记录:vps1</p>
  115. <p>记录类型:A</p>
  116. <p>记录值:111.222.111.222</p>
  117. <figure>
  118. <img css="width:90%" src="https://snail007.goproxyauth.com/goproxy/img/domain-cloudflare/1.png" alt="域名解析 域名控制台&#43;极客&#43;cloudflare 的配置方法 img/domain-cloudflare/1.png">
  119. </figure>
  120. <h5 id="2-登陆https-su-geekzu-org平台">2、登陆<a href="https://su.geekzu.org平台">https://su.geekzu.org平台</a></h5>
  121. <figure>
  122. <img css="width:90%" src="https://snail007.goproxyauth.com/goproxy/img/domain-cloudflare/2.png" alt="域名解析 域名控制台&#43;极客&#43;cloudflare 的配置方法 img/domain-cloudflare/2.png">
  123. </figure>
  124. <figure>
  125. <img css="width:90%" src="https://snail007.goproxyauth.com/goproxy/img/domain-cloudflare/3.png" alt="域名解析 域名控制台&#43;极客&#43;cloudflare 的配置方法 img/domain-cloudflare/3.png">
  126. </figure>
  127. <figure>
  128. <img css="width:90%" src="https://snail007.goproxyauth.com/goproxy/img/domain-cloudflare/4.png" alt="域名解析 域名控制台&#43;极客&#43;cloudflare 的配置方法 img/domain-cloudflare/4.png">
  129. </figure>
  130. <figure>
  131. <img css="width:90%" src="https://snail007.goproxyauth.com/goproxy/img/domain-cloudflare/5.png" alt="域名解析 域名控制台&#43;极客&#43;cloudflare 的配置方法 img/domain-cloudflare/5.png">
  132. </figure>
  133. <h5 id="3-点击编辑-添加-填写二级域名test-和回源地址-vps-domain-com到相应的位置-提交">3、点击编辑-》添加-》填写二级域名test,和回源地址:vps.domain.com到相应的位置-》提交</h5>
  134. <figure>
  135. <img css="width:90%" src="https://snail007.goproxyauth.com/goproxy/img/domain-cloudflare/6.png" alt="域名解析 域名控制台&#43;极客&#43;cloudflare 的配置方法 img/domain-cloudflare/6.png">
  136. </figure>
  137. <h5 id="4-提交后会看到如下">4、提交后会看到如下:</h5>
  138. <figure>
  139. <img css="width:90%" src="https://snail007.goproxyauth.com/goproxy/img/domain-cloudflare/7.png" alt="域名解析 域名控制台&#43;极客&#43;cloudflare 的配置方法 img/domain-cloudflare/7.png">
  140. </figure>
  141. <p>这时域名test.domain.com</p>
  142. <p>回源地址:vps1.domain.com</p>
  143. <p>CNAME地址:test.domain.com.cdn.cloudflare.net</p>
  144. <h5 id="5-回到域名解析服务器">5、回到域名解析服务器</h5>
  145. <p>主机记录:test
  146. 记录类型:CNAME
  147. 记录值(也就是上面的CNAME地址):test.domain.com.cdn.cloudflare.net</p>
  148. <p>填写完成后保存即可。</p>
  149. <figure>
  150. <img css="width:90%" src="https://snail007.goproxyauth.com/goproxy/img/domain-cloudflare/8.png" alt="域名解析 域名控制台&#43;极客&#43;cloudflare 的配置方法 img/domain-cloudflare/8.png">
  151. </figure>
  152. <h5 id="6-如果需要开启ssl-需登陆到cloudflare-crypto-ssl-设置为full">6、如果需要开启ssl,需登陆到cloudflare,Crypto -&gt; SSL -&gt;设置为Full</h5>
  153. </div>
  154. <footer class="article-footer">
  155. <section class="bordered">
  156. <header>
  157. <div class="panel-title">CATEGORIES</div>
  158. </header>
  159. <div>
  160. <ul class="p-terms">
  161. <li><a href="https://snail007.goproxyauth.com/goproxy/categories/%E9%BB%98%E8%AE%A4%E5%88%86%E7%B1%BB/">默认分类</a></li>
  162. </ul>
  163. </div>
  164. </section>
  165. <section class="bordered">
  166. <header>
  167. <div class="panel-title">TAGS</div>
  168. </header>
  169. <div>
  170. <ul class="p-terms">
  171. <li><a href="https://snail007.goproxyauth.com/goproxy/tags/cdn/">cdn</a></li>
  172. <li><a href="https://snail007.goproxyauth.com/goproxy/tags/domain/">domain</a></li>
  173. <li><a href="https://snail007.goproxyauth.com/goproxy/tags/ws/">ws</a></li>
  174. <li><a href="https://snail007.goproxyauth.com/goproxy/tags/cloudflare/">cloudflare</a></li>
  175. </ul>
  176. </div>
  177. </section>
  178. </footer>
  179. </article>
  180. <div id="disqus_thread"></div>
  181. <script type="application/javascript">
  182. var disqus_config = function () {
  183. };
  184. (function() {
  185. if (["localhost", "127.0.0.1"].indexOf(window.location.hostname) != -1) {
  186. document.getElementById('disqus_thread').innerHTML = 'Disqus comments not available by default when the website is previewed locally.';
  187. return;
  188. }
  189. var d = document, s = d.createElement('script'); s.async = true;
  190. s.src = '//' + "goproxy" + '.disqus.com/embed.js';
  191. s.setAttribute('data-timestamp', +new Date());
  192. (d.head || d.body).appendChild(s);
  193. })();
  194. </script>
  195. <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
  196. <a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
  197. </div>
  198. <div class="col-md-4">
  199. <aside class="l-sidebar">
  200. <section class="panel panel-default">
  201. <div class="panel-heading">
  202. <div class="panel-title">LATESTS</div>
  203. </div>
  204. <div class="list-group">
  205. <a href="https://snail007.goproxyauth.com/goproxy/usage/first/" class="list-group-item">手册前言(使用必读)</a>
  206. <a href="https://snail007.goproxyauth.com/goproxy/page/free_vs_commercial/" class="list-group-item">GOPROXY免费版VS商业版</a>
  207. <a href="https://snail007.goproxyauth.com/goproxy/page/faq/goproxy%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%E8%A7%A3%E7%AD%94/" class="list-group-item">常见问题解答</a>
  208. <a href="https://snail007.goproxyauth.com/goproxy/posts/domain-cf/" class="list-group-item">域名解析 域名控制台&#43;极客&#43;cloudflare 的配置方法</a>
  209. <a href="https://snail007.goproxyauth.com/goproxy/posts/windows-global-proxy-using-dns/" class="list-group-item">在windows下实现基于dns的自动全局代理</a>
  210. <a href="https://snail007.goproxyauth.com/goproxy/usage/tcp/" class="list-group-item">TCP代理</a>
  211. <a href="https://snail007.goproxyauth.com/goproxy/posts/cloudflare/" class="list-group-item">Cloudflare使用简明教程</a>
  212. <a href="https://snail007.goproxyauth.com/goproxy/posts/http-nat-cdn/" class="list-group-item">内网穿透也能用CDN???!</a>
  213. <a href="https://snail007.goproxyauth.com/goproxy/page/free_vs_commercial_en/" class="list-group-item">GOPROXY Free Version VS Commercial Version</a>
  214. <a href="https://snail007.goproxyauth.com/goproxy/posts/http_cdn_ws/" class="list-group-item">代理之套用CDN</a>
  215. </div>
  216. </section>
  217. <section class="panel panel-default">
  218. <div class="panel-heading">
  219. <div class="panel-title">CATEGORY</div>
  220. </div>
  221. <div class="list-group">
  222. <a href="https://snail007.goproxyauth.com/goproxy/categories/%E9%BB%98%E8%AE%A4%E5%88%86%E7%B1%BB" class="list-group-item">默认分类</a>
  223. <a href="https://snail007.goproxyauth.com/goproxy/categories/goproxy%E6%89%8B%E5%86%8C" class="list-group-item">goproxy手册</a>
  224. <a href="https://snail007.goproxyauth.com/goproxy/categories/%E6%9E%B6%E6%9E%84%E8%A7%A3%E8%AF%B4" class="list-group-item">架构解说</a>
  225. <a href="https://snail007.goproxyauth.com/goproxy/categories/%E7%BB%86%E8%AF%B4%E5%B1%82%E7%BA%A7" class="list-group-item">细说层级</a>
  226. </div>
  227. </section>
  228. <section class="panel panel-default">
  229. <div class="panel-heading">
  230. <div class="panel-title">TAG</div>
  231. </div>
  232. <div class="list-group">
  233. <a href="https://snail007.goproxyauth.com/goproxy/tags/cdn" class="list-group-item">cdn</a>
  234. <a href="https://snail007.goproxyauth.com/goproxy/tags/ws" class="list-group-item">ws</a>
  235. <a href="https://snail007.goproxyauth.com/goproxy/tags/cloudflare" class="list-group-item">cloudflare</a>
  236. <a href="https://snail007.goproxyauth.com/goproxy/tags/%E5%95%86%E4%B8%9A%E7%89%88" class="list-group-item">商业版</a>
  237. <a href="https://snail007.goproxyauth.com/goproxy/tags/commercial" class="list-group-item">commercial</a>
  238. <a href="https://snail007.goproxyauth.com/goproxy/tags/domain" class="list-group-item">domain</a>
  239. <a href="https://snail007.goproxyauth.com/goproxy/tags/tcp" class="list-group-item">tcp</a>
  240. <a href="https://snail007.goproxyauth.com/goproxy/tags/%E5%85%A8%E5%B1%80%E4%BB%A3%E7%90%86" class="list-group-item">全局代理</a>
  241. <a href="https://snail007.goproxyauth.com/goproxy/tags/%E5%86%85%E7%BD%91%E7%A9%BF%E9%80%8F" class="list-group-item">内网穿透</a>
  242. </div>
  243. </section>
  244. </aside>
  245. </div>
  246. </div>
  247. </div>
  248. </main>
  249. <footer class="l-footer">
  250. <div class="container">
  251. <p><span class="h-logo">&copy; GOPROXY IN ACTION</span></p>
  252. </div>
  253. </footer>
  254. <script src="//code.jquery.com/jquery-3.1.1.min.js"></script>
  255. <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  256. <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js"></script>
  257. <script>hljs.initHighlightingOnLoad();</script>
  258. <script>
  259. $(function(){
  260. $("img[css]").each(function(){
  261. $(this).attr("style",$(this).attr("css"));
  262. });
  263. });
  264. </script>
  265. </body>
  266. </html>