Can You Add a TXT Record to an onmicrosoft.com Domain?
Question details
The user needs to add a custom DNS TXT record to an automatically assigned onmicrosoft.com domain to verify domain ownership for a third-party service.

- Product
- Microsoft Azure and Microsoft 365
- Device & OS
- not provided
- Scenario
- Setting up a proof of concept for an external organization service that requires domain verification via a DNS TXT challenge.
- Observed behavior
- Microsoft automatically verifies onmicrosoft.com domains but restricts tenant owners from manually editing DNS records, preventing the addition of custom TXT challenges.
Ensure you have global administrator access to your Microsoft 365 admin center or Azure Active Directory portal to review your current domain configurations.
Use a Custom Domain for External Service Verification
Because DNS settings for onmicrosoft.com domains are locked by Microsoft, you must use a custom domain that you own to pass external TXT record challenges.
Microsoft retains strict control over the DNS zones for all onmicrosoft.com domains to maintain security and seamless automatic verification within their own ecosystem. As a result, tenant owners cannot add custom MX, TXT, or CNAME records to these default domains.
To verify a domain with an external service (such as Zitadel), you need to configure a custom domain registered through a third-party registrar where you have full administrative access to the DNS zone settings.
Purchase a domain from a third-party registrar (e.g., GoDaddy, Namecheap) or log into the control panel of an existing domain you already own.
Navigate to the DNS management page of your custom domain at your registrar and add the specific TXT record challenge required by your external service.
If you also need this domain linked to your Microsoft tenant, log into the Microsoft 365 admin center, navigate to Settings > Domains, select 'Add domain', and follow the prompts to verify it using Microsoft's provided TXT records.

Simplify Your Daily Tasks with WPS Office
While you are setting up complex cloud infrastructures and managing DNS settings, keep your daily documentation running smoothly. WPS Office is a highly compatible, free alternative to Microsoft Office that meets all your everyday productivity needs.
- 1. Visit the WPS Website: Go to the official WPS Office website to download the latest version of the suite.
- 2. Install the Application: Run the lightweight installer and follow the quick on-screen prompts to set up the software on your device.
- 3. Start Creating: Open Writer, Spreadsheets, or Presentation to immediately start managing your documents with full Microsoft Office format compatibility.

Frequently Asked Questions
Why can't I edit the DNS settings for my onmicrosoft.com domain?
Microsoft acts as the domain registrar and DNS host for all onmicrosoft.com subdomains. To ensure system stability and automated service integration across their cloud environment, they do not grant tenant administrators access to manually edit these specific DNS zone files.
Can I use an onmicrosoft.com domain for a third-party proof of concept?
You can use the domain for internal Azure AD user provisioning and sign-ins. However, if the third-party platform requires you to prove domain ownership by adding a custom DNS TXT record, you cannot use the onmicrosoft.com domain and must supply a custom domain instead.
How do I add a new onmicrosoft.com domain in Azure?
You can add additional onmicrosoft.com domains through the Azure portal by navigating to Azure Active Directory > Custom domain names > Add custom domain. Enter the desired prefix and Microsoft will provision and verify it automatically.




