一.进入域名购买后台
如下图所示,在阿里云后台,我有这样的一个域名
在域名列表页面。直接点击你想要托管到cloudflare的域名![image.png](https://cos.files.maozhishi.com/public/attachments/xsj/1648023500018.png)
在弹出的页面,我们点击“修改dns”![image.png](https://cos.files.maozhishi.com/public/attachments/xsj/1648023500019.png)
点击“修改dns服务器”
![image.png](https://cos.files.maozhishi.com/public/attachments/xsj/1648023500020.png)
这里要输入cloudflare 的dns服务器地址,那么接下来,我们去cloudflare去获取他们的dns服务器地址
![image.png](https://cos.files.maozhishi.com/public/attachments/xsj/1648023500021.png)
二.获取cloudflare名称服务器信息
注册并登录cloudflare后台,点击“添加站点”
![image.png](https://cos.files.maozhishi.com/public/attachments/xsj/1648023500031.png)
输入要托管的域名:lfx08.com 并点击“添加站点”
![image.png](https://cos.files.maozhishi.com/public/attachments/xsj/1648023500022.png)
选择套餐:0美元的版本即可
注意:选择后,下方的“继续”才会点亮![image.png](https://cos.files.maozhishi.com/public/attachments/xsj/1648023500023.png)
这一步可以直接点击继续
如果没任何记录,会有弹窗,点击“确认”即可。
我们可以看到,现在使用的是阿里云的dns,我们进入阿里云的域名管理,修改dns服务器界面,把dns修改为cloudflare的即可![image.png](https://cos.files.maozhishi.com/public/attachments/xsj/1648023500029.png)
我们在阿里云后台输入上方获取的cloudflaredns服务器,并点击下方的“确定”![image.png](https://cos.files.maozhishi.com/public/attachments/xsj/1648023500027.png)
![image.png](https://cos.files.maozhishi.com/public/attachments/xsj/1648023500024.png)
![image.png](https://cos.files.maozhishi.com/public/attachments/xsj/1648023500032.png)
我们进入cloudflare 的后台,点击“完成,检查名称服务器”![image.png](https://cos.files.maozhishi.com/public/attachments/xsj/1648023500030.png)
进入以下界面,说明已经托管成功了
![image.png](https://cos.files.maozhishi.com/public/attachments/xsj/1648023500033.png)