创建特定域的Azure DNS区域,实现将 Azure DNS 配置为解析公共域中的主机名。
如果从某个域名注册机构购买了 contoso.xyz 域名,则可配置 Azure DNS 以托管 contoso.xyz 域,并将 www.contoso.xyz
解析为 Web 服务器或 Web 应用的 IP 地址。

Azure DNS 是 DNS 域的托管服务,它使用 Microsoft Azure 基础结构提供名称解析。
通过在 Azure 中托管域,可以使用与其它 Azure 服务相同的凭据、API、工具和计费来管理 DNS 记录。
Azure DNS 中的 DNS 域托管在 DNS 名称服务器的 Azure 全球网络上,使用任意广播网络,每个 DNS
查询由最近的可用 DNS
服务器来应答,能够提供快速性能和高可用性。
注意: Azure DNS 中不包含购买公共域名的服务,可以使用第三方域名注册机构购买公共域名。 然后将该公共域托管在 Azure DNS
中来管理记录。
可以通过门户、CLI、PowerShell、Bicep、ARM template、Terraform等方式部署Azure专用DNS服务。
■ 通过门户
a) 创建 DNS 区域
b) 创建 DNS 记录
c) 测试名称解析
■ 通过CLI
a) Create the resource group
b) Create a DNS zone
c) Create a DNS record
d) View records
e) Test the name resolution
■ 通过PowerShell
f) Create the resource group
g) Create a DNS zone
h) Create a DNS record
i) View records
j) Test the name resolution
■ 通过Bicep
a) Review the Bicep file
b) Deploy the Bicep file
c) Validate the deployment
■ 通过ARM template
a) Review the template
b) Deploy the template
c) Validate the deployment
■ 通过Terraform
a) Implement the Terraform code
b) Initialize Terraform
c) Create a Terraform execution planv
d) Apply a Terraform execution plan
e) Verify the results