Configuring a custom domain name for a Microsoft Azure Web Sites

 

Configuring a custom domain name for a Microsoft Azure Web Sites

Rate This
  • Comments 6

Overview

I need to remember this for later. Therefore, I'll do a quick post about. I finally moved my web site to Azure WebSites. But now I want to register my custome domain of www.brunoterkaly.com. Some steps are missing for some docs I'm reading so I'll just document my jouney.

Prerequisites

An Microsoft Azure account. You will have a domain registrar. My domain (brunoterkaly.com) is registered with Network Solutions.

You also need a shared web site mode in place.

file0

Shared mode for a web site

The bummer is that each domain registrar is slightly different. But this post will certainly lead you in the right direction.

Providing a custom domain

Starting at the Azure Management Portal

This post starts at your Azure Web Site where you've deployed your web app.

  1. Login into your portal account and navigate to Azure Web Sites. Select DASHBOARD from the top menu bar.

    file1

    Azure Management Portal - Azure Web Sites

  2. Select MANAGE DOMAIN.

    file2

    Selecting Manage Domains

  3. We need the IP address. In our case, it is 23.99.0.12. Yours will be different. Copy it to the clipboard.

    file4

    Getting the IP Address

The Domain Registrar Portal

This could be one of many possible types. I am using the original Network Solutions but you may have GoDaddy or even someone else.

  1. Login into your domain registrar. Mine is Network Solutions. Perhaps yours is GoDaddy. So the user interface may not be identical. But the concept is the same.

    file5

    Managing your account

  2. Select EDIT DNS.

    file6

    Editing the DNS Settings

  3. It is time to edit the A Record. Now enter the IP address you obtained from the Azure portal for your Azure web site. Recall ours was 23.99.0.12.

    Note: the A record is used to translate from a domain name to an IPv4 address.

    file7

    Editing the A Record

  4. It is time to edit the CNAME record.

    file8

    Editing the CNAME

    Note: 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 either the .azurewebsites.net domain name of your Windows Azure web site of your Traffic Manager profile. Once created, the CNAME creates an alias for the .azurewebsites.net domain name. The CNAME entry will resolve to the IP address of your .azurewebsites.net domain name automatically, so if the IP address of the web site changes, you do not have to take any action.

  5. This is what the finished CNAME record looks like.

    file9

    Verifying the CNAME records

Returning back to the Azure portal

You may need to wait a couple of hours before this works.

  1. You many need to wait a couple of yours before returning back to the Azure portal and finish adding the domain names.

    file10

    Entering in the domain name into the Azure Portal

  2. Notice the correct mapping of my domain name working.

    file11

    Verifying your domain name

  3. Of course, my unmapped, original Azure Web site name still works.

    file12

    Viewing the original Azure-assigned domain name

Conclusion

I hope this helps you. I spent way, way too much time figuring this out. That's why it is a post now.

  • Thanks I did this with GoDaddy

  • Hi,

    I have an azure website which has the custom domain pointing to GoDaddy, now I have another domain in Network Solutions and did the everything I can from webforwarding to the above method you mentioned, azure is not verifying my network solutions domain. Any thoughts?

  • Thanks Bruno for your Article this worked for me

  • Thank you somuch Bruno for sharing such a great information.I got to learn a lot from yours blog.And it helped me a lot.

  • Thank you for your post! I couldn't really figure it out from azure help documents.

  • It’s very useful blog your site thanks provide blog commentshttp://www.myindiatourism.com

    All visitor use to check domain

Page 1 of 1 (6 items)
Leave a Comment
  • Please add 7 and 5 and type the answer here:
  • Post