The Microsoft 365 admin centre shows the exact values for your tenant. Typically you need an MX record pointing to your tenant’s mail endpoint, a CNAME for autodiscover, and an SPF TXT record including spf.protection.outlook.com. Enable DKIM in Microsoft Defender and add the two DKIM CNAME records it provides, then publish a DMARC record.
Business email
Microsoft 365: required DNS records
MX, autodiscover and SPF for Microsoft 365.