目录
由于Namesilo价格虽然很诱人但是却并不完美,自带的DNS解析生效很慢,TTL最低3600秒。所以本教程讲解将域名的dns转移到cloudflare进行解析。
注意:CloudFlare已经支持中文,截图可能与下文教程中不同
第一步:注册Cloudflare账号
1,打开 https://www.cloudflare.com/,点击右上角的 “Sign up”,填入你的电子邮箱,设置好账户密码(至少8位,必须包含数字和特殊字符),点击“create account”;
2,界面跳转到“添加网站”界面,输入你的域名,例如 tkgj.life,注意没有前面的 www。然后点击 “add site”;
![Cloudflare](https://xiaoheicn.top/wp-content/uploads/2022/09/Cloudflare添加站点-1024x571.png)
3,界面进入选择套餐界面,点最后一个“free”,然后点“confirm plan”;
![](https://xiaoheicn.top/wp-content/uploads/2022/09/Cloudflare添加站点2-1024x745.png)
4,接下来CF会扫描你域名的解析记录,扫描完成后大部分记录都给你设置好了。接着点击“continue”;
![](https://xiaoheicn.top/wp-content/uploads/2022/09/Cloudflare添加站点3.png)
5,界面进入更改NS解析服务器提示页面,记住类似下图中的两行dns记录:
![](https://xiaoheicn.top/wp-content/uploads/2022/09/cloudflare新dns.png)
这一步到此结束,请不要关闭cloudflare的网页。
第二步:更改DNS解析服务器
这一步以Namesilo为例,讲解将域名的dns转移到cloudflare的过程,其他域名注册商的域名,请参考官方网站。
1.打开 https://www.namesilo.com/,点右上角的“login”,输入用户名和密码,点“submit”登录;
2.点击右上角的“manage my domains”,进入域名列表;
3.勾选域名左边的框,然后点击上面的”change nameservers”:
![](https://xiaoheicn.top/wp-content/uploads/2022/09/namesilo更改dns.png)
4.进入填写dns服务器界面,把默认的三行删了,在第一和第二栏填入cloudflare界面上出现的两个域名,例如:marek.ns.cloudflare.com 和 wanda.ns.cloudflare.com(注意:CF分配到每个人的DNS服务器都不一样,请按照你账号中出现的填写):
![](https://xiaoheicn.top/wp-content/uploads/2022/09/namesilo填写dns.png)
5.确认无误后,点击下面的 “submit” 按钮提交,更改就完成了。
第四步:回到Cloudflare设置信息
1.回到cloudflare网页上,点击”done, check nameservers”按钮
2.设置就完成了。如果需要对dns进行解析,点击页面上方的”DNS“进入dns解析设置页面。例如要添加新的解析,先点击“add record”,然后选择解析类型、填写记录名、值,TTL用默认的即可(auto表示600s,比namesilo的3600强了60倍!)。如果vps使用网页服务,可以选择过代理(即显示黄色的云),仅做dns解析则要点掉黄色的云。信息填写好后点击“save”按钮保存:
![](https://xiaoheicn.top/wp-content/uploads/2022/09/Cloudflare解析.png)
3.大概过两分钟之后域名就可以ping通了
留言
Nice post. I be taught one thing more difficult on totally different blogs everyday. It’ll all the time be stimulating to read content material from other writers and observe slightly something from their store. I’d choose to use some with the content material on my blog whether you don’t mind. Natually I’ll provide you with a hyperlink on your net blog. Thanks for sharing.
Currently it sounds like BlogEngine is the best blogging platform available right now. (from what I’ve read) Is that what you’re using on your blog?
Would love to always get updated outstanding weblog! .
Very interesting points you have observed, thankyou for putting up. “The unspoken word never does harm.” by Kossuth.
You made some respectable factors there. I regarded on the internet for the problem and found most people will associate with with your website.
Its excellent as your other articles : D, thanks for posting.
Some times its a pain in the ass to read what website owners wrote but this web site is real user genial! .
Pretty! This was a really wonderful post. Thank you for your provided information.
Hello there! Would you mind if I share your blog with my zynga group? There’s a lot of people that I think would really appreciate your content. Please let me know. Cheers
A person essentially help to make critically posts I would state. This is the first time I frequented your web page and thus far? I surprised with the analysis you made to create this actual post amazing. Magnificent process!
I like what you guys are up also. Such clever work and reporting! Carry on the excellent works guys I’ve incorporated you guys to my blogroll. I think it will improve the value of my web site 🙂
I’m still learning from you, but I’m trying to reach my goals. I absolutely love reading everything that is written on your website.Keep the aarticles coming. I liked it!