Adding Custom Domain

Khizer Hayat 40 Reputation points
2024-12-20T08:57:39.0566667+00:00

Hi, I added a custom domain and also added TXT record to the DNS with the registrar IONOS. I let it propagate for few hours and tried to verify from Azure custom domains but got an error 'failed to verify domain name'. This is a brand new domain and not in use with any other Azure account. What can I do to resolve this issue?

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
707 questions
Microsoft Entra
0 comments No comments
{count} votes

Accepted answer
  1. FrankEscarosBuechsel-MSFT 575 Reputation points Microsoft Employee
    2024-12-20T09:49:24.81+00:00

    Hi @Khizer Hayat • Thank you for reaching out.

    I understand that custom domain validation is failing despite you having set the necessary TXT record.

    Are you able to share the domain name, I will also ping you a private message in case you do not want to share the domain on a public visible and indexable page for privacy reasons, this would help in working out where the problem exists.

    Usually it's either a mismatch or typo on the DNS record which can be validated with the following command, by replacing microsoft.com for your own domain.

    Resolve-DnsName -name microsoft.com -Type TXT 
    

    You can also check that no mistake indeed was made for using it in a different Azure account by calling the common OIDC endpoint in a browser of your choice:

    https://login.microsoftonline.com/yourdomainhere.com/.well-known/openid-configuration
    

    If the domain is not validated in our systems in any tenant then it should produce an output similar to the one below.

    User's image

    1 person found this answer helpful.
    0 comments No comments

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.