Setup custom domain and sub-domain name in Azure/GoDaddy Part -1
In this Blog we will walk-through how to add custom Domain/sub-domain in Azure web app with the help of GoDaddy.
Problem Statement:
We have a domain cloudfronts.in, purchased from GoDaddy and we want that it should point to website hosted on Azure.
We have divided this blog in two different parts.
Part 1: Add new custom Domain
Part 2: Add new custom Sub-Domain
Pre-Requisite:
- Azure Subscription with Web apps (Service administrator/Co-administrator)
- GoDaddy Account with new Domain (Admin)
Next we need to follow the steps given below
Steps 1: Login to your GoDaddy account with admin credentials and click on Manage domains.
Steps 2: Click on domain name that you want to configure. In Our case we want to configure for cloudfronts.in.
Double click on domain name and wait for new window.
Step 3: Click on DNS Zone file and then edit option.
Steps 4: We need some additional information from Azure web apps, that we will add in DNS configuration.
- Login to your Azure account and navigate to web site that you want to configure.
- Web site must be in share mode or standard mode to configure domain name. Change apps service plan pricing ties accordingly. Please refer following URL for more information http://azure.microsoft.com/en-in/pricing/details/app-service/
Navigate to Dashboard and click on Manage domains to add new custom domain name for your web site.
Steps 5: Copy IP address of Azure web site. This information will need, when we add DNS record in GoDaddy.
Steps 6: Add new A(Address) record and point to IP Address with below configuration.
- Record Type: A (Host)
- Host: @
- Point to: 192.198.15.14 (Azure website IP Address)
If @ record in already present, then edit that record.
Add new CName record with below configuration.
- Record Type: CNAME (Alias)
- Host: www
- Point to: cloudfrontsdev.azurewebsites.net (Domain Name of Azure website)
Kindly edit this record if already present.
Steps 7: Add CNAME(Alias) record that will point to Azure website. This information is required by azure for verification purpose.
Add two CNAME(Alias) record given in Image.
- Record Type: CNAME(Alias)
Alias Name: awverify.www
Points to Host Name: awverify.cloudfrontsdev.azurewebsites.net - Record Type: CNAME(Alias)
Alias Name: awverify
Points to Host Name: awverify.cloudfrontsdev.azurewebsites.net
Steps 8: Save all changes by clicking on Save Zone File.
It might take 10-15 mins to update DNS entry.
Steps 9: Add domain name in manage domain section(Azure) and click on ok.
Reference
https://azure.microsoft.com/en-in/documentation/articles/web-sites-custom-domain-name/