Email DNS Check

EMAIL PROVIDER DNS

Microsoft 365 DNS setup and checker

Check a Microsoft 365 domain against the public Exchange Online records. The checker looks up both DKIM selectors and the Outlook Autodiscover alias.

Reviewed by Mira John Updated

Microsoft 365 DNS check

Microsoft 365 portal and documentation

Microsoft 365 DNS records

MX
@

Use your tenant’s <token>.mail.protection.outlook.com target and the priority shown in Microsoft 365 Admin Center.

SPF
@

Include spf.protection.outlook.com in the single SPF TXT policy when Exchange Online sends for this domain.

DKIM
selector1._domainkey and selector2._domainkey

Publish both CNAMEs from Microsoft Defender. Copy each target exactly.

Autodiscover
autodiscover

For direct Exchange Online, point the CNAME to autodiscover.outlook.com.

DMARC
_dmarc

Publish one policy. Use reports and test messages to verify alignment before applying enforcement.

Fix Microsoft 365 DNS records

Update Exchange Online MX

Open Domains, select the domain, and copy the MX token and priority from DNS records. Change the MX at the authoritative DNS host. For a managed gateway, compare the configured inbound route before cutover.

Update Exchange Online SPF

Copy the Microsoft include from the domain’s DNS records. Merge it with existing authorized senders in the envelope domain’s single SPF TXT record.

Configure the two Defender DKIM aliases

Open DKIM, select the domain and copy both CNAMEs. Publish both in DNS, then enable signing in Defender. Check the active selector in a received message. Keep the second alias for rotation.

Set the Outlook Autodiscover alias

Check the domain’s Exchange Online DNS records. For direct Exchange Online, set autodiscover CNAME to autodiscover.outlook.com. Use the designated namespace for hybrid deployments.

Set the DMARC policy

Edit the single _dmarc TXT record in the DNS zone. Check the policy that applies to the From domain. Use aggregate reports and verify alignment for each sending service before moving to quarantine or reject.

Check mail and Outlook separately

Send a message from an external inbox to test MX and send one back to inspect authentication. If mail works but Outlook setup fails, check the Autodiscover result and compare the published alias with your Exchange design.

Verify SPF, DKIM and DMARC on a received message.

An MX change can reroute or interrupt inbound mail. Monitor MX records with DNS Notify.

Check from the command line

Replace the example domain and selector with your own.

Resolve-DnsName -Name example.com -Type MX
Resolve-DnsName -Name selector1._domainkey.example.com -Type CNAME
Resolve-DnsName -Name selector2._domainkey.example.com -Type CNAME
Resolve-DnsName -Name autodiscover.example.com -Type CNAME

Related provider checkers

Google Workspace DNS setup

Check Gmail MX, SPF, DKIM and DMARC for Google Workspace. Diagnose missing or legacy records and jump to the relevant Google Admin settings.

cPanel DNS setup

Check cPanel MX, IPv4, IPv6, SPF, DKIM and DMARC. Take DNS findings to Email Routing, Email Deliverability or Zone Editor.