Configuring DNS for your Web Hosting (cPanel) domain
You've built a site in Web Hosting (cPanel) and are ready to go live. To make your site accessible to the web, you'll need to make sure DNS is properly configured. Usually DNS changes will propagate within a few hours, but it can take up to 48 hours for everything to propagate across the internet.
1:找到您的域名服务器以及管理 DNS 的位置
更改之前,请检查您的域名服务器,以确保您在正确的位置更新 DNS。您的域名服务器将指示您应该用来管理您域名的 DNS 的主机公司。
- 在 GoDaddy 注册的域名:在您的 GoDaddy 账户中查看您的域名服务器。
- 在其他地方注册的域名:请联系您的域名注册商以获取信息。
2. Web Hosting (cPanel) DNS
Go to your DNS host and ensure these records are pointed appropriately so your Web Hosting (cPanel) site can be accessible through the web.
类型 | 名称 | 数据 |
---|---|---|
A | @ | Your Web Hosting (cPanel) IP address |
CNAME | www | 您的域名(例如,coolexample.com) |
3.(可选)邮件 DNS
If you plan to host email at your Web Hosting (cPanel), ensure these records are pointed appropriately at your DNS host.
类型 | 姓名 | 数据 |
---|---|---|
A | Your Web Hosting (cPanel) IP address | |
MX | @ | mail.[您的域名](例如,mail.coolexample.com) |
TXT | @ | v=spf1 include:secureserver.net -all |
TXT | admin | v=spf1 include:secureserver.net -all |
CNAME | 云邮 | 您的域名(例如,coolexample.com) |
3.(可选)其他 DNS
Adding these records at your DNS host can be helpful for specific Web Hosting (cPanel) features to work, but are not needed for basic web and email hosting.
类型 | 姓名 | 数据 |
---|---|---|
A | admin | Your Web Hosting (cPanel) IP address |
CNAME | autoconfig | 您的域名(例如,coolexample.com) |
CNAME | autoconfig.admin | 您的域名(例如,coolexample.com) |
CNAME | autodiscover | 您的域名(例如,coolexample.com) |
CNAME | autodiscover.admin | 您的域名(例如,coolexample.com) |
CNAME | cpanel | 您的域名(例如,coolexample.com) |
CNAME | ftp | 您的域名(例如,coolexample.com) |
CNAME | webdisk | 您的域名(例如,coolexample.com) |
CNAME | webdisk.admin | 您的域名(例如,coolexample.com) |
CNAME | whm | 您的域名(例如,coolexample.com) |
CNAME | www.admin | 您的域名(例如,coolexample.com) |
CNAME | _domainconnect | _domainconnect.gd.domaincontrol.com. |
类型 | 服务 | 协议 | 姓名 | 优先级 | 重量 | 端口 | 值 |
---|---|---|---|---|---|---|---|
SRV | _autodiscover | _tcp | @ | 0 | 0 | 443 | cpanelemaildiscovery.cpanel.net |
SRV | _autodiscover | _tcp | 管理员 | 0 | 0 | 443 | cpanelemaildiscovery.cpanel.net |
4.删除相冲突的 DNS
If you have DNS records with identical type and name combinations to your Web Hosting (cPanel), we recommend removing these conflicts. For example:
类型 | 姓名 | 数据 | 操作 |
---|---|---|---|
A | @ | Your Web Hosting (cPanel) IP address | 添加此记录 |
A | @ | 另一个 IP 地址 | 移除此记录 |