Skip to content
1.1MS-102Fundamental
Est: ~15 minsReviewed: 2026-09

Microsoft 365 Custom Domains & Tenant Health

Add and verify custom domains, configure service DNS and email authentication, and monitor Microsoft 365 service health without relying on stale DNS targets.

Tags:#Microsoft 365#Custom Domains#DNS#SPF#DKIM#DMARC#Service Health#MS-102
01

Overview

A Microsoft 365 custom domain must be added to the tenant, verified through public DNS, and configured for every service that will use it. Verification proves control of the DNS namespace; it does not automatically configure Exchange Online, Teams, Intune, identity, third-party senders, or email authentication.

DNS records must be created at the domain's authoritative DNS provider. The registrar and DNS host can be different. For example, a domain registered at one provider can use Cloudflare nameservers, in which case Microsoft 365 records belong in Cloudflare.

Changing the tenant's default domain affects defaults for newly created objects. It does not automatically rename existing users, groups, aliases, SharePoint URLs, or application identifiers.

---

02

Domain Onboarding Sequence

  1. Inventory all services that currently use the domain:
  • websites and subdomains
  • mailboxes and aliases
  • third-party mail senders
  • federation or application redirect URIs
  • certificates and DNS validation records
  1. In the Microsoft 365 admin center, add the domain.
  2. Copy the exact TXT verification record Microsoft displays.
  3. Create the TXT record at the authoritative DNS host.
  4. Wait for public DNS propagation and select Verify.
  5. Add only the Microsoft 365 service records required for the intended workload.
  6. Validate mail flow and email authentication before changing the default domain or primary addresses.
  7. Keep the original onmicrosoft.com domain available for recovery and service dependencies.
TEXT
Microsoft 365 admin center (https://admin.microsoft.com)
└── Settings > Domains
    ├── Add domain
    ├── Verify ownership
    ├── Review DNS records
    └── Set as default where appropriate

---

03

DNS Records

Use the values shown in the tenant because service targets and tenant identifiers can differ.

RecordPurposeImportant notes
TXT verificationProves domain ownershipTemporary verification record can normally remain without affecting mail flow.
MXRoutes inbound mailLower preference value is preferred. Remove legacy MX records only after migration planning.
SPF TXTAuthorizes sending sourcesPublish one SPF record per sending domain and include all legitimate senders. Multiple SPF records cause evaluation failure.
CNAME/SRVService discovery and client configurationCreate only the records required by the tenant's current setup wizard.
DKIM CNAMEDelegates signing-key selectors to Microsoft 365Copy both selector targets exactly from the Defender/Exchange configuration for the domain. Do not hard-code an old target pattern.
DMARC TXTDefines alignment policy and reportingStart with monitored reporting, fix legitimate senders, then move deliberately toward quarantine/reject.

A subdomain that sends mail needs its own authorization/authentication design. Do not assume the parent domain's SPF record automatically covers every sending subdomain.

---

04

SPF, DKIM, and DMARC

SPF

Start from the current Microsoft guidance and add every approved third-party sender without exceeding SPF DNS-lookup limits.

TEXT
v=spf1 include:spf.protection.outlook.com -all

The example is valid only when Microsoft 365 is the sole authorized sender. Marketing, ticketing, ERP, scanners, and application relays might require additional includes or dedicated subdomains.

DKIM

  1. Open the email-authentication settings in the Microsoft Defender portal.
  2. Select the custom domain.
  3. Create the two CNAME records shown for selector1 and selector2.
  4. Wait for DNS resolution.
  5. Enable DKIM and confirm outbound messages include a passing aligned DKIM signature.

DMARC

DMARC evaluates alignment between the visible From domain and SPF and/or DKIM authentication domains.

TEXT
_dmarc.example.com TXT "v=DMARC1; p=none; rua=mailto:dmarc@example.com; pct=100"

Use p=none for initial visibility, analyze aggregate reports, correct all approved senders, and then implement quarantine or reject according to the organization's risk decision. A p=none record monitors; it does not stop spoofing.

Security Caution

Enforcing DMARC before inventorying legitimate third-party senders can reject valid business mail. Conversely, leaving DMARC indefinitely at p=none provides reporting but no receiver-side enforcement request.

---

05

Mail-Flow Verification

After DNS changes:

  • send inbound and outbound messages through representative paths
  • inspect message headers for spf=pass, dkim=pass, and dmarc=pass
  • test aliases and shared mailboxes
  • confirm third-party systems use supported authenticated submission or relay
  • check Exchange Online message trace and Defender Explorer where licensed
  • verify no legacy MX or connector creates unintended routing
Interactive Topology & Workflow
Connect-ExchangeOnlinedefault
Stage 1
Flow & Verification Handshake
Get-AcceptedDomain |default
Stage 2
Flow & Verification Handshake
Select-Object DomainName, DomainType, Defaultdefault
Stage 3
Flow & Verification Handshake
Get-DkimSigningConfig |default
Stage 4
Flow & Verification Handshake
Select-Object Domain, Enabled, Status, Selector1CNAME, Selector2CNAMEdefault
Stage 5

PowerShell output complements public DNS and message-header testing; it does not prove that every external sender aligns.

---

06

Service Health and Message Center

TEXT
Microsoft 365 admin center
└── Health
    ├── Service health
    └── Message center
  • Service health shows active incidents, advisories, affected services, status history, and tenant-specific impact where available.
  • Message center announces planned changes, retirements, feature rollouts, and required administrator actions.

For automation, Microsoft Graph service communications can query health-overview, service-announcement, and message-center data with the documented permissions. Do not build monitoring around undocumented HTML scraping or assume the portal retains every historical item indefinitely.

Operational monitoring should:

  1. distinguish Microsoft incidents from local DNS/network/identity failures
  2. record incident ID and update timestamps
  3. subscribe the correct administrators to notifications
  4. track message-center items with owners and due dates
  5. avoid reporting a service as healthy merely because no API result was returned

---

07

Troubleshooting

SymptomLikely causeAction
Domain verification failsTXT record is at the wrong DNS host, wrong name/value, proxy/flattening issue, or propagation is incompleteQuery authoritative and public resolvers, confirm nameservers, and copy the exact Microsoft value.
Inbound mail still reaches old providerMX cache/priority or old connectorConfirm authoritative MX records and message headers; allow migration coexistence only when designed.
SPF returns PermErrorMultiple SPF records, syntax error, or more than 10 DNS-producing lookupsMerge into one record and simplify approved sender paths.
DKIM cannot be enabledCNAME targets or selectors do not match the tenantUse the exact values displayed for the domain and verify public CNAME resolution.
DMARC fails despite SPF passSPF authenticated domain does not align with visible From domainEnable aligned DKIM or redesign the third-party sender/return path.
New users receive wrong suffixDefault domain or user-creation workflow is not configured as expectedReview tenant default and provisioning rules; existing objects require explicit updates.
Service-health API returns no dataPermission, consent, endpoint, or service issueTreat as monitoring failure, not proof of health; validate in the admin center.

---

08

Production Practices

  • Keep DNS ownership, registrar, nameservers, emergency access, and renewal contacts documented.
  • Protect registrar and DNS-provider accounts with phishing-resistant MFA.
  • Use low TTLs only during controlled migrations, then restore normal caching.
  • Separate bulk/application mail onto dedicated subdomains when it simplifies reputation and authentication.
  • Publish SPF, enable DKIM, and progress DMARC toward enforcement.
  • Review accepted domains, connectors, aliases, and third-party senders regularly.
  • Assign Message center actions and test service-health alerting.

---

09

MS-102 Exam Notes

Exam Blueprint & High-Yield Traps
  1. Domain verification uses public DNS and only proves ownership.
  2. DNS records belong at the authoritative DNS provider, not necessarily the registrar.
  3. SPF authorizes senders; DKIM signs mail; DMARC evaluates alignment and requests receiver policy.
  4. One sending domain should have one SPF record.
  5. Service health covers incidents; Message center covers planned changes and administrator actions.

---

10

Official Documentation