@@ -5,7 +5,7 @@ services: dns
5
5
author : asudbring
6
6
ms.service : azure-dns
7
7
ms.topic : tutorial
8
- ms.date : 06/07/2024
8
+ ms.date : 08/03/2025
9
9
ms.author : allensu
10
10
ms.custom : devx-track-azurepowershell
11
11
# Customer intent: As an experienced network administrator, I want to create DNS records in Azure DNS, so I can host a web app in a custom domain.
@@ -93,14 +93,18 @@ In the left navigation of the App Services page in the Azure portal, select **Cu
93
93
# [ Azure portal] ( #tab/azure-portal )
94
94
95
95
1 . Navigate to your DNS zone in the Azure portal.
96
- 2 . Select ** + Record set** .
97
- 3 . On the ** Add record set** page, enter the following information:
98
- - ** Name** : Enter ** @** (represents the root domain)
99
- - ** Type** : Select ** A**
100
- - ** TTL** : Enter ** 600**
101
- - ** TTL unit** : Select ** Seconds**
102
- - ** IP address** : Enter the IP address of your web app (copied from the previous step)
103
- 4 . Select ** OK** to create the record.
96
+ 1 . Select ** + Record set** .
97
+ 1 . On the ** Add record set** page, enter the following information:
98
+
99
+ | Setting | Value |
100
+ | ---------| -------|
101
+ | ** Name** | ** @** (represents the root domain) |
102
+ | ** Type** | ** A** |
103
+ | ** TTL** | ** 600** |
104
+ | ** TTL unit** | ** Seconds** |
105
+ | ** IP address** | Enter the IP address of your web app (copied from the previous step) |
106
+
107
+ 1 . Select ** OK** to create the record.
104
108
105
109
# [ Azure PowerShell] ( #tab/azure-powershell )
106
110
@@ -153,14 +157,18 @@ App Services uses this record only at configuration time to verify that you own
153
157
# [ Azure portal] ( #tab/azure-portal )
154
158
155
159
1 . Navigate to your DNS zone in the Azure portal.
156
- 2 . Select ** + Record set** .
157
- 3 . On the ** Add record set** page, enter the following information:
158
- - ** Name** : Enter ** @** (represents the root domain)
159
- - ** Type** : Select ** TXT**
160
- - ** TTL** : Enter ** 600**
161
- - ** TTL unit** : Select ** Seconds**
162
- - ** Value** : Enter your web app's default domain name (for example, ** contoso.azurewebsites.net** )
163
- 4 . Select ** OK** to create the record.
160
+ 1 . Select ** + Record set** .
161
+ 1 . On the ** Add record set** page, enter the following information:
162
+
163
+ | Setting | Value |
164
+ | ---------| -------|
165
+ | ** Name** | ** @** (represents the root domain) |
166
+ | ** Type** | ** TXT** |
167
+ | ** TTL** | ** 600** |
168
+ | ** TTL unit** | ** Seconds** |
169
+ | ** Value** | Enter your web app's default domain name (for example, ** contoso.azurewebsites.net** ) |
170
+
171
+ 1 . Select ** OK** to create the record.
164
172
165
173
# [ Azure PowerShell] ( #tab/azure-powershell )
166
174
@@ -199,14 +207,18 @@ If your domain is already managed by Azure DNS (see [DNS domain delegation](dns-
199
207
# [ Azure portal] ( #tab/azure-portal )
200
208
201
209
1 . Navigate to your DNS zone in the Azure portal.
202
- 2 . Select ** + Record set** .
203
- 3 . On the ** Add record set** page, enter the following information:
204
- - ** Name** : Enter ** www**
205
- - ** Type** : Select ** CNAME**
206
- - ** TTL** : Enter ** 600**
207
- - ** TTL unit** : Select ** Seconds**
208
- - ** Alias** : Enter your web app's default domain name (for example, ** contoso.azurewebsites.net** )
209
- 4 . Select ** OK** to create the record.
210
+ 1 . Select ** + Record set** .
211
+ 1 . On the ** Add record set** page, enter the following information:
212
+
213
+ | Setting | Value |
214
+ | ---------| -------|
215
+ | ** Name** | ** www** |
216
+ | ** Type** | ** CNAME** |
217
+ | ** TTL** | ** 600** |
218
+ | ** TTL unit** | ** Seconds** |
219
+ | ** Alias** | Enter your web app's default domain name (for example, ** contoso.azurewebsites.net** ) |
220
+
221
+ 1 . Select ** OK** to create the record.
210
222
211
223
# [ Azure PowerShell] ( #tab/azure-powershell )
212
224
@@ -294,19 +306,20 @@ contoso.com text =
294
306
295
307
"contoso.azurewebsites.net"
296
308
```
309
+
297
310
## Add custom host names
298
311
299
312
Now, you can add the custom host names to your web app:
300
313
301
314
# [ Azure portal] ( #tab/azure-portal )
302
315
303
316
1 . Navigate to your web app in the Azure portal.
304
- 2 . In the left navigation under ** Settings** , select ** Custom domains** .
305
- 3 . Select ** + Add custom domain** .
306
- 4 . In the ** Custom domain** field, enter your domain name (for example, ** contoso.com** or ** www.contoso.com ** ).
307
- 5 . Select ** Validate** . Azure will validate that the DNS records you created are properly configured.
308
- 6 . If validation is successful, select ** Add custom domain** .
309
- 7 . Repeat steps 3-6 for each custom domain you want to add (both ** contoso.com** and ** www.contoso.com ** ).
317
+ 1 . In the left navigation under ** Settings** , select ** Custom domains** .
318
+ 1 . Select ** + Add custom domain** .
319
+ 1 . In the ** Custom domain** field, enter your domain name (for example, ** contoso.com** or ** www.contoso.com ** ).
320
+ 1 . Select ** Validate** . Azure will validate that the DNS records you created are properly configured.
321
+ 1 . If validation is successful, select ** Add custom domain** .
322
+ 1 . Repeat steps 3-6 for each custom domain you want to add (both ** contoso.com** and ** www.contoso.com ** ).
310
323
311
324
# [ Azure PowerShell] ( #tab/azure-powershell )
312
325
@@ -354,9 +367,9 @@ When no longer needed, you can delete all resources created in this tutorial by
354
367
# [ Azure portal] ( #tab/azure-portal )
355
368
356
369
1 . On the Azure portal menu, select ** Resource groups** .
357
- 2 . Select the ** test-rg** resource group.
358
- 3 . On the ** Overview** page, select ** Delete resource group** .
359
- 4 . Enter * test-rg* and select ** Delete** .
370
+ 1 . Select the ** test-rg** resource group.
371
+ 1 . On the ** Overview** page, select ** Delete resource group** .
372
+ 1 . Enter * test-rg* and select ** Delete** .
360
373
361
374
# [ Azure PowerShell] ( #tab/azure-powershell )
362
375
0 commit comments