Skip to content

Commit dbc2dc2

Browse files
Merge pull request #262845 from greg-lindsay/dns-upd
Add clarity to reverse DNS provisioning procedures
2 parents 9c6bc60 + 3c6e461 commit dbc2dc2

File tree

1 file changed

+32
-24
lines changed

1 file changed

+32
-24
lines changed

articles/dns/dns-reverse-dns-for-azure-services.md

Lines changed: 32 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.service: dns
88
ms.topic: how-to
99
ms.tgt_pltfrm: na
1010
ms.workload: infrastructure-services
11-
ms.date: 11/30/2023
11+
ms.date: 01/09/2023
1212
ms.author: greglin
1313
ms.custom: devx-track-azurepowershell, devx-track-azurecli
1414
---
@@ -25,44 +25,49 @@ This scenario differs from the ability to [host the reverse DNS lookup zones](dn
2525

2626
Before reading this article, you should familiarize yourself with [reverse DNS in Azure DNS](dns-reverse-dns-overview.md).
2727

28-
In Azure DNS, compute resources such as virtual machines, virtual machine scale sets, and Service Fabric clusters have Public IP addresses. Reverse DNS lookups are configured using the 'ReverseFqdn' property of the Public IP address.
28+
In Azure DNS, compute resources such as virtual machines, virtual machine scale sets, and Service Fabric clusters have public IP addresses. Reverse DNS lookups are configured using the 'ReverseFqdn' property of the public IP address.
2929

3030
Reverse DNS is currently not supported for the Azure App Service and Application Gateway.
3131

3232
## Validation of reverse DNS records
3333

34-
A third party shouldn't have access to create reverse DNS records for Azure service mapping to your DNS domains. That's why Azure only allows you to create a reverse DNS record if the domain name is the same or resolves to a Public IP address in the same subscription. This restriction also applies to Cloud Service.
34+
A third party shouldn't have access to create reverse DNS records for Azure service mapping to your DNS domains. That's why Azure only allows you to create a reverse DNS record if a forward DNS lookup resolves to the same public IP address, or to names that are defined in your subscription. See the following example. This restriction also applies to Cloud Service.
3535

36-
This validation is only done when the reverse DNS record is set or modified. Periodic revalidation isn't done.
36+
Validation is only done when the reverse DNS record is set or modified. Periodic revalidation isn't done.
3737

38-
For example, suppose the Public IP address resource has the DNS name `contosoapp1.northus.cloudapp.azure.com` and IP address `23.96.52.53`. The reverse FQDN for the Public IP address can be specified as:
38+
For example, suppose the public IP address resource has the DNS name `contosoapp1.northus.cloudapp.azure.com` and IP address `23.96.52.53`. The reverse FQDN for the public IP address can be specified as:
3939

40-
* The DNS name for the Public IP address: `contosoapp1.northus.cloudapp.azure.com`.
40+
* The DNS name for the public IP address: `contosoapp1.northus.cloudapp.azure.com`.
4141
* The DNS name for a different PublicIpAddress in the same subscription, such as: `contosoapp2.westus.cloudapp.azure.com`.
42-
* A vanity DNS name, such as: `app1.contoso.com`. As long as the name is *first* configured as a CNAME pointing to `contosoapp1.northus.cloudapp.azure.com`. The name can also be pointed to a different Public IP address in the same subscription.
42+
* A vanity DNS name, such as: `app1.contoso.com`. As long as the name is *first* configured as a CNAME pointing to `contosoapp1.northus.cloudapp.azure.com`. The name can also be pointed to a different public IP address in the same subscription.
4343
* A vanity DNS name, such as: `app1.contoso.com`. As long as this name is *first* configured as an A record pointing to the IP address 23.96.52.53. The name can also be pointed to another IP address in the same subscription.
4444

4545
The same constraints apply to reverse DNS for Cloud Services.
4646

47-
## Reverse DNS for Public IP address resources
47+
## Reverse DNS for public IP address resources
4848

49-
This section provides detailed instructions for how to configure reverse DNS for Public IP address resources in the Resource Manager deployment model. You can use either Azure PowerShell, Azure classic CLI, or Azure CLI to accomplish this task. Configuring reverse DNS for a Public IP address resource is currently not supported in the Azure portal.
49+
This section provides detailed instructions for how to configure reverse DNS for public IP address resources in the Resource Manager deployment model. You can use either Azure PowerShell, Azure classic CLI, or Azure CLI to accomplish this task. Configuring reverse DNS for a public IP address resource is currently not supported in the Azure portal.
5050

51-
Azure currently supports reverse DNS only for Public IPv4 address resources.
51+
Azure currently supports reverse DNS only for public IPv4 address resources.
5252

53-
### Add reverse DNS to an existing PublicIpAddresses
53+
> [!IMPORTANT]
54+
> New or updated PTR records must pass [validation](#validation-of-reverse-dns-records). If the PTR for a public IP address doesn't currently exist, you must specify the hostname using **DomainNameLabel** (Azure PowerShell), the **-d** parameter (Azure Classic CLI), or the **--dns-name** parameter (Azure CLI) as shown in the following examples.
55+
56+
### Add reverse DNS for a public IP address with an existing name
57+
58+
Use the following procedures if a public IP address already has a [defined name](#validation-of-reverse-dns-records) in your subscription or via forward DNS lookup.
5459

5560
#### Azure PowerShell
5661

57-
To update reverse DNS to an existing PublicIpAddress:
62+
To update reverse DNS on a public IP address with an existing PTR:
5863

5964
```azurepowershell-interactive
6065
$pip = Get-AzPublicIpAddress -Name "PublicIp" -ResourceGroupName "MyResourceGroup"
6166
$pip.DnsSettings.ReverseFqdn = "contosoapp1.westus.cloudapp.azure.com."
6267
Set-AzPublicIpAddress -PublicIpAddress $pip
6368
```
6469

65-
To add reverse DNS to an existing PublicIpAddress that doesn't already have a DNS name, you must also specify a DNS name:
70+
To add reverse DNS to a public IP address that doesn't already have a PTR, you must specify the DomainNameLabel:
6671

6772
```azurepowershell-interactive
6873
$pip = Get-AzPublicIpAddress -Name "PublicIp" -ResourceGroupName "MyResourceGroup"
@@ -74,33 +79,36 @@ Set-AzPublicIpAddress -PublicIpAddress $pip
7479

7580
#### Azure Classic CLI
7681

77-
To add reverse DNS to an existing PublicIpAddress:
82+
To update reverse DNS on a public IP address with an existing PTR:
7883

7984
```azurecli
8085
azure network public-ip set -n PublicIp -g MyResourceGroup -f contosoapp1.westus.cloudapp.azure.com.
8186
```
8287

83-
To add reverse DNS to an existing PublicIpAddress that doesn't already have a DNS name, you must also specify a DNS name:
88+
To add reverse DNS to a public IP address that doesn't already have a PTR, you must specify the DNS name (-d):
8489

8590
```azurecli-interactive
8691
azure network public-ip set -n PublicIp -g MyResourceGroup -d contosoapp1 -f contosoapp1.westus.cloudapp.azure.com.
8792
```
8893

8994
#### Azure CLI
9095

91-
To add reverse DNS to an existing PublicIpAddress:
96+
To update reverse DNS on a public IP address with an existing PTR:
9297

9398
```azurecli-interacgive
9499
az network public-ip update --resource-group MyResourceGroup --name PublicIp --reverse-fqdn contosoapp1.westus.cloudapp.azure.com.
95100
```
96101

97-
To add reverse DNS to an existing PublicIpAddress that doesn't already have a DNS name, you must also specify a DNS name:
102+
To add reverse DNS to a public IP address that doesn't already have a PTR, you must specify the DNS name (--dns-name):
98103

99104
```azurecli-interactive
100105
az network public-ip update --resource-group MyResourceGroup --name PublicIp --reverse-fqdn contosoapp1.westus.cloudapp.azure.com --dns-name contosoapp1
101106
```
102107

103-
### Create a Public IP Address with reverse DNS
108+
### Create a public IP address with reverse DNS
109+
110+
> [!NOTE]
111+
> If the public IP address already exists in your subscription, see [Add reverse DNS for a public IP address with an existing name](#add-reverse-dns-for-a-public-ip-address-with-an-existing-name).
104112
105113
To create a new PublicIpAddress with the reverse DNS property already specified:
106114

@@ -122,9 +130,9 @@ azure network public-ip create -n PublicIp -g MyResourceGroup -l westus -d conto
122130
az network public-ip create --name PublicIp --resource-group MyResourceGroup --location westcentralus --dns-name contosoapp1 --reverse-fqdn contosoapp1.westcentralus.cloudapp.azure.com
123131
```
124132

125-
### View reverse DNS for an existing PublicIpAddress
133+
### View reverse DNS for an existing public IP address
126134

127-
To view the configured value for an existing PublicIpAddress:
135+
To view the configured reverse DNS value for an existing PublicIpAddress:
128136

129137
#### Azure PowerShell
130138

@@ -144,7 +152,7 @@ azure network public-ip show -n PublicIp -g MyResourceGroup
144152
az network public-ip show --name PublicIp --resource-group MyResourceGroup
145153
```
146154

147-
### Remove reverse DNS from existing Public IP Addresses
155+
### Remove reverse DNS from an existing public IP address
148156

149157
To remove a reverse DNS property from an existing PublicIpAddress:
150158

@@ -210,7 +218,7 @@ Set-AzureService –ServiceName "contosoapp1" –Description "App1 with Reverse
210218

211219
They're free! There's no extra cost for reverse DNS records or queries.
212220

213-
### Will my reverse DNS records resolve from the internet?
221+
### Do my reverse DNS records resolve from the internet?
214222

215223
Yes. Once you set the reverse DNS property for your Azure service, Azure manages all the DNS delegations and DNS zones needed to ensure it resolves for all internet users.
216224

@@ -222,9 +230,9 @@ No. Reverse DNS is an opt-in feature. No default reverse DNS records are created
222230

223231
FQDNs are specified in forward order, and must be terminated by a dot (for example, "app1.contoso.com.").
224232

225-
### What happens if the validation check for the reverse DNS I've specified fails?
233+
### What happens if the validation check for the specified reverse DNS entry fails?
226234

227-
Where the reverse DNS validation check fails, the operation to configure the reverse DNS record fails. Correct the reverse DNS value as required, and retry.
235+
If the reverse DNS validation check fails, the operation to configure the reverse DNS record fails. Correct the reverse DNS value as required and retry.
228236

229237
### Can I configure reverse DNS for Azure App Service?
230238

0 commit comments

Comments
 (0)