How to Replace Microsoft 365 Onmicrosoft.com Domain with a Custom Domain
Question details
The user needs to replace the default Microsoft 365 onmicrosoft.com address with a custom domain for enterprise applications like email, Teams, and Outlook.
- Product
- Microsoft 365
- Device & OS
- not provided
- Scenario
- Setting up a custom business domain in Microsoft 365 to replace the default domain for professional email routing and account sign-ins.
- Observed behavior
- Microsoft 365 assigns an onmicrosoft.com address by default, which must be transitioned to a verified custom domain by updating DNS records with the domain host.
Ensure you have administrative access to your Microsoft 365 admin center and the login credentials for your domain registrar (such as Wix or GoDaddy) to manage your DNS records.
Add and Verify Your Custom Domain in Microsoft 365
This solution guides you through adding your custom domain, verifying ownership, and configuring the required DNS records to route your email correctly.
Before updating your MX, CNAME, and TXT records, ensure you are fully ready to route emails to Microsoft 365 to prevent any interruption to your current business email service.
Log into the Microsoft 365 admin center, navigate to 'Settings', and select 'Domains'. Click on 'Add domain' and enter your custom domain name.
Choose the option to add a TXT record to your DNS host provider (e.g., Wix). Copy the provided TXT value and add it to your registrar's DNS settings to verify ownership.
Create the matching user address or alias in your active users list. Set this new custom domain address as the primary email address.
When you are ready to switch your email traffic, add the MX, CNAME, and additional TXT records provided by Microsoft 365 into your domain registrar's DNS settings.
Looking for a Cost-Effective Alternative to Microsoft 365?
Managing enterprise Microsoft 365 setups can be complex and costly. Consider WPS Office as a free, lightweight, and easy-to-use alternative that offers powerful word processing, spreadsheet, and presentation tools without the heavy subscription fees.
- 1. Visit the WPS Office Website: Go to the official WPS Office website to find the free download link.
- 2. Download the Installer: Click the 'Download WPS Office Free' button to get the installer for your operating system.
- 3. Install and Start Using: Run the installer, follow the on-screen instructions, and start opening your Microsoft Office files instantly.

Frequently Asked Questions
Will I lose access to my business email when adding new MX records?
If you are migrating from another service like Google Workspace, you must migrate your email separately through IMAP or manual export before updating your MX records. Changing MX records immediately redirects new incoming mail to Microsoft 365.
Why is my domain status showing as unhealthy in Microsoft 365?
This typically happens if the DNS records haven't fully propagated yet or if you are viewing an outdated status cache. Refresh the DNS status in the admin center or wait up to 24 hours for the changes to apply.
Can I use Wix as my DNS host for Microsoft 365?
Yes, you can use Wix or any other domain registrar. You will need to log into your Wix account to manually add the necessary TXT, MX, and CNAME records provided by Microsoft 365.




