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/cloud-services/cloud-services-custom-domain-name-portal.md
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
---
2
2
title: Configure a custom domain name in Cloud Services (classic) | Microsoft Docs
3
-
description: Learn how to expose your Azure application or data to the internet on a custom domain by configuring DNS settings. These examples use the Azure portal.
3
+
description: Learn how to expose your Azure application or data to the internet on a custom domain by configuring Domain Name System (DNS) settings. These examples use the Azure portal.
When you create a Cloud Service, Azure assigns it to a subdomain of **cloudapp.net**. For example, if your Cloud Service is named "contoso", your users will be able to access your application on a URL like `http://contoso.cloudapp.net`. Azure also assigns a virtual IP address.
17
+
When you create a Cloud Service, Azure assigns it to a subdomain of **cloudapp.net**. For example, if your Cloud Service is named `contoso`, your users are able to access your application on a URL like `http://contoso.cloudapp.net`. Azure also assigns a virtual IP address.
18
18
19
19
However, you can also expose your application on your own domain name, such as **contoso.com**. This article explains how to reserve or configure a custom domain name for Cloud Service web roles.
20
20
@@ -33,16 +33,16 @@ Do you already understand what CNAME and A records are? [Jump past the explanati
33
33
>
34
34
35
35
## Understand CNAME and A records
36
-
CNAME (or alias records) and A records both allow you to associate a domain name with a specific server (or service in this case,) however they work differently. There are also some specific considerations when using A records with Azure Cloud services that you should consider before deciding which to use.
36
+
CNAME (or alias records) and A records both allow you to associate a domain name with a specific server (or service in this case) however they work differently. There are also some specific considerations when using A records with Azure Cloud services that you should consider before deciding which to use.
37
37
38
38
### CNAME or Alias record
39
-
A CNAME record maps a *specific* domain, such as **contoso.com** or **www\.contoso.com**, to a canonical domain name. In this case, the canonical domain name is the **[myapp].cloudapp.net** domain name of your Azure hosted application. Once created, the CNAME creates an alias for the **[myapp].cloudapp.net**. The CNAME entry will resolve to the IP address of your **[myapp].cloudapp.net** service automatically, so if the IP address of the cloud service changes, you do not have to take any action.
39
+
A CNAME record maps a *specific* domain, such as **contoso.com** or **www\.contoso.com**, to a canonical domain name. In this case, the canonical domain name is the **[myapp].cloudapp.net** domain name of your Azure hosted application. Once created, the CNAME creates an alias for the **[myapp].cloudapp.net**. The CNAME entry resolves to the IP address of your **[myapp].cloudapp.net** service automatically, so if the IP address of the cloud service changes, you don't have to take any action.
40
40
41
41
> [!NOTE]
42
42
> Some domain registrars only allow you to map subdomains when using a CNAME record, such as www\.contoso.com, and not root names, such as contoso.com. For more information on CNAME records, see the documentation provided by your registrar, [the Wikipedia entry on CNAME record](https://en.wikipedia.org/wiki/CNAME_record), or the [IETF Domain Names - Implementation and Specification](https://tools.ietf.org/html/rfc1035) document.
43
43
44
44
### A record
45
-
An *A* record maps a domain, such as **contoso.com** or **www\.contoso.com**, *or a wildcard domain* such as **\*.contoso.com**, to an IP address. In the case of an Azure Cloud Service, the virtual IP of the service. So the main benefit of an A record over a CNAME record is that you can have one entry that uses a wildcard, such as \***.contoso.com**, which would handle requests for multiple sub-domains such as **mail.contoso.com**, **login.contoso.com**, or **www\.contso.com**.
45
+
An *A* record maps a domain, such as **contoso.com** or **www\.contoso.com**, *or a wildcard domain* such as **\*.contoso.com**, to an IP address. With an Azure Cloud Service, the virtual IP of the service. So the main benefit of an A record over a CNAME record is that you can have one entry that uses a wildcard, such as \***.contoso.com**, which would handle requests for multiple subdomains such as **mail.contoso.com**, **login.contoso.com**, or **www\.contso.com**.
46
46
47
47
> [!NOTE]
48
48
> Since an A record is mapped to a static IP address, it cannot automatically resolve changes to the IP address of your Cloud Service. The IP address used by your Cloud Service is allocated the first time you deploy to an empty slot (either production or staging.) If you delete the deployment for the slot, the IP address is released by Azure and any future deployments to the slot may be given a new IP address.
@@ -56,7 +56,7 @@ To create a CNAME record, you must add a new entry in the DNS table for your cus
56
56
57
57
1. Use one of these methods to find the **.cloudapp.net** domain name assigned to your cloud service.
58
58
59
-
*Login to the [Azure portal], select your cloud service, look at the **Overview** section and then find the **Site URL** entry.
59
+
*Sign into the [Azure portal], select your cloud service, look at the **Overview** section and then find the **Site URL** entry.
60
60
61
61
![quick glance section showing the site URL][csurl]
62
62
@@ -67,9 +67,9 @@ To create a CNAME record, you must add a new entry in the DNS table for your cus
Save the domain name used in the URL returned by either method, as you will need it when creating a CNAME record.
71
-
2. Log on to your DNS registrar's website and go to the page for managing DNS. Look for links or areas of the site labeled as **Domain Name**, **DNS**, or **Name Server Management**.
72
-
3. Now find where you can select or enter CNAME's. You may have to select the record type from a dropdown, or go to an advanced settings page. You should look for the words **CNAME**, **Alias**, or **Subdomains**.
70
+
Save the domain name used in the URL returned by either method, as you need it when creating a CNAME record.
71
+
2. Sign into your DNS registrar's website and go to the page for managing DNS. Look for links or areas of the site labeled as **Domain Name**, **DNS**, or **Name Server Management**.
72
+
3. Now find where you can select or enter CNAMEs. You may have to select the record type from a drop-down or go to an advanced settings page. You should look for the words **CNAME**, **Alias**, or **Subdomains**.
73
73
4. You must also provide the domain or subdomain alias for the CNAME, such as **www** if you want to create an alias for **www\.customdomain.com**. If you want to create an alias for the root domain, it may be listed as the '**\@**' symbol in your registrar's DNS tools.
74
74
5. Then, you must provide a canonical host name, which is your application's **cloudapp.net** domain in this case.
75
75
@@ -84,14 +84,14 @@ For example, the following CNAME record forwards all traffic from **www\.contoso
84
84
> (contoso.cloudapp.net), so the forwarding process is invisible to the
85
85
> end user.
86
86
>
87
-
> The example above only applies to traffic at the **www** subdomain. Since you cannot use wildcards with CNAME records, you must create one CNAME for each domain/subdomain. If you want to direct traffic from subdomains, such as *.contoso.com, to your cloudapp.net address, you can configure a **URL Redirect** or **URL Forward** entry in your DNS settings, or create an A record.
87
+
> The preceding example only applies to traffic at the **www** subdomain. Since you cannot use wildcards with CNAME records, you must create one CNAME for each domain/subdomain. If you want to direct traffic from subdomains, such as *.contoso.com, to your cloudapp.net address, you can configure a **URL Redirect** or **URL Forward** entry in your DNS settings, or create an A record.
88
88
89
89
## Add an A record for your custom domain
90
90
To create an A record, you must first find the virtual IP address of your cloud service. Then add a new entry in the DNS table for your custom domain by using the tools provided by your registrar. Each registrar has a similar but slightly different method of specifying an A record, but the concepts are the same.
91
91
92
92
1. Use one of the following methods to get the IP address of your cloud service.
93
93
94
-
* Login to the [Azure portal], select your cloud service, look at the **Overview** section and then find the **Public IP addresses** entry.
94
+
* Sign into the [Azure portal], select your cloud service, look at the **Overview** section and then find the **Public IP addresses** entry.
95
95
96
96
![quick glance section showing the VIP][vip]
97
97
@@ -102,13 +102,13 @@ To create an A record, you must first find the virtual IP address of your cloud
Save the IP address, as you will need it when creating an A record.
106
-
2. Log on to your DNS registrar's website and go to the page for managing DNS. Look for links or areas of the site labeled as **Domain Name**, **DNS**, or **Name Server Management**.
107
-
3. Now find where you can select or enter A record's. You may have to select the record type from a dropdown, or go to an advanced settings page.
108
-
4. Select or enter the domain or subdomain that will use this A record. For example, select **www** if you want to create an alias for **www\.customdomain.com**. If you want to create a wildcard entry for all subdomains, enter '*****'. This will cover all sub-domains such as **mail.customdomain.com**, **login.customdomain.com**, and **www\.customdomain.com**.
105
+
Save the IP address, as you need it when creating an A record.
106
+
2. Sign into your DNS registrar's website and go to the page for managing DNS. Look for links or areas of the site labeled as **Domain Name**, **DNS**, or **Name Server Management**.
107
+
3. Now find where you can select or enter A record's. You may have to select the record type from a drop-down, or go to an advanced settings page.
108
+
4. Select or enter the domain or subdomain that uses this A record. For example, select **www** if you want to create an alias for **www\.customdomain.com**. If you want to create a wildcard entry for all subdomains, enter `*****`. This entry covers all subdomains such as **mail.customdomain.com**, **login.customdomain.com**, and **www\.customdomain.com**.
109
109
110
110
If you want to create an A record for the root domain, it may be listed as the '**\@**' symbol in your registrar's DNS tools.
111
-
5. Enter the IP address of your cloud service in the provided field. This associates the domain entry used in the A record with the IP address of your cloud service deployment.
111
+
5. Enter the IP address of your cloud service in the provided field. This step associates the domain entry used in the A record with the IP address of your cloud service deployment.
112
112
113
113
For example, the following A record forwards all traffic from **contoso.com** to **137.135.70.239**, the IP address of your deployed application:
114
114
@@ -125,7 +125,7 @@ This example demonstrates creating an A record for the root domain. If you wish
125
125
126
126
## Next steps
127
127
* [How to Manage Cloud Services](cloud-services-how-to-manage-portal.md)
128
-
* [How to Map CDN Content to a Custom Domain](../cdn/cdn-map-content-to-custom-domain.md)
128
+
* [How to Map Content Delivery Network (CDN) Content to a Custom Domain](../cdn/cdn-map-content-to-custom-domain.md)
129
129
* [General configuration of your cloud service](cloud-services-how-to-configure-portal.md).
130
130
* Learn how to [deploy a cloud service](cloud-services-how-to-create-deploy-portal.md).
0 commit comments