Skip to content

Commit fba28d1

Browse files
committed
fixes
1 parent de8fcf4 commit fba28d1

File tree

1 file changed

+47
-34
lines changed

1 file changed

+47
-34
lines changed

articles/dns/dns-web-sites-custom-domain.md

Lines changed: 47 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services: dns
55
author: asudbring
66
ms.service: azure-dns
77
ms.topic: tutorial
8-
ms.date: 06/07/2024
8+
ms.date: 08/03/2025
99
ms.author: allensu
1010
ms.custom: devx-track-azurepowershell
1111
#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
9393
# [Azure portal](#tab/azure-portal)
9494

9595
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.
104108

105109
# [Azure PowerShell](#tab/azure-powershell)
106110

@@ -153,14 +157,18 @@ App Services uses this record only at configuration time to verify that you own
153157
# [Azure portal](#tab/azure-portal)
154158

155159
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.
164172

165173
# [Azure PowerShell](#tab/azure-powershell)
166174

@@ -199,14 +207,18 @@ If your domain is already managed by Azure DNS (see [DNS domain delegation](dns-
199207
# [Azure portal](#tab/azure-portal)
200208

201209
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.
210222

211223
# [Azure PowerShell](#tab/azure-powershell)
212224

@@ -294,19 +306,20 @@ contoso.com text =
294306
295307
"contoso.azurewebsites.net"
296308
```
309+
297310
## Add custom host names
298311

299312
Now, you can add the custom host names to your web app:
300313

301314
# [Azure portal](#tab/azure-portal)
302315

303316
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**).
310323

311324
# [Azure PowerShell](#tab/azure-powershell)
312325

@@ -354,9 +367,9 @@ When no longer needed, you can delete all resources created in this tutorial by
354367
# [Azure portal](#tab/azure-portal)
355368

356369
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**.
360373

361374
# [Azure PowerShell](#tab/azure-powershell)
362375

0 commit comments

Comments
 (0)