What is the custom domain DNS entry used for in Azure AD - azure

To add a custom domain to Azure AD you are required to register the Azure AD DNS with your domain registrar. What does Azure AD actually do with this registration? Does it serve resources out of this domain (if so what) or is the registration only used to verify your ownership of the domain?

It is a TXT record, so it won't redirect traffic or anything. It is only used to prove you actually own the domain. By requiring you to enter a random piece of text in a DNS record, you show that you are able to modify DNS records for the domain.

Related

Custom domain for b2clogin.com/Frontdoor proxy and DNS issues

Per following article (https://learn.microsoft.com/en-us/azure/active-directory-b2c/custom-domain?pivots=b2c-user-flow) to verify custom domain for Azure B2C you need to create TXT record.
As an example if I want to handle login at login.mycompany.com, I need to create TXT record login.mycompany.com with value of MS=ms12345678. But this domain also have to be hosted on Azure FrontDoor and hence you also need to create CNAME record for login.mycompany.com pointing to <....>.azurefd.net.
Issue is that you can not have both records at the same time (TXT record and CNAME record for the same name). How is it supposed to work?
Please note that as a first step you have to verify your custom domain name with Azure AD B2C. Once it is done, you have to delete the DNS TXT record you created, this is mentioned in the documentation:
https://learn.microsoft.com/en-us/azure/active-directory-b2c/custom-domain?pivots=b2c-user-flow#step-1-add-a-custom-domain-name-to-your-azure-ad-b2c-tenant
Then you setup your custom domain on the Azure Front Door:
https://learn.microsoft.com/en-us/azure/active-directory-b2c/custom-domain?pivots=b2c-user-flow#step-3-set-up-your-custom-domain-on-azure-front-door
This is my final setup for the AD B2C custom domain on the Azure AD B2C side:
Here is the Azure Front Door frontend with my custom domain:
Here is DNS configuration in DNS Registrar:

Azure DNS CNAME records

I am trying to configure Auth0 custom domains with my azure web application. It is asking for a CNAME Record to be set.
I set this up in azure with a provided dns name, and set up the values as such:
but the verify button still does not work. i heard you may need to wait a few days for it to settle, but i waited all weekend with no luck. i saw in this post i may want to remove the NS and SOA types?
Wildcard and Naked CNAME records in Azure DNS
how can i verify this domain
As far as I know, you can not use the domain *.cloudapp.azure.com as the custom domain for your Auth0 as it is owned by Azure. You need to purchase a domain from the domain provider like Godaddy to configure your custom domain. Then you could validate that domain ownership.
You can't use Azure DNS to buy a domain name. Azure DNS is a hosting service for DNS domains that provides name resolution by using Microsoft Azure infrastructure. It's not necessary. You can selectly host your domain in Azure DNS.
For more references:
https://auth0.com/docs/custom-domains/auth0-managed-certificates#provide-your-domain-name-to-auth0

Delegate Subdomain to Azure via CNAME

the company I’m working for provided me a subdomain. test.mycomp.com . I want to add it to my azure web app via custom domain.
The azure system recommends a CNAME delegation and provided me the information to enter web-zeudz-staging.azurewebsites.net in the dns management as CNAME.
After doing so and verifiying via DNS Lookup, Azure always gives me „Domain Ownership Error“. What can I do to make this work?
Is your DNS provider also a CDN provider, for example cloudflare? If so, turn off the CDN/proxy function so it's a DNS only record and try again.
If you don't have any control over the CDN function you can use txt record validation.
Create your TXT record awverify.subdomain.test.mycomp.com with value web-zeudz-staging.azurewebsites.net and validate again. It should succeed.
There's also a CNAME awverify method but you need CDN disabled for that too.
I find it strange that your company doesn't have the option to enable/disabled CDN for any given DNS entry though.

How to perform third party Domain setup on Microsoft Azure?

I have set up AD Azure and since I have a domain from a third party hosting provider(re-seller) i needed to assign MX and TX values in order to verify the Domain.
Re-seller refused to manually setup the records in the domain registrar and provided a free shared hosting package for me to setup those values in the control panel which i did with no effort and successfully verified the domain name within Azure portal.
I had made all the wire up within azure portal to use the domain i had verified but when i browse y.com i get responses from the Re-seller server instead of Azure.
The only thing i had left to do is to change the NS records which the Re-Seller refused to do so - so far.
Please provide some details of how the request travels in this kind of Domain name setup and what measures should i take in order to use my domain in Azure hosted environment?
To bind a custom domain for your Azure app, you need to do three main steps to map the custom domain to your app( more detail refer here):
And if you also want to add a custom domain for Azure AD, you can refer this document.

Configuring Google Domain to point to Azure website

I have an site hosted on Azure that I am trying to point a domain from Google Domains to.
My current configuration is as follows:
Name Type Data
# A XXX.XXX.XXX.XXX
www CNAME history-podcasts.azurewebsites.net
awverify CNAME awverify.history-podcasts.com
I am following the instructions from here: Configuring a custom domain name for an Azure Website.
When I go to the Azure portal to Manage Domain and attempt to enter the url in DOMAIN NAMES, I get the following message:
A CNAME record pointing from history-podcasts.com to history-podcasts.azurewebsites.net was not found. Alternative record awverify.history-podcasts.com to awverify.history-podcasts.azurewebsites.net was not found either
When I go to the URL for the domain, I get the following message:
The website you have attempted to reach is not available in this Microsoft Azure Web Sites region. This could be due to one of several reasons:
The web site owner has registered a custom domain to point to the Microsoft Azure Web Site, but has not yet configured Azure to recognize it. Click here to read more.
When a site owner wants to use a custom domain with a Microsoft Azure Web Sites website, Azure needs to be configured to recognize the custom domain name, so that it can route the request to the appropriate server in the region. After registering the domain with a domain provider and configuring a DNS CNAME record to point to the site's Azurewebsites.net address (for example, contoso.azurewebsites.net), the website owner also needs to go to the Azure Portal and configure the site for the new domain. Click here to learn more about configuring the custom domains for a web site.
This is the same configuration settings I am currently using for several domains through Namecheap with Azure hosting and they work as intended.
EDIT:
To summarize, here are the steps you need to take:
1) Create CNAME record redirecting user from your domain to Azure specified domain using tools provided by your DNS hosting service
This step will ensure that when going to www.history-podcasts.com user will transparently be taken to history-podcasts.azurewebsites.net
Type: CNAME
Name: www
Value: history-podcasts.azurewebsites.net
IMPORTANT: Please note that it takes time for DNS servers to update their records therefore you should wait around 30 minutes before continuing.
2) Redirect your naked domain to subdomain using DNS hosting service tools
This step will ensure that when going to history-podcasts.com user will be redirected to www.history-podcasts.com
For Google Domains you can follow this guide here.
3) Add your domain to Azure Website
This step will assure Azure that you own the domain and you want your site to be reachable using specified domain name.
Login into https://manage.windowsazure.com/
Navigate Websites -> [Your Website] -> Configure
Scroll down to Domain names
Click Manage Domains (note that custom domains can only be used when in the Shared, Basic, or Standard modes)
Add your domain www.history-podcasts.com
At this point you should be able to reach your web site using both history-podcasts.com and www.history-podcasts.com domain names.
If your website requires HTTPS, you will have to take extra steps:
http://azure.microsoft.com/en-us/documentation/articles/web-sites-configure-ssl-certificate/

Resources