You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: Get started with Azure DNS using PowerShell | Microsoft Docs
3
-
description: Learn how to create a DNS zone and record in Azure DNS. This is a step-by-step guide to create and manage your first DNS zone and record using PowerShell.
2
+
title: Quickstart - Create an Azure DNS zone and record using Azure PowerShell
3
+
description: Learn how to create a DNS zone and record in Azure DNS. This is a step-by-step quickstart to create and manage your first DNS zone and record using Azure PowerShell.
4
4
services: dns
5
-
documentationcenter: na
6
-
author: KumudD
7
-
manager: timlt
8
-
editor: ''
9
-
tags: azure-resource-manager
10
-
11
-
ms.assetid: fb0aa0a6-d096-4d6a-b2f6-eda1c64f6182
5
+
author: vhorne
12
6
ms.service: dns
13
-
ms.devlang: na
14
-
ms.topic: get-started-article
15
-
ms.tgt_pltfrm: na
16
-
ms.workload: infrastructure-services
17
-
ms.date: 03/10/2017
18
-
ms.author: kumud
7
+
ms.topic: quickstart
8
+
ms.date: 07/20/2018
9
+
ms.author: victorh
10
+
#Customer intent: As an administrator or developer, I want to learn how to configure Azure DNS using Azure PowerShell so I can use Azure DNS for my Internet name resolution.
19
11
---
20
12
21
-
# Get Started with Azure DNS using PowerShell
22
-
23
-
> [!div class="op_single_selector"]
24
-
> *[Azure portal](dns-getstarted-portal.md)
25
-
> *[PowerShell](dns-getstarted-powershell.md)
26
-
> *[Azure CLI 1.0](dns-getstarted-cli-nodejs.md)
27
-
> *[Azure CLI 2.0](dns-getstarted-cli.md)
13
+
# Quickstart: Create an Azure DNS zone and record using Azure PowerShell
28
14
29
-
This article walks you through the steps to create your first DNS zone and record using Azure PowerShell. You can also perform these steps using the Azure portal or the cross-platform Azure CLI. Azure DNS also supports creating a private domains. For step-by-step instructions about how create your first private DNS zone and record, see [Get started with Azure DNS private zones using PowerShell](private-dns-getstarted-powershell.md).
15
+
In this quickstart, you create your first DNS zone and record using Azure PowerShell. You can also perform these steps using the [Azure portal](dns-getstarted-portal.md) or the [Azure CLI](dns-getstarted-cli.md).
30
16
31
17
A DNS zone is used to host the DNS records for a particular domain. To start hosting your domain in Azure DNS, you need to create a DNS zone for that domain name. Each DNS record for your domain is then created inside this DNS zone. Finally, to publish your DNS zone to the Internet, you need to configure the name servers for the domain. Each of these steps is described below.
32
18
33
-
These instructions assume you have already installed and signed in to Azure PowerShell. For help, see [How to manage DNS zones using PowerShell](dns-operations-dnszones.md).
19
+
Azure DNS also supports creating private domains. For step-by-step instructions about how create your first private DNS zone and record, see [Get started with Azure DNS private zones using PowerShell](private-dns-getstarted-powershell.md).
Azure DNS now also supports private DNS zones (currently in public preview). To learn more about private DNS zones, see [Using Azure DNS for private domains](private-dns-overview.md). For an example of how to create a private DNS zone, see [Get started with Azure DNS private zones using PowerShell](./private-dns-getstarted-powershell.md).
51
40
52
41
## Create a DNS record
53
42
54
-
You create record sets by using the `New-AzureRmDnsRecordSet` cmdlet. The following example creates a record with the relative name "www" in the DNS Zone "contoso.com", in resource group "MyResourceGroup". The fully-qualified name of the record set is "www.contoso.com". The record type is "A", with IP address "1.2.3.4", and the TTL is 3600 seconds.
43
+
You create record sets by using the `New-AzureRmDnsRecordSet` cmdlet. The following example creates a record with the relative name "www" in the DNS Zone "contoso.com", in resource group "MyResourceGroup". The fullyqualified name of the record set is "www.contoso.com". The record type is "A", with IP address "1.2.3.4", and the TTL is 3600 seconds.
For other record types, for record sets with more than one record, and to modify existing records, see [Manage DNS records and record sets using Azure PowerShell](dns-operations-recordsets.md).
61
-
62
-
63
49
## View records
64
50
65
51
To list the DNS records in your zone, use:
@@ -91,17 +77,16 @@ These name servers should be configured with the domain name registrar (where yo
91
77
92
78
## Delete all resources
93
79
94
-
To delete all resources created in this article, take the following step:
80
+
When no longer needed, you can delete all resources created in this quickstart by deleting the resource group:
95
81
96
82
```powershell
97
83
Remove-AzureRMResourceGroup -Name MyResourceGroup
98
84
```
99
85
100
86
## Next steps
101
87
102
-
To learn more about Azure DNS, see [Azure DNS overview](dns-overview.md).
103
-
104
-
To learn more about managing DNS zones in Azure DNS, see [Manage DNS zones in Azure DNS using PowerShell](dns-operations-dnszones.md).
88
+
Now that you've created your first DNS zone and record using Azure PowerShell, you can create records for a web app in a custom domain.
105
89
106
-
To learn more about managing DNS records in Azure DNS, see [Manage DNS records and record sets in Azure DNS using PowerShell](dns-operations-recordsets.md).
90
+
> [!div class="nextstepaction"]
91
+
> [Create DNS records for a web app in a custom domain](./dns-web-sites-custom-domain.md)
0 commit comments