Applies to Product - Power Pages
What’s happening?
Customers are encountering issues while trying to configure a custom domain with CDN enabled. They receive errors prompting the creation of TXT records, which they are unable to locate in the CDN configuration or through their DNS hosting provider.
Reason:
The underlying cause of this is that CNAME and TXT records cannot be registered simultaneously on the same domain in the DNS server. This leads to conflicts when attempting to add both records.
Resolution:
To resolve this of configuring a custom domain with the necessary DNS records, follow these steps:
- Sign in to the Microsoft 365 admin center and select "Show all" > "Settings".
- Access your DNS hosting provider in a new browser tab or window and locate where you manage your DNS settings (e.g., Zone File Settings, Manage Domains, Domain Manager).
- Go to your provider's DNS Manager page and add the required DNS records as indicated in the admin center to your domain.
- If you need to register both CNAME and TXT records, consider the following:
- Register the CNAME record under a subdomain and the TXT record under the top-level domain to avoid conflicts.
- Alternatively, remove the existing CNAME record before adding the TXT record, or vice versa, to ensure that there are no duplicates.
- Verify the DNS records using the command:
- For CNAME: Resolve-DnsName -name YourDomainForPortals -Type CNAME
- For TXT: Resolve-DnsName -name YourDomainForPortals -Type TXT
- If you encounter a "DNS name does not exist" error, it may indicate that the CNAME DNS resource record for the domain name does not exist. Wait for some time for the changes to propagate if you have just added a CNAME with your domain provider.
- If there are any additional TXT records associated with the custom domain (other than the one provided by Microsoft), remove them to allow the custom domain addition to succeed.
