Why onmicrosoft.com Domains Only Allow TXT DNS Records
Question details
Administrators are unable to add custom CNAME, MX, or SPF records to default onmicrosoft.com domains because only TXT record options are available.

- Product
- Microsoft 365
- Device & OS
- not provided
- Scenario
- Managing DNS records for a Microsoft 365 tenant.
- Observed behavior
- The system only allows the addition of TXT records for the default onmicrosoft.com domain, restricting other custom DNS record types.
Ensure you have global administrator access to your Microsoft 365 admin center and access to the DNS management portal of a third-party domain provider.
Add and Verify a Custom Domain
Since onmicrosoft.com domains restrict custom DNS entries, you must add a custom domain to manage CNAME, MX, SPF, and other record types.
Microsoft designs the default 'onmicrosoft.com' domain for initial setup and internal routing. It intentionally limits custom DNS configurations to prevent routing conflicts. To gain full control over your DNS settings, you need to connect a domain you own.
Log in to the Microsoft 365 admin center as a Global Administrator.
Go to 'Settings' and select 'Domains' from the left-hand menu.
Click on 'Add domain' and enter the name of your custom domain (e.g., yourcompany.com).
Follow the setup wizard to verify domain ownership by adding the provided TXT record to your DNS hosting provider.
Once verified, you can manage and add any required CNAME, MX, or SPF records directly through your DNS provider's portal.

Looking for a Lightweight Office Suite Alternative?
While managing complex Microsoft 365 setups and domains can be time-consuming, your everyday document work doesn't have to be. WPS Office provides a free, lightweight, and highly compatible alternative to Microsoft Office, allowing you to seamlessly create, edit, and manage documents without the administrative hassle.

Frequently Asked Questions
Can I bypass the restriction and add a CNAME record to my onmicrosoft.com domain?
No, Microsoft explicitly restricts adding custom CNAME, MX, or SPF records to default onmicrosoft.com domains. This limitation is by design and cannot be bypassed.
What is the primary purpose of the default onmicrosoft.com domain?
The onmicrosoft.com domain serves as your initial fallback domain. Microsoft 365 uses it for behind-the-scenes routing, SharePoint URLs, and as a default email routing address before you configure a custom domain.
Are there any automatically created CNAME records for the default domain?
Yes, Microsoft 365 automatically provisions certain essential CNAME records for the onmicrosoft.com domain internally, but administrators cannot manually view, add, or edit these custom CNAME records.




