Exchange Connection Problems

How to Configure Split DNS for Exchange Online and External Websites

Jason MillerJason Miller Oct 16, 2026 869 views

Question details

Configure DNS settings to route emails to Exchange Online while maintaining an externally hosted website.

How to Configure Split DNS for Exchange Online and External Websites
Product
Exchange Online
Device & OS
not provided
Scenario
Migrating email services from IMAP to Microsoft 365 (Exchange Online, Teams, SharePoint) without migrating the existing web hosting provider.
Observed behavior
Requires specific split DNS configuration and careful mail-flow planning to ensure email delivers to Microsoft 365 while website traffic directs to the external web host.
Before you start

Ensure you have administrative access to your domain's DNS registrar and your Microsoft 365 Admin Center before making any changes to your routing records.

Solution 1Recommended

Configure Split DNS Records for Email and Web Traffic

Direct email traffic to Microsoft 365 using MX records while keeping your website's A record pointed to your external web host.

A split DNS setup allows you to use Microsoft 365 for email and collaboration tools while your website remains on a third-party host. You achieve this by managing your DNS records at your current registrar rather than transferring nameservers to Microsoft.

1
Access your DNS settings

Log in to your domain registrar or DNS hosting provider's control panel and navigate to the DNS management or Zone Editor section.

2
Update the MX Record

Change your existing MX record to point to Exchange Online. The value will typically look like 'yourdomain-com.mail.protection.outlook.com' with a priority of 0.

3
Add Autodiscover and SPF Records

Create a CNAME record for 'autodiscover' pointing to 'autodiscover.outlook.com' and a TXT record for SPF (e.g., 'v=spf1 include:spf.protection.outlook.com -all') to authorize Microsoft 365 to send emails.

4
Maintain your Website Records

Ensure your A record for '@' (root domain) and CNAME for 'www' remain unchanged, pointing to your external website's IP address or hostname.

Configure Split DNS Records for Email and Web Traffic
DNS Propagation: DNS changes can take anywhere from a few minutes to 48 hours to fully propagate across the global internet.
Free Microsoft Office alternative

Boost Productivity with WPS Office While Managing Your IT Infrastructure

Managing IT infrastructure like Exchange Online and split DNS is complex enough. Simplify your daily document tasks with WPS Office, a lightweight, free alternative to Microsoft Office that offers full compatibility with Word, Excel, and PowerPoint files without the heavy subscription costs.

  1. 1. Download the installer: Visit the official WPS Office website and click the free download button for your operating system.
  2. 2. Install the software: Run the downloaded setup file and follow the straightforward on-screen instructions.
  3. 3. Open and edit files: Launch WPS Office to instantly open, edit, and save your existing Microsoft Office documents.
Fully compatible with Microsoft Office formats (.docx, .xlsx, .pptx)Free and lightweight, consuming minimal system resourcesFamiliar user interface for a seamless, zero-learning-curve migrationBuilt-in PDF editing and powerful document collaboration tools
microsoft office alternative - wps office

Frequently Asked Questions

What is split DNS in the context of Microsoft 365?

Split DNS involves separating your domain's DNS records so that email services (like MX and Autodiscover) point to Microsoft 365, while your website records (like A and CNAME) remain pointed to your third-party web hosting provider.

Will changing my MX record to Exchange Online affect my website?

No. Changing your MX (Mail Exchanger) record only redirects incoming email traffic. As long as you do not alter your A or CNAME records, your website will remain online and unaffected.

What happens if I change my domain's nameservers directly to Microsoft 365?

If you change your nameservers to Microsoft 365, Microsoft takes over your entire DNS management. In this scenario, your website will go offline unless you manually recreate your external website's A and CNAME records inside the Microsoft 365 admin center.

How long does it take for split DNS configuration to take effect?

DNS propagation typically takes anywhere from 15 minutes to 48 hours. During this transition window, mail flow might experience minor inconsistencies depending on the TTL (Time to Live) settings of your previous records.