Linux 主机 (cPanel) 帮助

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.

警告:本文涵盖高级技术主题。如果这些步骤未正确完成,则可能会对您的网站做出不必要的更改。更改之前,我们建议导出您的 DNS 或拍摄您的 DNS 记录的屏幕截图以作备份。查看支持声明,详细了解 GoDaddy 产品和服务的支持。

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
CNAMEwww您的域名(例如,coolexample.com
注:DNS 主机可能因标签和格式而异。如果您不确定如何继续,我们建议您联系您的 DNS 主机,因为他们的要求与这些示例记录不同。

3.(可选)邮件 DNS

If you plan to host email at your Web Hosting (cPanel), ensure these records are pointed appropriately at your DNS host.

类型姓名数据
AmailYour Web Hosting (cPanel) IP address
MX@mail.[您的域名](例如,mail.coolexample.com
TXT@v=spf1 include:secureserver.net -all
TXTadminv=spf1 include:secureserver.net -all
CNAME云邮您的域名(例如,coolexample.com
Note: The priority determines which record to contact first when multiple MX records exist on the domain. A lower number means more preferred, and the record with the lowest priority will be used first. For single MX record settings, set the priority to 0 (zero). Add an MX record

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.

类型姓名数据
AadminYour Web Hosting (cPanel) IP address
CNAMEautoconfig您的域名(例如,coolexample.com
CNAMEautoconfig.admin您的域名(例如,coolexample.com
CNAMEautodiscover您的域名(例如,coolexample.com
CNAMEautodiscover.admin您的域名(例如,coolexample.com
CNAMEcpanel您的域名(例如,coolexample.com
CNAMEftp您的域名(例如,coolexample.com
CNAMEwebdisk您的域名(例如,coolexample.com
CNAMEwebdisk.admin您的域名(例如,coolexample.com
CNAMEwhm您的域名(例如,coolexample.com
CNAMEwww.admin您的域名(例如,coolexample.com
CNAME_domainconnect_domainconnect.gd.domaincontrol.com.

类型服务协议姓名优先级重量端口
SRV_autodiscover_tcp@00443cpanelemaildiscovery.cpanel.net
SRV_autodiscover_tcp管理员00443cpanelemaildiscovery.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 地址移除此记录

更多信息