How can I configure a sub domain for a site hosted on azure?

August 22, 2016 2.3k views
DNS DigitalOcean Ubuntu

I already have configured subdomains which are resolved by my droplet and the are working excellent.

But now what i'm willing to do, is to point a subdomain to an Azure Web Application but i don't understand quite much about how to achieve this.

What I did (with no results) is to create a CNAME register with my sub domain name to my azure web app domain. For example:

my-sub.domain.com. 1800 IN CNAME azure-webapp.azurewebsites.net.

How should I work this out?

1 comment
  • Hi @patorodriguez10 Creating a CNAME is exactly what you want to do in this case. Sometimes DNS can take awhile to propagate. Are you still experiencing problems or does your subdomain resolve now?

2 Answers

@asb @ryanpq Thanks for the answer guys! Finally the CNAME settings where fine. I made some more research and then I figured out I just had to activate the "custom domain" feature on the corresponding azure Web App Service. And that, with the cname, did the trick!

Thank you both again!

You can find more information on setting up DNS records via the DigitalOcean control panel here. It does sound like you have set up the correct records, is your subdomain resolving now?

This article explains how to manage your DNS records using the DigitalOcean Control Panel and can help you decide if DigitalOcean's DNS management tools are right for your situation.
Have another answer? Share your knowledge.