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
This article explains how to configure reverse DNS lookups for services hosted in Azure.
17
+
This article explains how to configure reverse DNS lookups for services hosted in Azure. To host and configure reverse DNS for public IP address ranges assigned to you by your ISP, see [Host reverse DNS lookup zones in Azure DNS](dns-reverse-dns-hosting.md).
18
18
19
19
Services in Azure use IP addresses assigned by Azure and owned by Microsoft. These reverse DNS records (PTR records) must be created in the corresponding Microsoft-owned reverse DNS lookup zones.
20
20
@@ -241,7 +241,7 @@ No. Azure supports a single reverse DNS record for each Azure Cloud Service or P
241
241
242
242
### Can I configure reverse DNS for IPv6 PublicIpAddress resources?
243
243
244
-
No. Azure DNS does not currently support reverse DNS (PTR records) for public IPv6 addresses.
244
+
No. Azure DNS does not currently support reverse DNS (PTR records) for Azure-owned public IPv6 addresses. To configure reverse DNS for IPv6 addresses issued to you by your ISP, see [Host reverse DNS lookup zones in Azure DNS](dns-reverse-dns-hosting.md).
245
245
246
246
### Can I send emails to external domains from my Azure Compute services?
This article explains how to host reverse DNS lookup zones for your assigned IP ranges with Azure DNS. The IP ranges represented by the reverse lookup zones must be assigned to your organization, typically by your ISP.
18
-
19
-
To configure reverse DNS for an Azure-owned IP address assigned to your Azure service, see [Configure reverse DNS for services hosted in Azure](dns-reverse-dns-for-azure-services.md).
17
+
This article explains how to host reverse DNS lookup zones for your assigned IP ranges with Azure DNS. The IP ranges represented by the reverse lookup zones must be assigned to your organization, typically by your ISP. The scenario described in this article is not for IP addresses assigned by Microsoft. To configure reverse DNS for Microsoft-assigned IP address ranges, see [Configure reverse DNS for services hosted in Azure](dns-reverse-dns-for-azure-services.md).
20
18
21
19
Before reading this article, you should familiarize yourself with the [overview of reverse DNS](dns-reverse-dns-overview.md) and it's supported in Azure.
22
20
@@ -33,7 +31,7 @@ In this article, you learn how to create your first reverse lookup DNS zone and
33
31
| --- | --- |
34
32
|**Subscription**| Select your subscription.|
35
33
|**Resource group**| Select or create a new resource group. To learn more about resource groups, read the [Resource Manager](../azure-resource-manager/management/overview.md?toc=%2fazure%2fdns%2ftoc.json#resource-groups) overview article.|
36
-
|**Name**| Enter a name for the DNS zone. Use the instructions for [IPv4](#ipv4) to name your zone. |
34
+
|**Name**| Enter a name for the DNS zone. The name of the zone is specified differently for IPv4 and IPv6 prefixes. Use the instructions for [IPv4](#ipv4) or [IPv6](#ipv6) to name your zone. |
37
35
|**Location**| Select the location for the resource group. The location is already be selected if you're using a previously created resource group. |
38
36
39
37
5. Select **Review + create**, and then select **Create** once validation has passed.
@@ -75,7 +73,39 @@ az network dns zone create -g mydnsresourcegroup -n 2.0.192.in-addr.arpa
75
73
76
74
### IPv6
77
75
78
-
Azure Public DNS doesn't currently support IPv6 reverse DNS zones or records.
76
+
The name of an IPv6 reverse lookup zone should be in the following form:
77
+
`<IPv6 network prefix in reverse order>.ip6.arpa`. For examples, see [Overview of reverse DNS](dns-reverse-dns-overview.md#ipv6) for IPv6.
78
+
79
+
80
+
The following example shows how to create an IPv6 reverse DNS lookup zone named `0.0.0.0.d.c.b.a.8.b.d.0.1.0.0.2.ip6.arpa` in Azure DNS via the Azure portal:
81
+
82
+
:::image type="content" source="./media/dns-reverse-dns-hosting/ipv6-arpa-zone.png" alt-text="Screenshot of create IPv6 arpa DNS zone.":::
83
+
84
+
The following examples show how to complete this task using Azure PowerShell and Azure CLI.
azure network dns zone create mydnsresourcegroup 0.0.0.0.d.c.b.a.8.b.d.0.1.0.0.2.ip6.arpa
96
+
```
97
+
98
+
#### Azure CLI
99
+
100
+
```azurecli
101
+
az network dns zone create -g mydnsresourcegroup -n 0.0.0.0.d.c.b.a.8.b.d.0.1.0.0.2.ip6.arpa
102
+
```
103
+
104
+
## Delegate a reverse DNS lookup zone
105
+
106
+
Once the reverse DNS lookup zone gets created, you then need to make sure the zone gets delegated from the parent zone. DNS delegation enables the DNS name resolution process to find the name servers that host your reverse DNS lookup zone. Those name servers can then answer DNS reverse queries for the IP addresses in your address range.
107
+
108
+
For forward lookup zones, the process of delegating a DNS zone is described in [Delegate your domain to Azure DNS](dns-delegate-domain-azure-dns.md). Delegation for reverse lookup zones works the same way. The only difference is that you need to configure the name servers with the ISP. The ISP manages your IP range, that's why they need to update the name servers instead of domain name registrar.
79
109
80
110
## Create a DNS PTR record
81
111
@@ -120,7 +150,47 @@ az network dns record-set ptr add-record -g mydnsresourcegroup -z 2.0.192.in-add
120
150
121
151
### IPv6
122
152
123
-
Azure Public DNS doesn't currently support IPv6 reverse DNS zones or records.
153
+
The following example explains the process of creating new PTR record for IPv6. To learn more about record types or how to modify existing records, see [Manage DNS records and record sets](dns-operations-recordsets-portal.md).
154
+
155
+
1. At the top of the reverse DNS zone **Overview** page, select **Record sets** and then select **+Add**.
156
+
157
+

158
+
159
+
1. The name of the record set for a PTR record is the rest of the IPv6 address in reverse order. It must not include any zero compression.
160
+
161
+
In this example, the first 64 bits of the IPv6 gets populated as part of the zone name (0.0.0.0.c.d.b.a.8.b.d.0.1.0.0.2.ip6.arpa). That's why only the last 64 bits are supplied in the **Name** box. The last 64 bits of the IP address gets entered in reverse order, with a period as the delimiter between each hexadecimal number. Name your record set **e.5.0.4.9.f.a.1.c.b.0.1.4.2.5.f** if you have a resource whose IP address is 2001:0db8:abdc:0000:f524:10bc:1af9:405e.
162
+
163
+
:::image type="content" source="./media/dns-reverse-dns-hosting/create-ipv6-ptr.png" alt-text="Screenshot of create IPv6 pointer record.":::
164
+
165
+
1. For *Type*, select **PTR**.
166
+
167
+
1. For *DOMAIN NAME*, enter the FQDN of the resource that uses the IP.
168
+
169
+
1. Select **OK** to create the DNS record.
170
+
171
+
The following examples show how to complete this task by using PowerShell or Azure CLI.
az network dns record-set ptr add-record -g mydnsresourcegroup -z 0.0.0.0.c.d.b.a.8.b.d.0.1.0.0.2.ip6.arpa -n e.5.0.4.9.f.a.1.c.b.0.1.4.2.5.f --ptrdname dc2.contoso.com
189
+
```
190
+
191
+
## View records
192
+
193
+
To view the records that you created, browse to your DNS zone in the Azure portal. In the lower part of the **DNS zone** pane, you can see the records for the DNS zone. You should see the default NS and SOA records, plus any new records that you've created. The NS and SOA records are created in every zone.
124
194
125
195
### IPv4
126
196
@@ -150,7 +220,29 @@ az network dns record-set list -g mydnsresourcegroup -z 2.0.192.in-addr.arpa
150
220
151
221
### IPv6
152
222
153
-
Azure Public DNS doesn't currently support IPv6 reverse DNS zones or records.
223
+
The **DNS zone** page shows the IPv6 PTR record:
224
+
225
+
:::image type="content" source="./media/dns-reverse-dns-hosting/view-ipv6-ptr-record.png" alt-text="Screenshot of IPv6 pointer record on overview page." lightbox="./media/dns-reverse-dns-hosting/view-ipv6-ptr-record.png":::
226
+
227
+
The following examples show how to view the records by using PowerShell or Azure CLI.
azure network dns record-set list mydnsresourcegroup 0.0.0.0.c.d.b.a.8.b.d.0.1.0.0.2.ip6.arpa
239
+
```
240
+
241
+
#### Azure CLI
242
+
243
+
```azurecli
244
+
az network dns record-set list -g mydnsresourcegroup -z 0.0.0.0.c.d.b.a.8.b.d.0.1.0.0.2.ip6.arpa
245
+
```
154
246
155
247
## FAQ
156
248
@@ -166,7 +258,7 @@ Hosting the reverse DNS lookup zone for your ISP-assigned IP block in Azure DNS
166
258
167
259
### Can I host reverse DNS lookup zones for both IPv4 and IPv6 addresses in Azure DNS?
168
260
169
-
Only IPv4 reverse zones are supported. This article explains how to create IPv4 reverse DNS lookup zones in Azure DNS. IPv6 reverse lookup zones aren't currently supported.
261
+
Yes. This article explains how to create both IPv4 and IPv6 reverse DNS lookup zones in Azure DNS.
170
262
171
263
### Can I import an existing reverse DNS lookup zone?
0 commit comments