Others

Keep an External Website When Adding a Domain to Microsoft 365

John WilsonJohn Wilson Nov 25, 2026 868 views

Question details

The user needs to use a domain for Microsoft 365 email while keeping its public website with an external hosting provider.

How to Keep an External Website When Adding a Domain to Microsoft 365
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.
Before you start

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.

Solution 1Recommended

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.

1
Keep your current DNS provider

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.

2
Verify the domain

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.

3
Preserve website records

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.

4
Add 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.

5
Check the website and email

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.

Keep website DNS records and add Microsoft 365 email records
If you changed nameservers: The active DNS provider must contain both the website and Microsoft 365 records. If nameservers now point elsewhere, recreate the website records at the new provider or restore the previous nameservers.
Free Microsoft Office alternative

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.

Create and edit business documents while your domain and email remain with their chosen providersOpen and save Microsoft Office formats such as DOCX, XLSX, and PPTXUse a familiar interface for everyday office tasksWork with existing Office files without moving your website
microsoft office alternative - wps office

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.