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

176
176
177
177
4. If you had selected **Delete storage online** in the **Stop Protection** dialog box earlier, ignore this step. Right-click the inactive protection group and select **Remove inactive protection**.
178
178
@@ -198,7 +198,7 @@ To stop protection and delete backup data, do the following steps:
198
198
>[!NOTE]
199
199
>The PIN is valid for only five minutes.
200
200
1. In the management console, paste the PIN, and then select **Submit**.
Copy file name to clipboardExpand all lines: articles/backup/backup-azure-vm-backup-faq.yml
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ metadata:
3
3
title: FAQ - Backing up Azure VMs
4
4
description: In this article, discover answers to common questions about backing up Azure VMs with the Azure Backup service.
5
5
ms.topic: conceptual
6
-
ms.date: 01/26/2021
6
+
ms.date: 04/30/2021
7
7
8
8
title: Frequently asked questions-Back up Azure VMs
9
9
summary: |
@@ -212,4 +212,6 @@ sections:
212
212
One way to view the retention settings for your backups, is to navigate to the backup item [dashboard](./backup-azure-manage-vms.md#view-vms-on-the-dashboard) for your VM, in the Azure portal. Selecting the link to its backup policy helps you view the retention duration of all the daily, weekly, monthly and yearly retention points associated with the VM.
213
213
214
214
You can also use [Backup Explorer](./monitor-azure-backup-with-backup-explorer.md) to view the retention settings for all your VMs within a single pane of glass. Navigate to Backup Explorer from any Recovery Services vault, go to the **Backup Items** tab and select the Advanced View to see detailed retention information for each VM.
215
+
- question: When the snapshot is moved from a storage account to a vault, how is encryption in the transit managed?
216
+
answer: Azure VM Backup uses [HTTPS communication for encryption in transit](guidance-best-practices.md#encryption-of-data-in-transit-and-at-rest). The data transfer uses Azure fabric (and not public endpoints), which do not need Internet access for VM backup.
title: Import and export a domain zone file - Azure CLI
3
3
titleSuffix: Azure DNS
4
-
description: Learn how to import and export a DNS zone file to Azure DNS by using Azure CLI
4
+
description: Learn how to import and export a DNS (Domain Name System) zone file to Azure DNS by using Azure CLI
5
5
services: dns
6
6
author: rohinkoul
7
7
ms.service: dns
8
-
ms.date: 7/30/2020
8
+
ms.date: 04/29/2021
9
9
ms.author: rohink
10
10
ms.topic: how-to
11
11
---
12
12
13
13
# Import and export a DNS zone file using the Azure CLI
14
14
15
-
This article walks you through how to import and export DNS zone files for Azure DNS using the Azure CLI.
15
+
In this article, you'll learn how to import and export a DNS zone file in Azure DNS using Azure CLI.
16
16
17
17
## Introduction to DNS zone migration
18
18
19
-
A DNS zone file is a text file that contains details of every Domain Name System (DNS) record in the zone. It follows a standard format, making it suitable for transferring DNS records between DNS systems. Using a zone file is a quick, reliable, and convenient way to transfer a DNS zone into or out of Azure DNS.
19
+
A DNS zone file is a text file containing information about every Domain Name System (DNS) record in the zone. It follows a standard format, making it suitable for transferring DNS records between DNS systems. Using a zone file is a fast and convenient way to import DNS zones into Azure DNS. You can also export a zone file from Azure DNS to use with other DNS systems.
20
20
21
-
Azure DNS supports importing and exporting zone files by using the Azure command-line interface (CLI). Zone file import is **not**currently supported via Azure PowerShell or the Azure portal.
21
+
Azure DNS supports importing and exporting zone files by using the Azure command-line interface (CLI). Zone file import is currently **not** supported with Azure PowerShell or the Azure portal.
22
22
23
-
The Azure CLI is a cross-platform command-line tool used for managing Azure services. It is available for the Windows, Mac, and Linux platforms from the [Azure downloads page](https://azure.microsoft.com/downloads/). Cross-platform support is important for importing and exporting zone files, because the most common name server software, [BIND](https://www.isc.org/downloads/bind/), typically runs on Linux.
23
+
Azure CLI is a cross-platform command-line tool used for managing Azure services. It's available for Windows, Mac, and Linux from the [Azure downloads page](https://azure.microsoft.com/downloads/).
24
24
25
25
## Obtain your existing DNS zone file
26
26
27
27
Before you import a DNS zone file into Azure DNS, you need to obtain a copy of the zone file. The source of this file depends on where the DNS zone is currently hosted.
28
28
29
-
* If your DNS zone is hosted by a partner service (such as a domain registrar, dedicated DNS hosting provider, or alternative cloud provider), that service should provide the ability to download the DNS zone file.
30
-
* If your DNS zone is hosted on Windows DNS, the default folder for the zone files is **%systemroot%\system32\dns**. The full path to each zone file also shows on the **General** tab of the DNS console.
31
-
* If your DNS zone is hosted by using BIND, the location of the zone file for each zone is specified in the BIND configuration file **named.conf**.
29
+
* If your DNS zone is currently hosted by a partner service, they'll have a way for you to download the DNS zone file. Partner services include domain registrar, dedicated DNS hosting provider, or an alternative cloud provider.
30
+
* If your DNS zone is hosted on Windows DNS, the default folder for the zone files is **%systemroot%\system32\dns**. The full path to each zone file is also shown on the **General** tab of the DNS console.
31
+
* If your DNS zone is hosted using BIND, the location of the zone file for each zone gets specified in the BIND configuration file **named.conf**.
32
32
33
33
## Import a DNS zone file into Azure DNS
34
34
35
-
Importing a zone file creates a new zone in Azure DNS if one does not already exist. If the zone already exists, the record sets in the zone file must be merged with the existing record sets.
35
+
Importing a zone file creates a new zone in Azure DNS if the zone doesn't already exist. If the zone exist, then the record sets in the zone file will be merged with the existing record sets.
36
36
37
37
### Merge behavior
38
38
39
-
* By default, existing and new record sets are merged. Identical records within a merged record set are de-duplicated.
40
-
* When record sets are merged, the time to live (TTL) of preexisting record sets is used.
41
-
* Start of Authority (SOA) parameters (except `host`) are always taken from the imported zone file. Similarly, for the name server record set at the zone apex, the TTL is always taken from the imported zone file.
42
-
* An imported CNAME record does not replace an existing CNAME record with the same name.
43
-
* When a conflict arises between a CNAME record and another record of the same name but different type (regardless of which is existing or new), the existing record is retained.
39
+
* By default, the new record sets get merged with the existing record sets. Identical records within a merged record set aren't duplicated.
40
+
* When record sets are merged, the time to live (TTL) of pre-existing record sets is used.
41
+
* Start of Authority (SOA) parameters, except `host` are always taken from the imported zone file. The name server record set at the zone apex will also always use the TTL taken from the imported zone file.
42
+
* An imported CNAME record doesn't replace an existing CNAME record with the same name.
43
+
* When a conflict happens between a CNAME record and another record with the same name of different type, the existing record gets used.
44
44
45
45
### Additional information about importing
46
46
47
-
The following notes provide additional technical details about the zone import process.
47
+
The following notes provide more technical details about the zone import process.
48
48
49
-
* The `$TTL` directive is optional, and it is supported. When no `$TTL` directive is given, records without an explicit TTL are imported set to a default TTL of 3600 seconds. When two records in the same record set specify different TTLs, the lower value is used.
50
-
* The `$ORIGIN` directive is optional, and it is supported. When no `$ORIGIN` is set, the default value used is the zone name as specified on the command line (plus the terminating ".").
51
-
* The `$INCLUDE` and `$GENERATE` directives are not supported.
49
+
* The `$TTL` directive is optional, and is supported. When no `$TTL` directive is given, records without an explicit TTL are imported set to a default TTL of 3600 seconds. When two records in the same record set specify different TTLs, the lower value is used.
50
+
* The `$ORIGIN` directive is optional, and is supported. When no `$ORIGIN` is set, the default value used is the zone name as specified on the command line including the ending ".".
51
+
* The `$INCLUDE` and `$GENERATE` directives aren't supported.
52
52
* These record types are supported: A, AAAA, CAA, CNAME, MX, NS, SOA, SRV, and TXT.
53
-
* The SOA record is created automatically by Azure DNS when a zone is created. When you import a zone file, all SOA parameters are taken from the zone file *except* the `host` parameter. This parameter uses the value provided by Azure DNS. This is because this parameter must refer to the primary name server provided by Azure DNS.
53
+
* The SOA record is created automatically by Azure DNS when a zone is created. When you import a zone file, all SOA parameters are taken from the zone file *except* the `host` parameter. This parameter uses the value provided by Azure DNSbecause it needs to refer to the primary name server provided by Azure DNS.
54
54
* The name server record set at the zone apex is also created automatically by Azure DNS when the zone is created. Only the TTL of this record set is imported. These records contain the name server names provided by Azure DNS. The record data is not overwritten by the values contained in the imported zone file.
55
-
* During Public Preview, Azure DNS supports only single-string TXT records. Multistring TXT records are be concatenated and truncated to 255 characters.
55
+
* During Public Preview, Azure DNS supports only single-string TXT records. Multistring TXT records are to be concatenated and truncated to 255 characters.
56
56
57
57
### CLI format and values
58
58
59
59
The format of the Azure CLI command to import a DNS zone is:
60
60
61
-
```azurecli
61
+
```azurecli-interactive-interactive
62
62
az network dns zone import -g <resource group> -n <zone name> -f <zone file name>
63
63
```
64
64
@@ -68,38 +68,40 @@ Values:
68
68
*`<zone name>` is the name of the zone.
69
69
*`<zone file name>` is the path/name of the zone file to be imported.
70
70
71
-
If a zone with this name does not exist in the resource group, it is created for you. If the zone already exists, the imported record sets are merged with existing record sets.
71
+
If a zone with this name doesn't already exist in the resource group, one will be created for you. For an existing zone, the imported record sets will get merged with existing record sets.
72
72
73
-
### Step 1. Import a zone file
73
+
### Import a zone file
74
74
75
75
To import a zone file for the zone **contoso.com**.
76
76
77
-
1.If you don't have one already, you need to create a Resource Manager resource group.
77
+
1.Create a resource group if you don't have one.
78
78
79
-
```azurecli
79
+
```azurecli-interactive
80
80
az group create --resource-group myresourcegroup -l westeurope
81
81
```
82
82
83
-
2. To import the zone **contoso.com** from the file **contoso.com.txt** into a new DNS zone in the resource group **myresourcegroup**, you will run the command `az network dns zone import`.<BR>This command loads the zone file and parses it. The command executes a series of commands on the Azure DNS service to create the zone and all the record sets in the zone. The command reports progress in the console window, along with any errors or warnings. Because record sets are created in series, it may take a few minutes to import a large zone file.
83
+
1. To import the zone **contoso.com** from the file **contoso.com.txt** into a new DNS zone in the resource group **myresourcegroup**, you'll run the command `az network dns zone import`.
84
84
85
-
```azurecli
85
+
This command loads the zone file and parses it. The command executes a series of operations on the Azure DNS service to create the zone and all the record sets in the zone. The command will report the progress in the console window along with any errors or warnings. Since record sets are created in series, it may take a few minutes to import a large zone file.
86
+
87
+
```azurecli-interactive
86
88
az network dns zone import -g myresourcegroup -n contoso.com -f contoso.com.txt
87
89
```
88
90
89
-
### Step 2. Verify the zone
91
+
### Verify the zone
90
92
91
-
To verify the DNS zone after you import the file, you can use any one of the following methods:
93
+
You can use any one of the following methods to verify the DNS zone after you've imported the file:
92
94
93
-
* You can list the records by using the following Azure CLI command:
95
+
* To list the records, use the following Azure CLI command:
94
96
95
-
```azurecli
97
+
```azurecli-interactive
96
98
az network dns record-set list -g myresourcegroup -z contoso.com
97
99
```
98
100
99
-
* You can list the records by using the Azure CLI command `az network dns record-set ns list`.
100
-
* You can use `nslookup` to verify name resolution for the records. Because the zone isn't delegated yet, you need to specify the correct Azure DNS name servers explicitly. The following sample shows how to retrieve the name server names assigned to the zone. This also shows how to query the "www" record by using `nslookup`.
101
+
* You can also list the records by using the Azure CLI command `az network dns record-set ns list`.
102
+
* Use `nslookup` to verify name resolution for the records. If the zone hasn't been delegated yet, you need to specify the correct Azure DNS name servers explicitly. The following sample shows how to retrieve the name server names assigned to the zone.
101
103
102
-
```azurecli
104
+
```azurecli-interactive
103
105
az network dns record-set ns list -g myresourcegroup -z contoso.com --output json
104
106
```
105
107
@@ -133,6 +135,8 @@ To verify the DNS zone after you import the file, you can use any one of the fol
133
135
]
134
136
```
135
137
138
+
Use Windows Command Prompt to query the "www" record with the `nslookup` command.
139
+
136
140
```cmd
137
141
nslookup www.contoso.com ns1-03.azure-dns.com
138
142
@@ -144,15 +148,15 @@ To verify the DNS zone after you import the file, you can use any one of the fol
144
148
134.170.188.221
145
149
```
146
150
147
-
### Step 3. Update DNS delegation
151
+
### Update DNS delegation
148
152
149
-
After you have verified that the zone has been imported correctly, you need to update the DNS delegation to point to the Azure DNS name servers. For more information, see the article [Update the DNS delegation](dns-domain-delegation.md).
153
+
After you've verified that the zone has been imported correctly, you then need to update the DNS delegation to point to the Azure DNS name servers. For more information, see [Update the DNS delegation](dns-domain-delegation.md).
150
154
151
155
## Export a DNS zone file from Azure DNS
152
156
153
-
The format of the Azure CLI command to export a DNS zone is:
157
+
To export a DNS zone, use the following Azure CLI command:
154
158
155
-
```azurecli
159
+
```azurecli-interactive
156
160
az network dns zone export -g <resource group> -n <zone name> -f <zone file name>
157
161
```
158
162
@@ -168,12 +172,12 @@ As with the zone import, you first need to sign in, choose your subscription, an
168
172
169
173
To export the existing Azure DNS zone **contoso.com** in resource group **myresourcegroup** to the file **contoso.com.txt** (in the current folder), run `azure network dns zone export`. This command calls the Azure DNS service to enumerate record sets in the zone and export the results to a BIND-compatible zone file.
170
174
171
-
```azurecli
175
+
```azurecli-interactive
172
176
az network dns zone export -g myresourcegroup -n contoso.com -f contoso.com.txt
173
177
```
174
178
175
179
## Next steps
176
180
177
181
* Learn how to [manage record sets and records](./dns-getstarted-cli.md) in your DNS zone.
178
182
179
-
* Learn how to [delegate your domain to Azure DNS](dns-domain-delegation.md).
183
+
* Learn how to [delegate your domain to Azure DNS](dns-domain-delegation.md).
0 commit comments