A X
A X

Reputation: 1056

How to use Azure Web App + Azure DNS for root domain?

I'm trying to do something pretty simple. I have a domain on godaddy. I want to use Azure Dns to host the domain and connect it to an azure website.

I have it working for www.mydomain.com with the CNAME approach. However I cannot get the root domain, i.e. my domain.com to work with this approach. I tried adding an * A record but that didn't work. I also tried to do CNAME with @ but that didn't work either.

Does anyone know how to get the root domain to work? This seems pretty basic but there is no documentation and it is not obvious.

Thanks

Thanks for feedback on this one!

Upvotes: 0

Views: 1358

Answers (3)

Jonathan Tuliani - MSFT
Jonathan Tuliani - MSFT

Reputation: 1178

You can set up a DNS 'A' record in Azure DNS to point to the IP address listed for the site in the Web Apps portal (as per the screenshot provided by an earlier answer). The Web Apps team provide the IP address for precisely this purpose, and they know that they can't change these IP addresses because DNS entries would break.

Note that there's no need to use a wildcard record (name = '*'). You should instead use an A record at the domain apex (name = '@', or if using the Azure Portal you can also leave the name blank).

Upvotes: 0

Alex Belotserkovskiy
Alex Belotserkovskiy

Reputation: 4062

If you need to create the isolated deployment with the static IP, take a look at the Service Environment. The reference first and second.

As you mentioned Azure DNS, i assume that you refer to the Azure DNS service. If so, then it is possible if you have the needed access. Reference for the DNS zones.

Regarding your question about www and CNAME, there are some nuances that should be taken into account and set up. Please refer to that post.

Upvotes: 1

Rajasekar
Rajasekar

Reputation: 129

If your hosted your WebAPP in free website plan didn't have any option for adding * A record. You have to Change your web App plan to at least Shared Plan instead of free Plan.enter image description here

Upvotes: 0

Related Questions