更新 DNS 记录以便利用当前的托管提供商继续托管网站Update DNS records to keep your website with your current hosting provider

如果在 DNS 托管提供商中管理域的 Microsoft 记录,则无需担心本主题中的步骤。If you manage your domain's Microsoft records at your DNS hosting provider, you don't have to worry about the steps in this topic. 您的网站将保留在原处,供用户继续正常访问。Your website stays where it is and people can still get to it.

如果 Microsoft 管理 DNS 记录,若要将流量路由到在 Microsoft 外部托管的现有公共网站,在将域添加到 Microsoft 后,请执行下列操作:If Microsoft manages your DNS records, to route traffic to an existing public website hosted outside of Microsoft, after you add your domain to Microsoft, do the following:

在 Microsoft 365 管理中心更新 DNS 记录Update DNS records in the Microsoft 365 admin center

  1. 在管理中心,转到“设置”>“”页面。In the admin center, go to the Settings > Domains page.

  2. 在""页面上,选择域,然后选择 "DNS 记录"。On the Domains page, select the domain and then choose DNS Records.

  3. "DNS 设置" 下,选择 "自定义记录"。Under DNS settings, select Custom Records.

  4. 选择" + 新增自定义记录 ",然后输入以下信息:Select + New custom record and enter the following:

    • 对于" DNS 类型 ",请输入: A (地址)For DNS type enter: A (Address)

    • 对于" 主机名或别名 ",请键入: @For Host name or Alias, type the following: @

    • 对于" IP 地址 ",请键入网站当前托管位置的静态 IP 地址(例如 172.16.140.1)。For IP Address, type the static IP address for your website where it's currently hosted (for example, 172.16.140.1).

    必须是该网站的 静态 IP 地址,不能是 动态 IP 地址。 请与您的网站的托管网站核实,确保可以获得您的公共网站的静态 IP 地址。This must be a static IP address for the website, not a dynamic IP address. Check with site where your website is hosted to make sure you can get a static IP address for your public website.

  5. 选择" 保存 "。Select Save.

此外,您可以创建 CNAME 记录以帮助客户找到您的网站。In addition, you can create a CNAME record to help customers find your website.

  1. 选择" + 新增自定义记录 ",然后输入以下信息:Select + New custom record and enter the following:

    • 对于" DNS 类型 ",请输入: CNAME (别名)For DNS type enter: CNAME (Alias)

    • 对于" 主机名或别名 ",请键入: wwwFor Host name or Alias, type the following: www

    • 对于" 指向地址 ",请键入网站的完全限定域名 (FQDN),例如 contoso.com。For Points to address, type the fully qualified domain name (FQDN) for your website (for example, contoso.com).

  2. 选择" 保存 "。Select Save.

最后,请执行下列操作:Finally, do the following:

将域的 NS 记录更新 为指向 Microsoft。Update your domain's NS records to point to Microsoft.

当 NS 记录更新为指向 Microsoft 时,域已全部设置。When the NS records have been updated to point to Microsoft, your domain is all set up. 电子邮件将路由到 Microsoft,并且发送到你的网站地址的流量将继续转到你的当前网站主机。Email will be routed to Microsoft, and traffic to your website address will continue to go to your current website host.