How to Add a Microsoft 365 Domain Without Moving Email Hosting
Question details
The user needs to add and verify a custom domain in Microsoft 365 while keeping their current email hosting provider, avoiding any name server changes.

- Product
- Microsoft 365
- Device & OS
- not provided
- Scenario
- Setting up a custom domain in the Microsoft 365 Admin Center for services other than Exchange Online.
- Observed behavior
- The Microsoft 365 setup wizard prompts the user to change their domain name servers or reports a DNS health error when attempting to configure custom records manually.
Ensure you have administrator access to your domain registrar's DNS management portal so you can manually add TXT and CNAME records.
Manually Add and Verify DNS Records
Bypass Microsoft 365's automated setup to manually verify your domain using a TXT record, leaving your MX records untouched.
To keep your email hosted with your current provider (such as Rackspace or Google Workspace), you must avoid changing your domain's name servers to Microsoft 365. Instead, you will use manual DNS management to add only the records necessary for the specific Microsoft services you plan to use.
Log in to the Microsoft 365 admin center, navigate to Settings, select Domains, and click on 'Add domain'. Enter your custom domain name.
When asked how you want to verify the domain, select the option to add a TXT record to your domain's DNS records. Copy the provided TXT value.
Open a new tab, log in to your DNS hosting provider or domain registrar, and create a new TXT record using the value copied from Microsoft 365. Save the changes.
Return to the Microsoft 365 admin center and click 'Verify'. Once verified, choose the option to manage your own DNS records manually instead of letting Microsoft set up your services.
On the DNS configuration screen, uncheck Exchange and Exchange Online Protection if you do not want Microsoft handling your email. Leave your existing MX record pointing to your current email provider and only add the CNAME or TXT records required for other services like Teams or MDM.

Simplify Your Work with WPS Office
If managing complex Microsoft 365 domain settings and expensive cloud subscriptions feels overwhelming, consider switching to WPS Office. It provides powerful standalone alternatives for Word, Excel, and PowerPoint without the need for intricate administrative setups.
- 1. Download the software: Visit the official WPS Office website and click the free download button for your operating system.
- 2. Install WPS Office: Run the downloaded installer and follow the simple on-screen instructions to set up the software.
- 3. Open and edit files: Launch WPS Office to immediately start creating new documents or opening your existing Microsoft Office files.

Frequently Asked Questions
Can I use Microsoft Teams with my custom domain if my email is hosted elsewhere?
Yes. You can use Microsoft Teams and other Microsoft 365 services by manually adding their specific CNAME and TXT records to your DNS provider, even while your MX records remain pointed to a third-party email host.
Why does Microsoft 365 show a DNS error when I leave my MX records untouched?
Microsoft's automated health check expects all recommended records (including the MX record for Exchange Online) to point to their servers. When you use manual DNS management to keep a third-party email provider, this mismatch triggers a warning that you can safely ignore.
Will changing my name servers to Microsoft 365 break my website?
Yes, if your website relies on your current name servers and you switch them entirely to Microsoft 365 without first migrating your A and CNAME records, your website will go down. This is why manual DNS management is recommended for complex setups.




