New: mailX now works inside ChatGPT. Try it →
Free MX Record Checker

MX Lookup: Check the MX Records of Any Domain

Enter a domain to see the mail servers that receive its email, with their priority and TTL. Find out who hosts a domain's email and spot MX errors in seconds.

Results

  • Free MX lookup
  • Live DNS results
  • No signup required

Watch: MX lookup in 2 minutes

Chapters

  • 0:00 Nearly 1 in 3 sending domains have no MX record
  • 0:14 mailX in 10 seconds
  • 0:25 What is an MX record? Host name and priority
  • 0:47 Live MX lookup: Google Workspace
  • 1:04 Microsoft 365, backup MX and no MX
  • 1:25 Data: 32% of sending domains have no MX record
  • 1:39 The same check inside ChatGPT
  • 1:53 3 MX mistakes to fix
  • 2:14 Check your MX records free

What does this MX lookup show?

Everything you need to confirm where a domain's email goes.

Mail server hostnames

Every MX record published for the domain: the servers that accept its incoming email.

Priority

The preference value of each server. Senders try the lowest number first and fall back to the others.

TTL

The time to live in seconds, as returned by the resolver. While a record is cached, this can be lower than the value set in your DNS zone.

Email provider

The hostnames reveal the provider: google.com for Google Workspace, mail.protection.outlook.com or mx.microsoft for Microsoft 365, zoho.com for Zoho Mail...

Missing MX detection

If the domain has no MX record, the result says so, which explains bounced or lost incoming email.

Live DNS answer

Each lookup queries DNS when you run it. After a change, cached values can take up to the old TTL to update.

How it works

How to check MX records

Five steps to confirm that a domain receives email where it should.

01

Enter the domain

Type the domain after the @, such as example.com. MX records live on the domain itself, not on www.

02

Run the lookup

mailX queries DNS and lists every MX record with its priority and TTL.

03

Identify the provider

Read the hostnames: they should belong to the email provider you pay for. Old servers left over from a previous provider are a common cause of lost email.

04

Check the priorities

The main server should have the lowest number. Backup servers get higher numbers. Equal numbers share the load.

05

Re-check after a change

After editing MX records, wait for the previous TTL to pass, then run the lookup again to confirm the new values are live.

What is an MX record?

An MX (Mail Exchanger) record tells the world which servers accept email for a domain. When someone sends a message to you@example.com, their mail server looks up the MX records of example.com and delivers the message to the server with the lowest priority number. If that server does not answer, it tries the next one.

Each MX record has two parts: a priority (also called preference) and a hostname. The hostname must be a name that has an A or AAAA record. It cannot be an IP address or a CNAME (RFC 2181).

MX records only control incoming email. They have no effect on where you send from. Sending is authorized with SPF, DKIM and DMARC, which you can check with the SPF, DKIM and DMARC checker.

MX records of a Google Workspace domain:

example.com. 3600 IN MX 1 smtp.google.com.

MX records of a Microsoft 365 domain:

example.com. 3600 IN MX 0 example-com.mail.protection.outlook.com.

Primary and backup servers:

example.com. IN MX 10 mx1.example.net.
example.com. IN MX 20 mx2.example.net.

What your MX records say about the email provider

MX hostnames are the fastest way to find out who hosts a domain's email. These patterns cover the most common providers.

MX hostname pattern and provider:

smtp.google.com or aspmx.l.google.com: Google Workspace
*.mail.protection.outlook.com or *.mx.microsoft: Microsoft 365
mx.zoho.com, mx2.zoho.com, mx3.zoho.com (or zoho.eu, zoho.in): Zoho Mail
mx01.mail.icloud.com, mx02.mail.icloud.com: iCloud Mail (custom domain)
*.secureserver.net: GoDaddy
mx00.ionos.com, mx01.ionos.com (or .de, .co.uk): IONOS
mx1.hostinger.com, mx2.hostinger.com: Hostinger
in1-smtp.messagingengine.com, in2-smtp.messagingengine.com: Fastmail
*.pphosted.com, *.mimecast.com: email security gateway in front of the real mailbox

Common MX record errors

What the lookup reveals and how to fix it.

No MX record

The domain cannot receive email reliably. Add the MX records your email provider gives you in your DNS host.

Old provider still listed

After a migration, an MX from the previous provider is still there. Some messages go to the old server and look lost. Remove it.

MX pointing to an IP or a CNAME

An MX target must be a hostname with an A or AAAA record. Replace an IP with a hostname, and do not use a CNAME target.

Wrong priorities

A backup server has a lower number than the main one, so it receives the mail first. Give the main server the lowest number.

Typo in the hostname

One wrong character and senders cannot find the server. Compare each value with your provider's instructions.

Null MX on purpose

A single MX with priority 0 and an empty target (shown as "." in DNS) is a Null MX (RFC 7505): the domain does not accept email. Fine for domains that never receive mail, a problem if it was a mistake.

How to look up MX records from the command line

You can run the same check from a terminal. Replace example.com with your domain.

If no MX line comes back, the domain has no MX record. Use mailX when you want the result without a terminal, or to share it with your IT team or email provider.

macOS and Linux (dig):

dig MX example.com +short

Windows (Command Prompt):

nslookup -type=MX example.com

Windows (PowerShell):

Resolve-DnsName example.com -Type MX

Reading your MX lookup results

What each result means and what to do next.

MX records found

The domain can receive email. Check that every hostname belongs to your current provider and that the main server has the lowest priority.

No MX record found

The domain has no mail servers declared. Add the MX records from your email provider, then check again after the TTL.

Invalid domain

The input is not a valid domain. Enter only the domain, such as example.com, without http:// or an email address.

Receiving works. What about sending?

MX records route incoming mail. SPF, DKIM and DMARC decide whether your outgoing mail reaches the inbox. Check them for free in one test.

MX Lookup FAQ

MX basics

What is an MX lookup?
An MX lookup queries DNS for the Mail Exchanger records of a domain. It shows which servers accept email for that domain, with their priority and TTL.
What does the MX priority mean?
Senders deliver to the server with the lowest priority number first. Higher numbers are backups. Servers with the same number share the traffic.
How many MX records should a domain have?
As many as your provider tells you. Google Workspace now uses a single smtp.google.com record, Microsoft 365 uses one, and other providers often publish two or more for redundancy.

Checking MX records

How do I check if my MX records are correct?
Run an MX lookup and compare each hostname and priority with your email provider's setup instructions. Remove any record left over from a previous provider.
How do I find out who hosts a domain's email?
Look at the MX hostnames. google.com means Google Workspace, mail.protection.outlook.com or mx.microsoft means Microsoft 365, zoho.com means Zoho Mail. A security gateway such as Proofpoint or Mimecast can sit in front of the real provider.
How long do MX changes take?
A new record is usually visible within minutes. A changed record can keep its old value until the previous TTL expires. Lower the TTL a day before a planned migration.

MX errors

Can an MX record point to an IP address?
No. The target must be a hostname that has an A or AAAA record. RFC 2181 also says it must not be a CNAME.
What happens if a domain has no MX record?
Senders then treat the domain itself as its mail server and try its A or AAAA record (the implicit MX of RFC 5321). That only works if the host runs a mail server, which is rarely the case for a website, so mail usually bounces. Any domain that should receive email needs MX records.
Do MX records affect email deliverability?
They affect receiving, not inbox placement of the mail you send. Some spam filters check that the sender's domain can receive replies, so a valid MX helps a little, but SPF, DKIM and DMARC matter far more.