在 Namecheap 上为 Office 365 创建 DNS 记录Create DNS records at Namecheap for Office 365

如果找不到要查找的内容,请查看域常见问题解答Check the Domains FAQ if you don't find what you're looking for.

如果 Namecheap 是您的 DNS 托管提供商, 请按照本文中的步骤验证您的域并为电子邮件、Skype for business Online 等设置 DNS 记录。If Namecheap is your DNS hosting provider, follow the steps in this article to verify your domain and set up DNS records for email, Skype for Business Online, and so on.

在 Namecheap 中添加这些记录后, 您的域将设置为与 Office 365 服务配合使用。After you add these records at Namecheap, your domain will be set up to work with Office 365 services.

备注

DNS 更改通常需要 15 分钟左右才能生效。 但是,有时可能需要更长时间,您所做的更改才会在 Internet 的 DNS 系统中更新。 如果添加 DNS 记录后遇到邮件流问题或其他问题,请参阅 更改域名或 DNS 记录后出现的问题的疑难解答Typically it takes about 15 minutes for DNS changes to take effect. However, it can occasionally take longer for a change you've made to update across the Internet's DNS system. If you're having trouble with mail flow or other issues after adding DNS records, see Troubleshoot issues after changing your domain name or DNS records.

添加 TXT 记录进行验证Add a TXT record for verification

在将域用于 Office 365 之前,必须确保你拥有该域。如果你能够在域注册机构处登录到你的帐户并创建 DNS 记录,便可向 Office 365 证明你是所有者。Before you use your domain with Office 365, we have to make sure that you own it. Your ability to log in to your account at your domain registrar and create the DNS record proves to Office 365 that you own the domain.

备注

此记录仅用于验证您是否拥有自己的域;它不会影响其他任何内容。 如果需要,您可以以后将其删除。This record is used only to verify that you own your domain; it doesn't affect anything else. You can delete it later, if you like.

按照下面的步骤操作。Follow the steps below.

  1. 若要开始, 请使用此链接转到 Namecheap 上的 "域" 页面。To get started, go to your domains page at Namecheap by using this link. 系统将提示您登录并继续。You'll be prompted to Sign in and Continue.

    Namecheap-配置-1-1

  2. 在 "登录" 页面上的 "帐户" 下, 从下拉列表中选择 "域列表"。On the Landing page, under Account, select Domain List from the drop-down list.

    Namecheap-配置-1-2

  3. 在 "域列表" 页上, 找到要编辑的域的名称, 然后选择 "管理"。On the Domain List page, find the name of the domain that you want to edit, and then choose Manage.

    Namecheap-配置-1-3

  4. 选择 "高级 DNS"。Choose Advanced DNS.

    Namecheap-配置-1-4

  5. 在 "主机记录" 部分中, 选择 "添加新记录"。In the HOST RECORDS section, choose ADD NEW RECORD.

    Namecheap-配置-1-5

  6. 在 "类型" 下拉中, 选择 " TXT 记录"。In the Type drop-down, select TXT Record.

    备注

    当您选择 "添加新记录" 时, "类型" 下拉类型将自动显示。The Type drop-down automatically appears when you choose ADD NEW RECORD.

    Namecheap-验证-1-1

  7. In the boxes for the new record, type or copy and paste the values from the following table.In the boxes for the new record, type or copy and paste the values from the following table.

    (Select the TTL value from the drop-down list.)(Select the TTL value from the drop-down list.)

    类型Type 主机Host Value TTLTTL
    TXTTXT
    @
    MS=ms XXXXXXXXMS=ms XXXXXXXX
    注意: 这是一个示例。Note: This is an example. 在这里使用来自 Office 365 中的表的特定" 目标或指向的地址"值。Use your specific Destination or Points to Address value here, from the table in Office 365. 如何查找此内容?How do I find this?
    30分钟30 min

    Namecheap-验证-1-2

  8. 选择 "保存更改" (复选标记) 控件。Choose the Save Changes (check mark) control.

    Namecheap-验证-1-3

  9. 请在继续之前等待数分钟,以便您刚刚创建的记录可以通过 Internet 完成更新。Wait a few minutes before you continue, so that the record you just created can update across the Internet.

Now that you've added the record at your domain registrar's site, you'll go back to Office 365 and request Office 365 to look for the record.Now that you've added the record at your domain registrar's site, you'll go back to Office 365 and request Office 365 to look for the record.

When Office 365 finds the correct TXT record, your domain is verified.When Office 365 finds the correct TXT record, your domain is verified.

  1. 选择" 设置">" "。Choose Setup > Domains.

  2. 在" "页面上,选择要验证的域。On the Domains page, choose the domain that you are verifying.

    在 Microsoft 365 管理中心中选择的域名

  3. On the Setup page, choose Start setup.On the Setup page, choose Start setup.

    启动安装程序

  4. On the Verify domain page, choose Verify.On the Verify domain page, choose Verify.

    Verify

备注

DNS 更改通常需要 15 分钟左右才能生效。 但是,有时可能需要更长时间,您所做的更改才会在 Internet 的 DNS 系统中更新。 如果添加 DNS 记录后遇到邮件流问题或其他问题,请参阅 更改域名或 DNS 记录后出现的问题的疑难解答Typically it takes about 15 minutes for DNS changes to take effect. However, it can occasionally take longer for a change you've made to update across the Internet's DNS system. If you're having trouble with mail flow or other issues after adding DNS records, see Troubleshoot issues after changing your domain name or DNS records.

添加一条 MX 记录,确保发往您的域的电子邮件发送到 Office 365Add an MX record so email for your domain will come to Office 365

按照下面的步骤操作。Follow the steps below.

  1. 若要开始, 请使用此链接转到 Namecheap 上的 "域" 页面。To get started, go to your domains page at Namecheap by using this link. 系统将提示您登录并继续。You'll be prompted to Sign in and Continue.

    Namecheap-配置-1-1

  2. 在 "登录" 页面上的 "帐户" 下, 从下拉列表中选择 "域列表"。On the Landing page, under Account, select Domain List from the drop-down list.

    Namecheap-配置-1-2

  3. 在 "域列表" 页上, 找到要编辑的域的名称, 然后选择 "管理"。On the Domain List page, find the name of the domain that you want to edit, and then choose Manage.

    Namecheap-配置-1-3

  4. 选择 "高级 DNS"。Choose Advanced DNS.

    Namecheap-配置-1-4

  5. 在 "邮件设置" 部分, 从 "电子邮件转发" 下拉列表中选择 "自定义 MX "。In the MAIL SETTINGS section, select Custom MX from the Email Forwarding drop-down list.

    (You may have to scroll down.)(You may have to scroll down.)

    Namecheap-配置-2-1

  6. 选择 "添加新记录"。Choose Add New Record.

    Namecheap-配置-2-2-1

  7. 在新记录的框中, 键入或复制并粘贴下表中的值。In the boxes for the new record, type or copy and paste the values, from the following table.

    ("优先级" 框是 "" 框右侧的未命名框。(The Priority box is the unnamed box to the right of the Value box. 从下拉列表中选择 " TTL " 值。Select the TTL value from the drop-down list.)

    类型Type 主机Host Value 优先级Priority TTLTTL
    MX 记录MX Record
    @
    <**>mail.protection.outlook.com。<domain-key>.mail.protection.outlook.com.
    This value MUST end with a period (.)This value MUST end with a period (.)
    注意: 从 Office 365 门户帐户中获取你* <的域密钥> * 。Note: Get your <domain-key> from your Office 365 portal account. 如何查找此内容?How do I find this?
    00
    有关优先级的详细信息,请参阅什么是 MX 优先级?For more information about priority, see What is MX priority?
    30分钟30 min

    Namecheap-配置-2-2-2

  8. 选择 "保存更改" (复选标记) 控件。Choose the Save Changes (check mark) control.

    Namecheap-配置-2-3

  9. 如果有任何其他 MX 记录, 请使用以下两步过程删除每个:If there are any other MX records, use the following two-step process to remove each of them:

    首先, 选择要删除的记录的 "删除" 图标(垃圾桶)。First, choose the Delete icon (trash can) for the record that you want to remove.

    Namecheap-配置-2-4

    其次, 选择 "是" 以确认删除。Second, choose Yes to confirm the deletion.

    Namecheap-配置-2-5

    删除在此过程前面添加的 MX 记录之外的所有 MX 记录。Remove all MX records except for the one that you added earlier in this procedure.

添加 Office 365 所需的 6 条 CNAME 记录Add the six CNAME records that are required for Office 365

按照下面的步骤操作。Follow the steps below.

  1. 若要开始, 请使用此链接转到 Namecheap 上的 "域" 页面。To get started, go to your domains page at Namecheap by using this link. 系统将提示您登录并继续。You'll be prompted to Sign in and Continue.

    Namecheap-配置-1-1

  2. 在 "登录" 页面上的 "帐户" 下, 从下拉列表中选择 "域列表"。On the Landing page, under Account, select Domain List from the drop-down list.

    Namecheap-配置-1-2

  3. 在 "域列表" 页上, 找到要编辑的域的名称, 然后选择 "管理"。On the Domain List page, find the name of the domain that you want to edit, and then choose Manage.

    Namecheap-配置-1-3

  4. 选择 "高级 DNS"。Choose Advanced DNS.

    Namecheap-配置-1-4

  5. 在 "主机记录" 部分中, 选择 "添加新记录"。In the HOST RECORDS section, choose ADD NEW RECORD.

    Namecheap-配置-1-5

  6. 在 "类型" 下拉菜单中, 选择 " CNAME 记录"。In the Type drop-down, select CNAME Record.

    备注

    当您选择 "添加新记录" 时, "类型" 下拉类型将自动显示。The Type drop-down automatically appears when you choose ADD NEW RECORD.

    Namecheap-配置-3-1

  7. 在新记录的空框中, 为记录类型选择 " CNAME ", 然后键入或复制并粘贴下表中第一行的值。In the empty boxes for the new record, select CNAME for the Record Type, and then type or copy and paste the values from the first row in the following table.

    类型Type 主机Host Value TTLTTL
    CNAMECNAME
    autodiscoverautodiscover
    autodiscover.outlook.com。autodiscover.outlook.com.
    此值必须以句点 (.) 结尾。This value MUST end with a period (.)
    36003600
    CNAMECNAME
    sipsip
    sipdir.online.lync.com。sipdir.online.lync.com.
    此值必须以句点 (.) 结尾。This value MUST end with a period (.)
    36003600
    CNAMECNAME
    lyncdiscoverlyncdiscover
    webdir.online.lync.com。webdir.online.lync.com.
    此值必须以句点 (.) 结尾。This value MUST end with a period (.)
    36003600
    CNAMECNAME
    msoidmsoid
    clientconfig.microsoftonline-p.net。clientconfig.microsoftonline-p.net.
    此值必须以句点 (.) 结尾。This value MUST end with a period (.)
    36003600
    CNAMECNAME
    enterpriseregistrationenterpriseregistration
    enterpriseregistration.windows.net。enterpriseregistration.windows.net.
    此值必须以句点 (.) 结尾。This value MUST end with a period (.)
    36003600
    CNAMECNAME
    enterpriseenrollmententerpriseenrollment
    enterpriseenrollment-s.manage.microsoft.com。enterpriseenrollment-s.manage.microsoft.com.
    此值必须以句点 (.) 结尾。This value MUST end with a period (.)
    36003600

    Namecheap-配置-3-2

  8. 选择 "保存更改" (复选标记) 控件。Choose the Save Changes (check mark) control.

    Namecheap-配置-3-3

  9. 使用前面的四个步骤和表中其他五行中的值, 添加其他五个 CNAME 记录中的每个。Using the preceding four steps and the values from the other five rows in the table, add each of the other five CNAME records.

为 SPF 添加 TXT 记录以帮助防止垃圾邮件Add a TXT record for SPF to help prevent email spam

重要

You cannot have more than one TXT record for SPF for a domain.You cannot have more than one TXT record for SPF for a domain. If your domain has more than one SPF record, you'll get email errors, as well as delivery and spam classification issues.If your domain has more than one SPF record, you'll get email errors, as well as delivery and spam classification issues. If you already have an SPF record for your domain, don't create a new one for Office 365.If you already have an SPF record for your domain, don't create a new one for Office 365. 改为将所需的 Office 365 值添加到当前记录, 以便您具有包含两组值的单个SPF 记录。Instead, add the required Office 365 values to the current record so that you have a single SPF record that includes both sets of values.

按照下面的步骤操作。Follow the steps below.

  1. 若要开始, 请使用此链接转到 Namecheap 上的 "域" 页面。To get started, go to your domains page at Namecheap by using this link. 系统将提示您登录并继续。You'll be prompted to Sign in and Continue.

  2. 在 "登录" 页面上的 "帐户" 下, 从下拉列表中选择 "域列表"。On the Landing page, under Account, select Domain List from the drop-down list.

    Namecheap-配置-1-2

  3. 在 "域列表" 页上, 找到要编辑的域的名称, 然后选择 "管理"。On the Domain List page, find the name of the domain that you want to edit and then choose Manage.

    Namecheap-配置-1-3

  4. 选择 "高级 DNS"。Choose Advanced DNS.

    Namecheap-配置-1-4

  5. 在 "主机记录" 部分中, 选择 "添加新记录"。In the HOST RECORDS section, choose ADD NEW RECORD.

    Namecheap-配置-1-5

  6. 在 "类型" 下拉中, 选择 " TXT 记录"。In the Type drop-down, select TXT Record.

    备注

    当您选择 "添加新记录" 时, "类型" 下拉类型将自动显示。The Type drop-down automatically appears when you choose ADD NEW RECORD.

    Namecheap-配置-4-1

  7. 在新记录的框中, 键入或复制并粘贴下表中的以下值。In the boxes for the new record, type or copy and paste the following values from the following table.

    (Select the TTL value from the drop-down list.)(Select the TTL value from the drop-down list.)

    类型Type 主机Host Value TTLTTL
    TXTTXT
    @
    v=spf1 include:spf.protection.outlook.com -allv=spf1 include:spf.protection.outlook.com -all
    注意: 我们建议您复制并粘贴此条目, 以确保所有的间距保持正确。Note: We recommend copying and pasting this entry, so that all of the spacing stays correct.
    30分钟30 min

    Namecheap-配置-4-2

  8. 选择 "保存更改" (复选标记) 控件。Choose the Save Changes (check mark) control.

    Namecheap-配置-4-3

添加 Office 365 所需的两条 SRV 记录Add the two SRV records that are required for Office 365

  1. 若要开始, 请使用此链接转到 Namecheap 上的 "域" 页面。To get started, go to your domains page at Namecheap by using this link. You'll be prompted to sign in.You'll be prompted to sign in.

    Namecheap-配置-1-1

  2. 在 "登录" 页面上的 "帐户" 下, 从下拉列表中选择 "域列表"。On the Landing page, under Account, select Domain List from the drop-down list.

    Namecheap-配置-1-2

  3. 在 "域列表" 页上, 找到要编辑的域的名称, 然后选择 "管理"。On the Domain List page, find the name of the domain that you want to edit and then choose Manage.

    Namecheap-配置-1-3

  4. 选择 "高级 DNS"。Choose Advanced DNS.

    Namecheap-配置-1-4

  5. 在 "主机记录" 部分中, 选择 "添加新记录"。In the HOST RECORDS section, choose ADD NEW RECORD.

    Namecheap-配置-1-5

  6. 在 "类型" 下拉菜单中, 选择 " SRV 记录"。In the Type drop-down, select SRV Record.

    备注

    当您选择 "添加新记录" 时, "类型" 下拉类型将自动显示。The Type drop-down automatically appears when you choose ADD NEW RECORD.

    Namecheap-配置-5-1

  7. 在新记录的空框中, 键入或复制并粘贴下表中第一行的值。In the empty boxes for the new records, type or copy and paste the values from the first row in the following table.

    服务Service 协议Protocol 优先级Priority 权重Weight 端口Port 目标Target TTLTTL
    _sip_sip
    _tls
    100100
    11
    443443
    sipdir.online.lync.com。sipdir.online.lync.com.
    This value MUST end with a period (.)This value MUST end with a period (.)
    30分钟30 min
    _sipfederationtls_sipfederationtls
    _tcp_tcp
    100100
    11
    50615061
    sipfed.online.lync.com。sipfed.online.lync.com.
    此值必须以句点 (.) 结尾。This value MUST end with a period (.)
    30分钟30 min

    Namecheap-配置-5-2

  8. 选择 "保存更改" (复选标记) 控件。Choose the Save Changes (check mark) control.

    Namecheap-配置-5-3

  9. 使用前面的四个步骤和表中第二行的值, 添加另一条 SRV 记录。Using the preceding four steps and the values from the second row in the table, add the other SRV record.

备注

DNS 更改通常需要 15 分钟左右才能生效。 但是,有时可能需要更长时间,您所做的更改才会在 Internet 的 DNS 系统中更新。 如果添加 DNS 记录后遇到邮件流问题或其他问题,请参阅 更改域名或 DNS 记录后出现的问题的疑难解答