Keep an External Website When Adding a Domain to Microsoft 365
Question details
The user needs to use a domain for Microsoft 365 email while keeping its public website with an external hosting provider.

- Product
- Microsoft 365
- Device & OS
- not provided
- Scenario
- A company is adding its existing domain to Microsoft 365 for email without moving its website.
- Observed behavior
- The website becomes unavailable when DNS records point only to Microsoft 365.
Sign in to the provider that currently manages your domain's DNS and obtain the website A or CNAME record values from your web host. In the Microsoft 365 admin center, open Settings > Domains and select your domain to find the required verification and email records.
Keep website DNS records and add Microsoft 365 email records
Use this approach to keep your existing web host while routing email to Microsoft 365.
In your domain registrar's nameserver settings, leave the existing DNS provider's nameservers in place if you want that provider to continue managing your records.
In the Microsoft 365 admin center, go to Settings > Domains, select Add domain, and follow the verification instructions. Add the provided verification TXT record in your DNS provider's record editor.
In the DNS record editor, keep or restore the A record for the root domain and the A or CNAME record for www using the values supplied by your web host. Do not replace these records with Microsoft 365 email records.
In Settings > Domains, open your domain's DNS instructions and add the listed Microsoft 365 MX, Autodiscover CNAME, SPF TXT, and any other required records at your DNS provider. Update an existing SPF record rather than creating a second SPF record for the same hostname.
Open both your root domain and www address in a browser, then send a test email to a Microsoft 365 mailbox. Allow time for DNS changes to propagate if the new records are not yet visible.

Work with Office files using WPS Office
WPS Office is a free, lightweight, easy-to-use alternative for working with documents, spreadsheets, and presentations. Its familiar interface and Microsoft Office format compatibility make it easier to move existing files, although it does not replace Microsoft 365 email or fix domain DNS settings.

Frequently Asked Questions
Do I need to move my website to use Microsoft 365 email?
No. Keep your website A or CNAME records pointing to your web host and add the Microsoft 365 email records at your active DNS provider.
Where can I find the Microsoft 365 DNS records for my domain?
In the Microsoft 365 admin center, go to Settings > Domains, select your domain, and open its DNS instructions to see the required records and values.
Why is my website unavailable after changing nameservers?
The new DNS provider may not have your website's A or CNAME records. Add the values supplied by your web host to the active DNS provider, or restore the previous nameservers.
Can I add a second SPF record for Microsoft 365?
Do not create a second SPF TXT record for the same hostname. Update the existing SPF record to include the authorized Microsoft 365 sending service while retaining any other legitimate senders.




