CNAME record for a verified custom domain

leelGS 20 Reputation points
2023-08-02T13:34:00.3+00:00

I set up my custom domain successfully (verified & deployed) using the TXT and A records as supplied by the Azure portal.

However, my domain reg (WIX) requires CNAME input to be able to complete the link.

I have tried to reconfigure the custom domain in Azure and still get the TXT & A record values for verification.

How can I get the CNAME records from Azure to input in my domain registry?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,965 questions
{count} votes

Accepted answer
  1. Ben Gimblett 4,560 Reputation points Microsoft Employee
    2023-08-02T17:28:39.2966667+00:00

    Hi - OK

    So to illustrate. I have purchased a domain name "contoso.com" and I have created a web app called "contoso"

    The web app by default is addressable on the Microsoft owned default domain name and listens on "contoso.azurewebsites.net" therefore from a browser I could access "https://contoso.websites.net"

    By following the steps (as you have done) to add a custom name (in my example here "contoso.com") I'm achieving two things
    (1) I'm telling my web app to listen for incoming requests that have a host header matching "contoso.com" (as well as the default name

    (2) I'm confirming ownership of that domain (that is the bit with the TXT record)

    The final step is then to go to my public name provider (WIX in your case) and CNAME "contoso.com" to "contoso.azurewebsites.net"

    Hopefully that makes sense - obviously your host name and web app name will be different.

    WIX provide a support page with instructions on how to add a CNAME https://support.wix.com/en/article/adding-or-updating-cname-records-in-your-wix-account

    So if I was hosting with WIX my "hostname" would be "contso.com" and my "value" would be "contoso.azurewebsites.net" (I have never used WIX so hopefully I got that the right way around!). The "TTL" is "time to live" and you typically choose the default value (it denotes how long a DNS lookup should be cached before being refreshed)

    Once you've changed settings against a public DNS entry it does take time to propagate - there should be a note about that when you save the changes. You can use "dig" https://www.digwebinterface.com/ or a command line name lookup tool to confirm your hostname is resolving properly (and of course you can simply test in browser)

    Important note: Even after all these steps, if I want to access my website over SSL "https://contoso.com" then I'll need to ensure I also purchase a SSL cert which matches my host name ("contoso.com" in my example)
    There's a number of options for web apps explained here https://learn.microsoft.com/en-us/azure/app-service/configure-ssl-certificate?tabs=apex

    Hope this helps


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.