Check Microsoft 365 DNS records
lw_m365_dns_checkCompare a domain's DNS records to Microsoft 365 requirements and output the exact MX, SPF, DKIM, autodiscover and verification records to add or fix, formatted for Liquid Web DNS or Cloudflare.
Instructions
Compare a domain's live DNS against the records Microsoft 365 expects and output the exact records to add or fix, formatted for Liquid Web DNS (lw_record_create parameters) and for Cloudflare. Checks MX (.mail.protection.outlook.com, or the DNSSEC form ending in mx.microsoft), autodiscover CNAME to autodiscover.outlook.com, one SPF record with include:spf.protection.outlook.com (merged into any existing SPF), DKIM selector1/selector2 CNAMEs, the MS=ms######## verification TXT, and optionally Intune (enterpriseregistration, enterpriseenrollment) and legacy Teams/Skype records (sip, lyncdiscover, _sipfederationtls._tcp SRV). Also flags old MX hosts left beside Microsoft 365 and an msoid CNAME. The MX token and DKIM targets are tenant-specific: pass mx_value, dkim_selector1/dkim_selector2 and verification_txt from the Microsoft 365 admin center or Defender portal for an exact comparison; otherwise the tool checks the pattern and marks values to confirm. Based on Microsoft Learn: https://learn.microsoft.com/microsoft-365/enterprise/external-domain-name-system-records and https://learn.microsoft.com/defender-office-365/email-authentication-dkim-configure (checked 2026-11-23). Domain names are sent to the public RDAP service and DNS-over-HTTPS resolvers (Cloudflare by default, Google for comparisons). No Liquid Web credentials are used.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"domain": "<domain>"
},
"name": "lw_m365_dns_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Custom domain added to Microsoft 365, e.g. contoso.com. | |
| dns_host | No | Which format to output records in (default auto: picked from the domain's nameservers; both if unknown). | |
| mx_value | No | Exact MX target from the admin center, e.g. contoso-com.mail.protection.outlook.com. | |
| tenant_prefix | No | The tenant's initial domain prefix (contoso for contoso.onmicrosoft.com). Used to check DKIM targets. | |
| dkim_selector1 | No | Exact Selector1CNAME value from the Defender portal or Get-DkimSigningConfig. | |
| dkim_selector2 | No | Exact Selector2CNAME value. | |
| include_intune | No | Also check Intune enrollment CNAMEs (default false). | |
| verification_txt | No | Domain verification TXT from the admin center, e.g. MS=ms12345678. Only needed while adding the domain. | |
| include_teams_legacy | No | Also check legacy Teams/Skype for Business records: sip and lyncdiscover CNAMEs and the SIP federation SRV (default false). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No | ||
| status | Yes | ||
| context | No | ||
| preview | No | ||
| summary | Yes | ||
| warnings | No | ||
| next_page | No | ||
| next_step | No | ||
| truncated | No | ||
| expires_at | No | ||
| confirm_token | No |