✨ Quick Checklist — Microsoft 365 Custom Domain DNS Records (2026)
- Mail Routing & Discovery:
MX(<domain-key>.mail.protection.outlook.com) +autodiscoverCNAME (autodiscover.outlook.com). - Mandatory Email Authentication:
SPFTXT (v=spf1 include:spf.protection.outlook.com -all), DKIM (selector1._domainkey&selector2._domainkeyCNAMEs), and DMARC (_dmarcTXT). - Device Management (Intune):
enterpriseregistration&enterpriseenrollmentCNAMEs.
When you add a custom domain in the Microsoft 365 Admin Center (Settings -> Domains), Microsoft verifies domain ownership with a TXT record (MS=msXXXXXXXX) and then expects the following public DNS records for Exchange Online, Microsoft Teams, and Microsoft Intune.
1. Exchange Online Mail Flow & Autodiscover Records
| Type | Host Name | Points to / Value | Priority / TTL |
|---|---|---|---|
| MX | @ | <domain-key>.mail.protection.outlook.com | Priority 0 / TTL 3600 |
| CNAME | autodiscover | autodiscover.outlook.com | TTL 3600 |
2. Email Security Records (SPF, DKIM & DMARC)
In 2026, bulk senders and major providers enforce strict SPF, DKIM, and DMARC alignment:
| Type | Host Name | Value |
|---|---|---|
| TXT (SPF) | @ | v=spf1 include:spf.protection.outlook.com -all |
| CNAME (DKIM 1) | selector1._domainkey | selector1-<domain-guid>._domainkey.<initial-domain>.onmicrosoft.com |
| CNAME (DKIM 2) | selector2._domainkey | selector2-<domain-guid>._domainkey.<initial-domain>.onmicrosoft.com |
| TXT (DMARC) | _dmarc | v=DMARC1; p=quarantine; rua=mailto:[email protected]; pct=100 |
Audit All Domains Automatically: Use our Audit SPF, DKIM & DMARC Across All M365 Tenant Domains PowerShell Script.
3. Microsoft Intune (MDM) & Legacy Teams/Skype CNAME & SRV Records
| Type | Host Name | Points to / Target |
|---|---|---|
| CNAME | enterpriseregistration | enterpriseregistration.windows.net |
| CNAME | enterpriseenrollment | enterpriseenrollment.manage.microsoft.com |
| CNAME | lyncdiscover (if used) | webdir.online.lync.com |
| CNAME | sip (if used) | sipdir.online.lync.com |
| CNAME | msoid (legacy) | clientconfig.microsoftonline-p.net |
| Type | Service / Protocol | Port / Weight / Priority | Target |
|---|---|---|---|
| SRV | _sip._tls | Port 443, Weight 1, Priority 100 | sipdir.online.lync.com |
| SRV | _sipfederationtls._tcp | Port 5061, Weight 1, Priority 100 | sipfed.online.lync.com |
Verify Public DNS Records via PowerShell
POWERSHELL
$Domain = "lab365.in"
Resolve-DnsName -Name $Domain -Type MX | Select-Object Name, NameExchange, Preference
Resolve-DnsName -Name $Domain -Type TXT | Select-Object Name, Strings
Resolve-DnsName -Name "autodiscover.$Domain" -Type CNAME | Select-Object Name, NameHost
Resolve-DnsName -Name "_dmarc.$Domain" -Type TXT | Select-Object Name, Strings
💬 Reader Comments & Feedback
Did this runbook help, or did Microsoft change a cmdlet or UI menu? Share your feedback below.
Leave a Comment or Report an Update