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
description: Overview of support for alias records in Microsoft Azure DNS.
4
+
services: dns
5
+
author: vhorne
6
+
ms.service: dns
7
+
ms.topic: article
8
+
ms.date: 9/25/2018
9
+
ms.author: victorh
10
+
---
11
+
12
+
# Azure DNS alias records overview
13
+
14
+
Azure DNS alias records are qualification on a DNS record set that allows you to reference other Azure resources from within your DNS zone. For example, you can create an alias recordset that references an Azure Public IP address instead an A record. Since your alias recordset points to an Azure Public IP address service instance dynamically, the alias record set seamlessly updates itself during DNS resolution.
15
+
16
+
An alias record set is supported for the following record types in an Azure DNS zone: A, AAAA, and CNAME.
17
+
18
+
> [!NOTE]
19
+
> Alias records for the A or AAAA record types for Traffic Manager are only supported for External Endpoint types. You must provide the IPv4 or IPv6 address (ideally static IPs) as appropriate for external endpoints in Traffic Manager.
20
+
21
+
## Capabilities
22
+
23
+
-**Point to a Public IP resource from a DNS A/AAAA record set**. You can create an A/AAAA record set, and make it an alias record set to point to a Public IP resource.
24
+
-**Point to a Traffic Manager profile from a DNS A/AAAA/CNAME record set**. In addition to being able to point to the CNAME of a Traffic Manager profile (for example: contoso.trafficmanager.net) from a DNS CNAME recordset, you can now also point to a Traffic Manager profile that has external endpoints, from an A or AAAA recordset in your DNS zone.
25
+
> [!NOTE]
26
+
> Alias records for the A or AAAA record types for Traffic Manager are only supported for External Endpoint types. You must provide the IPv4 or IPv6 address (ideally static IPs) as appropriate for external endpoints in Traffic Manager.
27
+
-**Point to another DNS record set within the same zone**. Alias records can reference to other record sets of the same type. For example, you can have a DNS CNAME recordset be an alias to another CNAME recordset of the same type. This is useful if you want to have some recordsets be aliases and some as non-aliases in terms of behavior.
28
+
29
+
## Scenarios
30
+
There are a few common scenarios for Alias records:
31
+
32
+
### Prevent dangling DNS records
33
+
From within Azure DNS zones, alias records can be used to closely keep track of the lifecycle of Azure resources such as a Public IP and Traffic Manager profile. One of the common problems with traditional DNS records is “dangling records”, especially with A/AAAA or CNAME record types.
34
+
35
+
With a traditional DNS zone record, if the target IP or CNAME no longer exists, the DNS zone record has no knowledge of that fact and needs to be updated manually. In some organizations, this manual update may not happen in time or can be problematic due to the separation of roles and associated permission levels.
36
+
37
+
For example, the role that has authority to delete a CNAME or IP address belonging to an application may not have sufficient authority to update the DNS record that points to those targets. As a result, there may be a time delay between when the IP or CNAME is deleted and the DNS record that points to it is removed, which could potentially cause an outage for end users.
38
+
39
+
Alias records remove the complexity associated with this scenario and help prevent such dangling references. When a DNS record is qualified as an alias record to point to a Public IP or a Traffic Manager profile, and if those underlying resources are deleted, the DNS alias record is also removed at the same time. This ensures the end users never suffer an outage.
40
+
41
+
### Update DNS zones automatically when application IPs change
42
+
43
+
Similar to the previous scenario, if an application is moved or if the underlying virtual machine is restarted, an alias record is updated automatically when the IP address changes for the underlying Public IP resource. You can avoid potential security risks if end users are directed to another application that has the old IP address.
44
+
45
+
### Host load balanced applications at the zone apex
46
+
47
+
The DNS protocol prevents the assignment of anything other than an A or AAAA record at the zone apex (for example: contoso.com). This presents a problem for application owners who have load balanced applications behind a Traffic Manager, as it was not possible to point at the Traffic Manager profile from the zone apex record. As a result, application owners were forced to use a workaround. For example, a redirect at the application layer to redirect from the zone apex to another domain (from contoso.com to www.contoso.com). This presents a single point of failure in terms of the redirect functionality.
48
+
49
+
With alias records, this problem no longer exists. Application owners can now point their zone apex record to a Traffic Manager profile that has external endpoints. With this capability, application owners can point to the same Traffic Manager profile that is used for any other domain within their DNS zone.
50
+
For example, contoso.com and www.contoso.com can both point to the same Traffic Manager profile as long as the Traffic Manager profile has only external endpoints configured.
51
+
52
+
## Next steps
53
+
54
+
To lean more about alias records, see the follwing articles:
55
+
56
+
-[Tutorial: Configure an alias record to refer to an Azure Public IP address](tutorial-alias-pip.md)
57
+
-[Tutorial: Configure an alias record to support apex domain names with Traffic Manager](tutorial-alias-tm.md)
Copy file name to clipboardExpand all lines: articles/dns/dns-faq.md
+42-10Lines changed: 42 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ ms.devlang: na
12
12
ms.topic: article
13
13
ms.tgt_pltfrm: na
14
14
ms.workload: infrastructure-services
15
-
ms.date: 11/06/2017
15
+
ms.date: 9/25/2018
16
16
ms.author: victorh
17
17
---
18
18
@@ -59,6 +59,10 @@ You need to purchase the domain name if you want to link your DNS zone into the
59
59
60
60
## Azure DNS Features
61
61
62
+
### Are there any restrictions when using alias records for a domain name apex with Traffic Manager?
63
+
64
+
Yes. You must use static public IP addresses with Traffic Manager. Configure the **External endpoint** target using a static IP address.
65
+
62
66
### Does Azure DNS support DNS-based traffic routing or endpoint failover?
63
67
64
68
DNS-based traffic routing and endpoint failover are provided by Azure Traffic Manager. Azure Traffic Manager is a separate Azure service that can be used together with Azure DNS. For more information, see the [Traffic Manager overview](../traffic-manager/traffic-manager-overview.md).
@@ -89,13 +93,41 @@ No. URL redirect services are not actually a DNS service - they work at the HTTP
89
93
90
94
URL Redirect feature is tracked on Azure DNS backlog. You can use the feedback site to [register your support for this feature](https://feedback.azure.com/forums/217313-networking/suggestions/10109736-provide-a-301-permanent-redirect-service-for-ape).
91
95
92
-
### Does Azure DNS support extended ASCII encoding (8-bit) set for TXT Recordset?
96
+
### Does Azure DNS support extended ASCII encoding (8-bit) set for TXT Recordset?
93
97
94
-
Yes. Azure DNS supports the extended ASCII encoding set for TXT Recordsets, if you use the latest version of the Azure REST APIs, SDKs, PowerShell and CLI (versions older than 2017-10-01 or SDK 2.1 do not support the extended ASCII set). For example, if the user provides a string as the value for a TXT record that has the extended ASCII character \128 (eg: "abcd\128efgh"), Azure DNS will use the byte value of this character (which is 128) in internal representation. At the time of DNS resolution as well this byte value will be returned in the response. Also note that "abc" and "\097\098\099" are interchangeable as far as resolution is concerned.
98
+
Yes. Azure DNS supports the extended ASCII encoding set for TXT Recordsets, if you use the latest version of the Azure REST APIs, SDKs, PowerShell, and CLI (versions older than 2017-10-01 or SDK 2.1 do not support the extended ASCII set). For example, if the user provides a string as the value for a TXT record that has the extended ASCII character \128 (for example: "abcd\128efgh"), Azure DNS will use the byte value of this character (which is 128) in internal representation. At the time of DNS resolution as well this byte value will be returned in the response. Also note that "abc" and "\097\098\099" are interchangeable as far as resolution is concerned.
95
99
96
100
We follow [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt) zone file master format escape rules for TXT records. For example, ‘\’ now actually escapes everything per the RFC. If you specify "A\B" as the TXT record value, it will be represented and resolve as just "AB". If you really want the TXT record to have "A\B" at resolution, you need to escape the "\" again, i.e specify as "A\\B".
97
101
98
-
Note that this support is currently not available for TXT records created from the Azure Portal.
102
+
This support is currently not available for TXT records created from the Azure portal.
103
+
104
+
## Alias records
105
+
106
+
### What are some scenarios where alias records are useful?
107
+
See the scenarios section in [Azure DNS alias records overview](dns-alias.md).
108
+
109
+
### What record types are supported for alias record sets?
110
+
Alias records sets are supported for the following record types in an Azure DNS zone: A, AAAA, and CNAME.
111
+
112
+
### What resources are supported as targets for alias record sets?
113
+
-**Point to a Public IP resource from a DNS A/AAAA record set**. You can create an A/AAAA record set, and make it an alias record set to point to a Public IP resource.
114
+
-**Point to a Traffic Manager profile from a DNS A/AAAA/CNAME record set**. In addition to the ability to point to the CNAME of a Traffic Manager profile (for example: contoso.trafficmanager.net) from a DNS CNAME recordset, you can now also point to a Traffic Manager profile that has external endpoints, from an A or AAAA recordset in your DNS zone.
115
+
-**Point to another DNS recordset within the same zone**. Alias records can reference to other record sets of the same type. For example, you can have a DNS CNAME record set be an alias to another CNAME recordset of the same type. This is useful if you want to have some record sets be aliases and some as non-aliases in terms of behavior.
116
+
117
+
### Can I create and update alias records from the Azure portal?
118
+
Yes. Alias records can be created or managed in the Azure portal in addition to the Azure REST APIs, Azure PowerShell, CLI, and SDKs.
119
+
120
+
### Will alias records help ensure my DNS record set is deleted when the underlying Public IP is deleted?
121
+
Yes. In fact, this is one of the core capabilities of alias records. They help you avoid potential outages for end users of your application.
122
+
123
+
### Will Alias records help ensure my DNS record set is updated to the correct IP address when the underlying Public IP address changes?
124
+
Yes. As in the previous question, this is one of the core capabilities of alias records, and helps you avoid potential outages or security risks for your application.
125
+
126
+
### Are there any restrictions when using alias record sets for an A or AAAA records to point to Traffic Manager?
127
+
Yes. If you want to point to a Traffic Manager profile as an alias from an A or AAAA record set, you must ensure the Traffic Manager profile only uses External Endpoints. When you create the external endpoints in Traffic Manager, ensure you provide the actual IP addresses of the endpoints.
128
+
129
+
### Is there an additional charge for using alias records?
130
+
Alias records are a qualification on a valid DNS recordset, and there is no additional billing for alias records.
99
131
100
132
## Using Azure DNS
101
133
@@ -175,7 +207,7 @@ No. Private Zones work in conjunction with virtual networks and let customers ma
175
207
Yes. Customers can associate up to 10 Resolution virtual networks with a single private zone.
176
208
177
209
### Can a virtual network that belongs to a different subscription be added as a resolution virtual network to a Private Zone?
178
-
Yes, as long as the User has Write operation permission on both the virtual networks as well as the Private DNS zone. Note that the Write permission may be allocated to multiple RBAC roles. For example, the Classic Network Contributor RBAC role has write permissions to virtual networks. For more information on RBAC roles, see [Role Based Access Control](../role-based-access-control/overview.md)
210
+
Yes, as long as the User has Write operation permission on both the virtual networks as well as the Private DNS zone. The Write permission may be allocated to multiple RBAC roles. For example, the Classic Network Contributor RBAC role has write permissions to virtual networks. For more information on RBAC roles, see [Role Based Access Control](../role-based-access-control/overview.md)
179
211
180
212
### Will the automatically registered virtual machine DNS records in a private zone be automatically deleted when the virtual machines are deleted by the customer?
181
213
Yes. If you delete a virtual machine within a Registration virtual network, we will automatically delete the DNS records that were registered into the zone due to this being a Registration virtual network.
@@ -186,29 +218,29 @@ No. At this time, the virtual machine DNS records that are automatically registe
186
218
### What happens when we attempt to manually create a new DNS record into a private zone that has the same hostname as an (automatically registered) existing virtual machine in a Registration virtual network?
187
219
If you attempt to manually create a new DNS record into a private zone that has the same hostname as an existing (automatically registered) virtual machine in a Registration virtual network, we will allow the new DNS record to overwrite the automatically registered virtual machine record. Furthermore, if you subsequently attempt to delete this manually created DNS record from the zone, the delete will succeed, and the automatic registration will happen again (the DNS record will be re-created automatically in the zone) so long as the virtual machine still exists and has a Private IP attached to it.
188
220
189
-
### What happens when we unlink a Registration virtual network from a private zone? Would the automatically registered virtual machine records from the virtual network be removed from the zone as well?
221
+
### What happens when we unlink a Registration virtual network from a private zone? Would the automatically registered virtual machine records from the virtual network be removed from the zone as well?
190
222
Yes. If you unlink a Registration virtual network (update the DNS zone to remove the associated Registration virtual network) from a private zone, Azure will remove any automatically registered virtual machine records from the zone.
191
223
192
-
### What happens when we delete a Registration (or Resolution) virtual network that is linked to a private zone? Do we have to manually update the private zone to un-link the virtual network as a Registration (or Resolution) virtual network from the zone?
224
+
### What happens when we delete a Registration (or Resolution) virtual network that is linked to a private zone? Do we have to manually update the private zone to unlink the virtual network as a Registration (or Resolution) virtual network from the zone?
193
225
Yes. When you delete a Registration (or Resolution) virtual network without unlinking it from a private zone first, Azure will let your deletion operation to succeed, but the virtual network is not automatically unlinked from your private zone if any. You need to manually unlink the virtual network from the private zone. For this reason, it is advised to first unlink your virtual network from your private zone before deleting it.
194
226
195
227
### Would DNS resolution using the default FQDN (internal.cloudapp.net) still work even when a Private Zone (for example: contoso.local) is linked to a virtual network?
196
-
Yes. Private Zones feature does not replace the default DNS resolutions using the Azure-provided internal.cloudapp.net zone, and is offered as an additional capability or enhancement. For both cases (whether relying on Azure-provided internal.cloudapp.net or on your own Private Zone) it is advised to use the FQDN of the zone you want to resolve against.
228
+
Yes. Private Zones feature does not replace the default DNS resolutions using the Azure-provided internal.cloudapp.net zone, and is offered as an additional capability or enhancement. For both cases (whether relying on Azure-provided internal.cloudapp.net or on your own Private Zone), it is advised to use the FQDN of the zone you want to resolve against.
197
229
198
230
### Would the DNS suffix on virtual machines within a linked virtual network be changed to that of the Private Zone?
199
231
No. At this time, the DNS suffix on the virtual machines in your linked virtual network will remain as the default Azure-provided suffix ("*.internal.cloudapp.net"). You can however manually change this DNS suffix on your virtual machines to that of the private zone.
200
232
201
233
### Are there any limitations for Private Zones during this preview?
202
234
Yes. During Public Preview, the following limitations exist:
203
-
*1 Registration virtual networks per Private Zone
235
+
*One Registration virtual networks per Private Zone
204
236
* Upto 10 Resolution virtual networks per Private Zone
205
237
* A given virtual network can only be linked to one Private Zone as a Registration virtual network
206
238
* A given virtual network can be linked to up to 10 Private Zones as a Resolution virtual network
207
239
* If a Registration virtual network is specified, the DNS records for the VMs from that virtual network that are registered to the Private Zone will not be viewable or retrievable from the Powershell/CLI/APIs, but the VM records are indeed registered and will resolve successfully
208
240
* Reverse DNS will only work for Private IP space in the Registration virtual network
209
241
* Reverse DNS for a Private IP that is not registered in the Private Zone (for example: Private IP for a virtual machine in a virtual network that is linked as a Resolution virtual network to a private zone) will return "internal.cloudapp.net" as the DNS suffix, however this suffix will not be resolvable.
210
242
* Virtual network needs to be empty (i.e no virtual machines with a NIC attached) when initially (i.e for the first time) linking to a Private Zone as Registration or Resolution virtual network. However, the virtual network can then be non-empty for future linking as a Registration or Resolution virtual network, to other private zones.
211
-
* At this time, conditional forwarding is not supported, for example for enabling resolution between Azure and OnPrem networks. For documentation on how customers can realize this scenario via other mechanisms, please see [Name Resolution for VMs and Role Instances](../virtual-network/virtual-networks-name-resolution-for-vms-and-role-instances.md)
243
+
* At this time, conditional forwarding is not supported, for example for enabling resolution between Azure and OnPrem networks. For documentation on how customers can realize this scenario via other mechanisms, see [Name Resolution for VMs and Role Instances](../virtual-network/virtual-networks-name-resolution-for-vms-and-role-instances.md)
212
244
213
245
### Are there any quotas or limits on Zones or Records for Private Zones?
214
246
There are no separate limits on number of Zones allowed per subscription, or number of record sets per Zone, for Private Zones. Both Public and Private Zones count toward the overall DNS limits as documented [here](../azure-subscription-service-limits.md#dns-limits)
0 commit comments