MX Lookup Tool

Look up MX (Mail Exchange) records for any domain. See mail server hostnames sorted by priority, resolved IP addresses, whether each hostname resolves, and detected email provider — for diagnosing email delivery and verifying inbound mail routing.

MX Record Lookup

What are MX Records?

MX (Mail Exchange) records specify which mail servers are responsible for receiving email on behalf of a domain.

Each MX record has a priority value (lower numbers = higher priority). Mail servers attempt delivery starting with the lowest priority number.

Multiple MX records provide redundancy - if the primary server is down, email is delivered to backup servers.

Popular Domains

Understanding MX Priority

0-10Primary

Highest priority mail servers. Email is delivered here first.

10-20Secondary

Backup mail servers. Used if primary servers are unavailable.

20+Tertiary

Additional backup servers or specialized routing.

Email Troubleshooting Tips

No MX Records Found

Domain is not configured to receive email, DNS records haven't propagated yet, or there's a DNS configuration error.

Hostname Does Not Resolve

The MX record points to a hostname with no A/AAAA record, so senders cannot find an address to deliver to. Fix the hostname or add its address records.

Email Delivery Issues

Check that MX records point to correct servers, verify priority values are set appropriately, and ensure DNS propagation is complete (can take 24-48 hours).

Multiple Servers with Same Priority

This is normal and provides load balancing. Sending servers will randomly choose between servers with equal priority.

About MX Lookup Tool

The MX Lookup Tool fetches the Mail Exchange records for any domain — the DNS records that tell sending servers where to deliver inbound mail. Results show every MX server sorted by priority (lowest = preferred), the resolved IP addresses for each, whether the hostname resolves, and automatic detection of common email providers (Google Workspace, Microsoft 365, Zoho, ProtonMail, etc.). Pairs with the SPF Checker, SMTP Test, and Trace Email tools for a complete email-infrastructure audit.

Why use a MX Lookup Tool?

MX records control where your inbound mail goes. A wrong priority order, missing record, or stale entry pointing at a long-decommissioned server is a common cause of 'why are emails to our domain bouncing?'. Use the tool to verify your MX is correct after a Google Workspace / Microsoft 365 migration, to identify which provider a vendor's domain uses (useful for support routing), or to diagnose why mail to a particular domain isn't being delivered.

Who is it for?

Email administrators verifying mail-server configuration, IT teams migrating between Google Workspace, Microsoft 365, and other providers, support engineers diagnosing 'we're not receiving emails' tickets, security analysts identifying who hosts a target domain's mail, and developers integrating with provider-specific email APIs (where knowing the MX provider helps choose the right SDK).

How to use the tool

1

Enter the domain (e.g., example.com — protocol/www/path are stripped automatically)

2

Click 'Lookup MX Records' to query DNS (results are cached for 5 minutes; use 'Check again now' to bypass the cache)

3

Read the records sorted by priority — lowest number = first contacted

4

Check the IP column to verify the mail server is using expected infrastructure

5

Check the status badge (green = the mail server hostname resolves to an address, red = it does not; no connection to the server is attempted)

6

Note the detected Email Provider banner if one matches (Google, Microsoft, etc.)

7

Copy individual records or export the full result as JSON for documentation

Key Features

Priority-sorted results

MX records are returned in priority order (lowest first), the order receiving servers actually use.

IP resolution per server

Each MX hostname is resolved to its current A/AAAA records — useful for spotting MX servers pointing at decommissioned infrastructure.

Resolution check

Each MX hostname is checked for DNS address records and marked Resolves or not. The tool does not connect to the mail server, so it can't tell you whether port 25 is open.

Email provider detection

Recognizes six major providers (Google Workspace, Microsoft 365, Zoho, ProtonMail, Amazon SES, Cloudflare) by their characteristic MX hostnames — useful for support routing and choosing provider-specific tooling.

URL normalization

Paste a URL with protocol, www, port, or path — the tool strips everything down to the bare domain before querying.

JSON export

Download the complete result as JSON to attach to runbooks, tickets, or DNS-change documentation.

Common Use Cases

Verifying a Google Workspace / Microsoft 365 migration

Scenario: You just migrated email from one provider to another and need to confirm the new MX records are live and correctly prioritized.

✓ One lookup confirms all 5 Google MX records (or 1-2 Microsoft records) are present and in the right priority order. Catches the common 'forgot to remove old MX' mistake which causes intermittent dual-delivery.

Diagnosing 'we're not receiving emails from a vendor'

Scenario: A vendor is sending you mail that isn't arriving. You suspect MX is wrong on your side.

✓ Look up your domain — confirm MX is correct and pointing where it should. If everything looks right, the problem is downstream (anti-spam, mailbox routing) and you can focus the investigation there.

Identifying a vendor's email provider for support routing

Scenario: You're supporting a customer whose email address is at acme.example.com and need to know if they're on Google Workspace, Microsoft 365, or self-hosted.

✓ Provider detection tells you instantly. Determines which support article to send them, which API quirks to expect, which MX-format examples are relevant.

Auditing a domain's email infrastructure as part of a security review

Scenario: Security review of a vendor or acquired domain — you want to know what mail providers they're using and whether MX records are sane.

✓ Quick visual on infrastructure ownership, plus JSON export for the audit artifact. Combine with SPF Checker results for the full email-auth picture.

Pre-cutover validation for new email setup

Scenario: You're about to flip MX from old provider to new. Want to confirm the new records are correct BEFORE making the change.

✓ Run the check against both the old and new providers. Once you cut over, re-check to confirm propagation. Avoids the panic of 'we cut over and now nothing works.'

Accuracy

Standard DNS MX query — matches what real sending mail servers will see when they look up your domain.

Privacy

The domain is sent to Toolsana's API, which runs the DNS lookup. It may appear in server logs, and the result is cached for 5 minutes (use 'Check again now' for a fresh lookup).

Uptime

Requests go through Toolsana's Cloudflare edge to our API.

Frequently Asked Questions

How do I look up the MX records for a domain?

Type the bare domain (example.com, not a URL or an email address) and run the lookup. The tool asks DNS for the domain's MX records and lists each mail server with its priority, the IP addresses its hostname resolves to, and a Resolves / Does not resolve badge. It does not open a connection to the servers, so a resolving host can still refuse mail. Results are cached for 5 minutes; if you've just changed DNS, use 'Check again now' for a fresh query, and remember resolvers elsewhere may keep the old record until its TTL expires.

What does MX priority mean?

Lower number = higher preference. Sending mail servers try the lowest-priority MX first; if it's unreachable they fall back to the next. Multiple servers at the same priority distribute load. Typical setups use priorities like 10, 20, 30 for primary/secondary/tertiary, or several at priority 10 for round-robin.

Why does Google Workspace return 5 MX records?

Google publishes 5 MX servers (at priorities 1, 5, 5, 10, 10) for redundancy across their infrastructure. All are valid; the priority structure ensures Smartest mail flow under load. If you're missing any of the 5, your migration setup is incomplete.

Can I have a domain without MX records?

Yes — and it's appropriate when the domain doesn't receive mail. If you don't want anyone to be able to email `noreply.example.com`, publish a 'null MX' record (`. 0`) to explicitly say so. Receiving servers will reject mail to that domain rather than retrying. More secure than just leaving MX blank.

Why do I see two MX records that look almost identical?

Common with Google Workspace (multiple ALT MX servers at priority 5) and Microsoft 365 (geographic redundancy). Both are healthy. Worth checking that the priorities and hostnames match the provider's published MX setup exactly.

Does this tool see my email or mail content?

No. It only queries DNS for MX records and their address records. No connection to the mail server is made, no SMTP commands are sent, and no message data is exchanged. The domain is sent to Toolsana's API, which runs the DNS queries; it may appear in our server logs, and the result is cached for 5 minutes.

What does it mean when a mail server doesn't 'Resolve'?

The MX record points to a hostname that has no A or AAAA record, so sending servers have no address to deliver to. Fix the hostname in the MX record or add address records for it. A server that does resolve may still be down or firewalled; this tool only checks DNS and never connects to port 25 (use the [SMTP Test](/tools/smtp-test/) to try a real send).

How does MX relate to SPF, DKIM, DMARC?

MX controls inbound mail (where mail sent TO your domain goes). SPF, DKIM, DMARC control outbound authentication (how receivers verify mail FROM your domain). They're independent — but a complete email setup needs all of them correctly configured. Use this tool plus the SPF Checker, Trace Email, and SMTP Test for the full picture.

Technical Specifications

Supported Formats

  • ✓MX record lookup via DNS
  • ✓A/AAAA resolution for each MX hostname
  • ✓Provider detection: Google Workspace, Microsoft 365, Zoho, ProtonMail, Amazon SES, Cloudflare
  • ✓URL normalization (strips protocol, www, port, path)
  • ✓JSON export

Limits & Performance

  • •File Size: Single domain per check
  • •Validations: Live DNS (cached for 5 minutes)
  • •Response Time: Typically 300-2000ms depending on number of MX servers
  • •Browsers: All modern browsers

Pro Tips

  • After any MX change, re-check later. DNS propagation isn't instant — different recursive resolvers may have stale records for hours, and this tool caches results for 5 minutes (use 'Check again now' to bypass).
  • If migrating providers, set up the new provider's MX BEFORE removing the old one. Then lower the old MX's priority (e.g., from 10 to 30) so new mail goes to the new provider while old mail still gets accepted.
  • Publish a 'null MX' (`. 0`) on subdomains that don't receive email (e.g., www, api, static). Prevents bounce-backs from spam targeting these subdomains.
  • Document your MX setup in a runbook. After a year, no one remembers why MX 5 points where it does.
  • When investigating delivery problems, run MX Lookup → SPF Checker → Trace Email in that order. MX confirms inbound is right; SPF confirms outbound is authorized; Trace Email confirms a specific message's path.

Share This Tool

Found this tool helpful? Share it with others who might benefit from it!

💡 Help others discover useful tools! Sharing helps us keep these tools free and accessible to everyone.

Support This Project

Buy Me a Coffee