EMAIL ESSENTIALS

How to Check MX Records for Google Workspace and Microsoft 365

Check Google Workspace and Microsoft 365 MX records, compare mail server priorities and troubleshoot missing or outdated email routing.

Mail exchange records tell sending mail systems where to deliver email for a domain. If your address is person@example.com, begin by querying MX at example.com. Looking up the website hostname www.example.com can answer a different question.

Run a useful MX check

  1. Open the Bulk MX Checker and paste the email domains, one per line.
  2. Optionally enable expected-record comparison to check an intended routing set.
  3. Choose a resolver and select Check MX. The tool also inspects exchange A/AAAA addresses.
  4. Compare the returned exchange hostnames and preferences with your mail provider’s current setup instructions.
  5. Export the results if you need a record of what that resolver returned at that time.

Do not paste full email addresses. The checker validates domain names, and sending an address to DNS would not test the mailbox anyway.

Understand the preference number

An illustrative MX response could look like this:

10 mx1.example.com.
20 mx2.example.com.

These are examples, not verified live records. The lower preference is normally tried first. The second exchange may be used when delivery to the preferred one cannot proceed. Equal preferences do not imply a single fixed order. DNSBatch sorts returned MX values by their numeric preference while preserving the complete values in display and export.

The exchange must be a hostname, not an IP address. To inspect its addresses, run an A or AAAA lookup for the exchange hostname itself. That remains a DNS inspection: it does not connect to the mail service or attempt delivery.

Recognize a null MX record

The value 0 . deliberately declares that the domain does not accept mail. This is useful for domains that should never receive email. A null MX should be the only MX record at that name. If you expect working mail but see it, review the domain’s intended configuration with the mail administrator.

Null MX is defined by RFC 7505. Do not automatically replace it: it may be an intentional operational decision.

No MX record is not the same as NXDOMAIN

With NOERROR and no MX records, the DNS name can still exist. SMTP has fallback behavior involving address records when no MX exists, so “no MX” alone is not proof that all mail delivery is impossible. Configure the explicit MX records your mail provider requires instead of relying on assumptions about that fallback.

With NXDOMAIN, the resolver reports that the queried name does not exist. Check spelling and the exact email domain. With SERVFAIL, investigate resolution or DNSSEC before assuming the mail provider has removed your account.

Compare Google Workspace and Microsoft 365 MX records

For Google Workspace, the current standard setup uses smtp.google.com with priority 1. Google also supports its legacy aspmx records; a working older setup does not need replacing solely because it uses those names. Confirm your intended route using Google’s MX setup instructions.

Microsoft 365 uses a domain-specific target under mail.protection.outlook.com. Get the assigned value from your admin center rather than constructing it from a guessed domain token. Microsoft’s DNS reference explains the target and preference.

In DNSBatch, group domains by their intended MX set and enable expected-record comparison. Exact comparison includes preferences; hostname comparison answers a narrower question. A security gateway can be the visible routing destination even when mailboxes live on one of these platforms. Review the actual exchange names instead of treating a provider label as proof of the mailbox service behind them.

Audit Microsoft 365 MX records across multiple domains

A multi-domain audit starts with the expected route for each domain, not a generic Microsoft hostname. Collect the assigned destination and preference from the appropriate admin center, plus any intentional gateway or hybrid-routing design. A visible security gateway can be correct even when the final mailboxes use Microsoft 365.

  1. Paste up to 500 email domains into the Bulk MX Checker for an initial inventory. Leave expected comparison off while collecting routes with different intended values.
  2. Export the completed results with their actual exchanges, preferences, addresses, resolver and time. A provider hint helps organize review but cannot confirm account activation or ownership.
  3. Compare each domain’s result with its assigned routing instructions in your audit worksheet. Keep mailbox-domain spelling separate from the provider’s assigned MX target.
  4. To use DNSBatch’s expected comparison, run groups that share an identical intended set. One expected set applies to the whole run; domain-specific Microsoft 365 targets often require separate comparisons.
  5. Use exact mode when preferences matter. Hostname-only mode can match while a preference is wrong, so it is not a substitute for a complete routing check.
Illustrative finding What to investigate
Returned target equals this domain’s assigned target and preference Confirm service-side setup and controlled delivery separately
Target resembles Microsoft 365 but belongs to another domain’s configuration Obtain the exact assigned destination; a matching provider label is insufficient
Correct target plus an old provider exchange Review whether the additional route is part of an approved design
Lookup times out before routing can be assessed Keep the finding incomplete; do not label it a missing MX record

These are hypothetical review cases, not live customer findings. Use the same process for Google Workspace or another mail service, following that provider’s actual assigned configuration. Preserve the baseline and exception owners in the bulk DNS audit checklist, and use the missing MX workflow for successful empty answers.

After a mail-provider change

Compare both public resolvers. A different answer can reflect cached DNS data rather than a new configuration error. The old record’s TTL matters; reducing TTL after a change does not instantly remove older cached copies. Keep the prior mail service available during a planned transition when your operational setup allows it.

Avoid mixing old and new provider records unless the providers explicitly support the resulting delivery design. Preference numbers select mail routes; they do not migrate mailboxes or synchronize messages. If DNS hosting is also moving, use the nameserver migration checklist to preserve the complete zone.

What an MX lookup cannot verify

Correct MX records do not prove that a mailbox exists, that SMTP is reachable, that a message will avoid spam filtering, or that SPF, DKIM and DMARC are correct. Use the mail provider’s logs and delivery diagnostics for those questions. This website does not send test mail or probe mail servers.

For the underlying routing rules, see SMTP address resolution in RFC 5321, section 5.

If the result contains no mail route, use the no MX record found checklist to distinguish the wrong name, an empty response, Null MX and a failed lookup. For sending-side issues after a migration, inspect SPF dependencies and DMARC policy configuration separately from the inbound MX route.