如何在 Azure 门户中管理 DNS 区域How to manage DNS Zones in the Azure portal

本文介绍如何使用 Azure 门户管理 DNS 区域。This article shows you how to manage your DNS zones by using the Azure portal. 也可使用跨平台的 Azure CLI 或 Azure PowerShell 管理 DNS 区域。You can also manage your DNS zones using the cross-platform Azure CLI or the Azure PowerShell.

创建 DNS 区域Create a DNS zone

  1. 登录到 Azure 门户Sign in to the Azure portal

  2. 在“中心”菜单上,导航至“创建资源”> 搜索“DNS 区域” ,以打开“创建 DNS 区域” 边栏选项卡。On the Hub menu, navigate to Create a resource >search DNS zone to open the Create DNS zone blade.

    DNS 区域

  3. 在“创建 DNS 区域”边栏选项卡上,输入以下值,并单击“创建”: On the Create DNS zone blade enter the following values, then click Create:

    设置Setting Value 详细信息Details
    名称Name contoso.comcontoso.com DNS 区域的名称The name of the DNS zone
    订阅Subscription [订阅][Your subscription] 选择要在其中创建 DNS 区域的订阅。Select a subscription to create the DNS zone in.
    资源组Resource group 新建: contosoDNSRGCreate new: contosoDNSRG 创建资源组。Create a resource group. 资源组名称必须在所选订阅中唯一。The resource group name must be unique within the subscription you selected. 若要详细了解资源组,请阅读 Resource Manager 这篇概述文章。To learn more about resource groups, read the Resource Manager overview article.
    位置Location 中国东部China East

备注

资源组指的是资源组的位置,对 DNS 区域没有影响。The resource group refers to the location of the resource group, and has no impact on the DNS zone. DNS 区域位置始终是“全局”,并且不会显示。The DNS zone location is always "global", and is not shown.

列出 DNS 区域List DNS zones

在 Azure 门户中,导航到“更多服务” > “网络” > “DNS 区域” 。In the Azure portal, navigate to More services > Networking > DNS zones. 每个 DNS 区域都是其自己的资源,可从该视图查看记录集的数目和名称服务器等信息。Each DNS zone is its own resource, and information such as number of record-sets and name servers are viewable from this view. 列 NAME SERVERS 不在默认视图中。The column NAME SERVERS is not in the default view. 要添加它,请单击“列” ,选择“名称服务器” ,然后单击“完成” 。To add it, click Columns, select Name servers, and then click Done.

列出 DNS 区域

删除 DNS 区域Delete a DNS zone

在门户中导航到 DNS 区域。Navigate to a DNS zone in the portal. 在“DNS 区域” 边栏选项卡上,单击“删除区域” 。On the DNS zone blade, click Delete zone. 然后系统会提示你确认是否需要删除 DNS 区域。You are then prompted to confirm you are wanting to delete the DNS zone. 删除 DNS 区域还会删除该区域中包含的所有记录。Deleting a DNS zone also deletes all records that are contained in the zone.

后续步骤Next steps

访问通过 Azure 门户开始使用 Azure DNS,可了解如何处理 DNS 区域和记录。Learn how to work with your DNS Zone and records by visiting Get started with Azure DNS using the Azure portal.