HomeEmail ToolsMX Record Lookup
Email Tool

MX Record Lookup

Lookup MX records for any domain. See mail server priorities and hosts to verify inbound email routing and provider configuration.

Priority
Lower is better
Mail tries lowest numbers first.
Use case
Email provider verify
Confirm you’re pointed correctly.
Waiting for input
Enter a domain, then press Check
How to Use

Use MX Record Lookup in 4 Steps

01
Enter domain
Type the domain you want to receive email on.
02
Lookup MX
We query MX records and extract priorities and hosts.
03
Verify provider
Make sure the MX set matches your email provider docs.
04
Fix and recheck
Update DNS and re-run until the expected MX set appears.

What are MX Records?

MX (Mail Exchange) records are DNS records that specify which mail servers accept inbound email for a domain. When someone sends an email to user@example.com, the sending mail server performs an MX lookup for example.com to discover where to deliver the message.

An MX record contains two values:

  • Priority (preference value) — a lower number means higher priority. The sending server tries the lowest-priority mail server first.
  • Mail server hostname — the FQDN (fully qualified domain name) of the mail server, such as aspmx.l.google.com.

Every domain that receives email must have at least one MX record. Without MX records, email cannot be delivered to the domain. Most email providers recommend two or more MX records pointing to different servers for redundancy — if the primary server is unreachable, delivery is attempted to the secondary.

Common Email Provider MX Records

Each email hosting provider uses a distinct MX record format. The table below lists the expected MX records for major providers.

ProviderPriorityMail Server Hostname
Google Workspace1aspmx.l.google.com
Google Workspace5alt1.aspmx.l.google.com
Google Workspace5alt2.aspmx.l.google.com
Google Workspace10alt3.aspmx.l.google.com
Google Workspace10alt4.aspmx.l.google.com
Microsoft 3650domain-com.mail.protection.outlook.com
Zoho Mail10mx.zoho.com
Zoho Mail20mx2.zoho.com
Zoho Mail50mx3.zoho.com
ProtonMail10mail.protonmail.ch
ProtonMail20mailsec.protonmail.ch
Fastmail10in1-smtp.messagingengine.com
Fastmail20in2-smtp.messagingengine.com
Mailchimp Mandrill10smtp.mandrillapp.com

If the MX records you see do not match the list above, your domain is routing email to a different provider than expected — or email is misconfigured.

MX Priority Explained

Priority values (also called preference values) control the order in which mail servers are tried:

  • Lower value = tried first. Priority 0 or 1 is the primary server.
  • Equal priorities mean the sending server load-balances across them randomly.
  • Higher priority values act as fallback servers — tried only if lower-priority servers are unreachable.
  • Microsoft 365 uses a single MX record with priority 0, as their infrastructure handles internal failover.

A correct Google Workspace setup has exactly 5 MX records with the priorities shown above. A correct Microsoft 365 setup has a single MX record matching *-com.mail.protection.outlook.com (the * is replaced with your tenant prefix based on your domain).

Common MX Record Problems

ProblemSymptomFix
No MX recordsAll inbound email bounces with 550 5.1.2 No MX recordAdd provider's MX records at DNS host
MX points to old providerMail delivered to wrong mailboxUpdate MX to current provider; wait for TTL
MX hostname does not resolveDelivery failures; Host unknown errorsEnsure mail hostname has A/AAAA record
Duplicate MX recordsMay deliver to wrong serverRemove any MX records not from current provider
Wrong prioritiesFallback server receives all mailMatch priorities exactly to provider documentation
SPF does not include MXMail flagged as spamAdd mx mechanism: v=spf1 mx ~all
Single MX with no redundancyDowntime during server maintenanceAdd secondary MX if provider supports it

CLI Commands

# Look up MX records for a domain
dig example.com MX +short

# Verbose MX lookup showing priority and TTL
dig example.com MX

# Query from a specific resolver (Cloudflare)
dig @1.1.1.1 example.com MX +short

# Windows equivalent
nslookup -type=MX example.com

# Verify the MX hostname resolves (check for A record)
dig aspmx.l.google.com A +short

# Test SMTP delivery path manually
nslookup -type=MX example.com 8.8.8.8

MX Records and Email Authentication

MX records work together with SPF, DKIM, and DMARC records to authenticate email:

  • SPF — uses the mx mechanism to authorise the servers listed in MX records as senders
  • DKIM — signing and verification are performed by the mail server the MX record points to
  • DMARC — depends on SPF and DKIM alignment; MX must be correctly set before DMARC can function

After verifying MX records, always check SPF, DKIM, and DMARC to ensure end-to-end email authentication is configured correctly.

Frequently Asked Questions

What does MX priority mean?
Lower numbers have higher priority. Mail servers try the lowest priority first and fall back to higher numbers if needed.
Do I need MX records to receive email?
Most domains need MX records to receive email. Some servers may fall back to A records, but MX is the standard and recommended.
Why do my MX hosts end with a dot?
DNS hostnames are often returned as fully qualified domain names (FQDNs) ending with a trailing dot.
Should I have multiple MX records?
If your provider supports it, multiple MX records improve redundancy and failover.
What if my MX records point to the wrong provider?
Update your MX records to match your current email provider’s documented MX set and wait for DNS caches to expire.
Tip

Lower MX priority numbers are tried first. Verify hostnames resolve and match your provider.

Free Newsletter

Get guides like this by email

DNS, email auth, and security playbooks delivered when they publish. No spam.