Entra · Knowledgebase

KB - Failed to verify domain name - Entra ID

· 2 min read · Entra, Knowledgebase

This is a knowledge base item. Hope it will help you someday.

The issue#

When adding a custom domain to Entra ID, you are unable to get it verified. The error:

Unable to verify domain name. Ensure you have added the record above at the registrar for ‘yourdomain.com’, and try again in a little while. Click here for more information.

Failed to verify domain name ‘yourdomain.com’

Screenshot showing Entra ID custom domain verification troubleshooting (step 1) Screenshot showing Entra ID custom domain verification troubleshooting (step 2)

The solution#

Now, assuming you’ve added the correct DNS record (which can be tricky sometimes), the error doesn’t reveal much detail here. And that’s why we need to dig a bit deeper to understand the exact reason.

Try verifying the domain again, but now with your browser developer tools running. Make sure it records network events, which includes API calls.

Screenshot showing Entra ID custom domain verification troubleshooting (step 3)

Now, explore the response of that API call, and it will tell you the exact reason why verification failed.

Screenshot showing Entra ID custom domain verification troubleshooting (step 4)

If you see something like this:

JSON
        "errorDetail": "Domain verification failed with the following error: 'Error in DNS verification. code=InternalError'."

Reach out to your DNS registar for help, because you either did not add the record, or you misconfigured it.

In my case, my domain was already added to another tenant.

Screenshot showing Entra ID custom domain verification troubleshooting (step 5)

If this is the case, you probably want to find out in wich tenant your domain is registered. That can be done using this website:

Find your Microsoft Azure and Office 365 tenant ID - What is my tenant ID?

Screenshot showing Entra ID custom domain verification troubleshooting (step 6)

Hope that helps!

If not, you learned a new skill today. Never let the Entra portal fool you; always peek behind the curtain.

Stay safe!

Comments

Comments load when you scroll here.