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
Copy file name to clipboardExpand all lines: articles/dns/delegate-subdomain.md
+28-33Lines changed: 28 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,72 +5,67 @@ services: dns
5
5
author: greg-lindsay
6
6
ms.service: dns
7
7
ms.topic: how-to
8
-
ms.date: 09/27/2022
8
+
ms.date: 11/28/2023
9
9
ms.author: greglin
10
10
---
11
11
12
12
# Delegate an Azure DNS subdomain
13
13
14
-
You can use the Azure portal to delegate a DNS subdomain. For example, if you own the contoso.com domain, you may delegate a subdomain called *engineering* to another separate zone that you can administer separately from the contoso.com zone.
14
+
You can use the Azure portal to delegate a DNS subdomain. For example, if you own the *adatum.com* domain, you can delegate a subdomain called *engineering.adatum.com* to another separate zone that you can administer separately from the adatum.com zone.
15
15
16
-
If you prefer, you can also delegate a subdomain using [Azure PowerShell](delegate-subdomain-ps.md).
16
+
You can also delegate a subdomain using [Azure PowerShell](delegate-subdomain-ps.md).
17
17
18
18
## Prerequisites
19
19
20
-
To delegate an Azure DNS subdomain, you must first delegate your public domain to Azure DNS. See [Delegate a domain to Azure DNS](./dns-delegate-domain-azure-dns.md) for instructions on how to configure your name servers for delegation. Once your domain is delegated to your Azure DNS zone, you can delegate your subdomain.
20
+
To delegate an Azure DNS subdomain, the parent public domain must first be delegated to Azure DNS. See [Delegate a domain to Azure DNS](./dns-delegate-domain-azure-dns.md) for instructions on how to configure your name servers for delegation. Once your domain is delegated to Azure DNS, you can delegate a subdomain.
21
21
22
22
> [!NOTE]
23
-
> Contoso.comis used as an example throughout this article. Substitute your own domain name for contoso.com.
23
+
> The `adatum.com` zone is used as an example of a parent DNS zone and `engineering.adatum.com` is used for the subdomain. Substitute your own domain names for these domains.
24
24
25
-
## Create a zone for your subdomain
25
+
## Delegate a subdomain
26
26
27
-
First, create the zone for the **engineering** subdomain.
27
+
The **engineering.adatum.com** subdomain can already exist. If it doesn't exist, it is created.
28
28
29
-
1. From the Azure portal, select **+ Create a resource**.
29
+
To delegate the **engineering** subdomain under **adatum.com**:
30
30
31
-
1. Search for **DNS zone** and then select **Create**.
31
+
1. From the Azure portal, search for **DNS zones** and select the **adatum.com** parent zone.
32
+
2. Select **+ Child zone** and enter **engineering** next to **Name**. The **Create DNS zone** window opens.
32
33
33
-
1. On the **Create DNS zone** page, select the resource group for your zone. You may want to use the same resource group as the parent zone to keep similar resources together.
34
+

34
35
35
-
1. Enter `engineering.contoso.com` for the **Name** and then select **Create**.
36
+
3. If desired, change the **Subscription** and **Resource group**. In this example, we use the same subscription and resource group as the parent zone.
37
+
4. Select **Review create**, and then select **Create**.
38
+
5. When deployment is complete, select **Go to resource** to view the new delegated zone: **engineering.adatum.com**.
36
39
37
-
1. After the deployment succeeds, go to the new zone.
40
+
[](./media/delegate-subdomain/child-zone-contents.png#lightbox)
38
41
39
-
## Note the name servers
42
+
6. Select the parent **adatum.com** zone again and notice that an **NS** record has been added with the name **engineering** and contents the same as NS records in the child zone. You might need to refresh the page. These are the Azure DNS nameservers that are authoritative for the subdomain (child zone).
40
43
41
-
Next, note the four name servers for the engineering subdomain.
44
+
[](./media/delegate-subdomain/parent-zone-contents.png#lightbox)
42
45
43
-
On the **engineering** zone overview page, note the four name servers for the zone. You'll need these name servers at a later time.
46
+
## Manual entry of NS records (optional)
44
47
45
-
## Create a test record
46
-
47
-
Create an **A** record to use for testing. For example, create a **www** A record and configure it with a **10.10.10.10** IP address.
48
-
49
-
## Create an NS record
50
-
51
-
Next, create a name server (NS) record for the **engineering** zone.
48
+
If desired, you can also create your subdomain and add the subdomain NS record manually.
52
49
53
-
1. Navigate to the zone for the parent domain.
50
+
To create a new subdomain zone, use **Create a resource > DNS zone** and create a zone named **engineering.adatum.com**.
54
51
55
-
1. Select **+ Record set**at the top of the overview page.
52
+
To create a subdomain delegation manually, add a new NS record set (**+ Record set**option) to the parent zone **adatum.com** with the name: **engineering** and specify each of the nameserver entries that are listed in the subdomain (child) zone.
56
53
57
-
1. On the **Add recordset** page, type **engineering** in the **Name** text box.
54
+
<br><imgsrc="./media/delegate-subdomain/add-ns-record-set.png"alt="A screenshot showing how to add an NS record set."width="50%">
58
55
59
-
1. For **Type**, select **NS**.
56
+
This method doesn't use the **+ Child zone** option, but both methods result in the same delegation.
60
57
61
-
1. Under **Name server**, enter the four name servers that you noted previously from the **engineering** zone.
58
+
## Create a test record
62
59
63
-
1. Select **OK**to save the record.
60
+
Next, create an **A**record in the **engineering.adatum.com** zone to use for testing. For example, create a **www** A record and configure it with a **10.10.10.10** IP address.
64
61
65
62
## Test the delegation
66
63
67
64
Use nslookup to test the delegation.
68
65
69
-
1. Open a PowerShell window.
70
-
71
-
1. At command prompt, type `nslookup www.engineering.contoso.com.`
72
-
73
-
1. You should receive a non-authoritative answer showing the address **10.10.10.10**.
66
+
1. Open a command prompt.
67
+
2. At command prompt, type `nslookup www.engineering.adatum.com.`
68
+
3. You should receive a non-authoritative answer showing the address **10.10.10.10**.
0 commit comments