Christmas−30 % for 12 months with codeGet the offer →
  1. Home
  2. Free tools
  3. MX lookup
Free tool, no sign-up

MX lookup

MX records tell the whole world where to deliver your domain's email. This free MX lookup reads them for you in seconds: receiving servers, priorities, IPv4 and IPv6 addresses, mail provider detected, presence of a filter and errors that can block your mail.

  • Servers, priorities and IP addresses
  • Mail provider recognised
  • Common errors detected
MX lookup result: two receiving servers with their priority and their IPv4 and IPv6 addresses
2 active MXPriorities 10 and 20
Mail filteredChecked before the inbox
What the tool checks

Your MX records under the microscope

The lookup reads your domain's public DNS, without ever connecting to your servers, and translates each answer into plain English.

Servers and priorities

Up to ten MX records, sorted from the highest priority to the backup server, so you can see at a glance in which order senders deliver your mail.

IPv4 and IPv6 addresses

For each server, the A and AAAA records are looked up. A name that matches no address is flagged in red, because it cannot receive anything.

Forbidden aliases

An MX pointing to a CNAME alias breaks the standards, and some servers then refuse to deliver. The tool detects it and shows the name concerned.

Mail provider detected

The server names are compared with a list of known mail providers, such as Microsoft 365, Google Workspace, OVHcloud or Infomaniak. The name is shown as text, without a logo.

Filtered mail or not

The tool shows whether your emails go through a dedicated filter before your mailbox, or whether they go straight to your provider with only its built-in filters.

Special cases

No MX with fallback to the website address, a null MX that refuses all mail, and an SPF that does not seem to authorise the detected mail provider for your outgoing emails.

How it works

Check your MX records in four steps

Enter the domain

The domain of the email addresses, for example example.com, without @, without www and without https://.

Run the check

The tool queries the public DNS and retrieves your MX records, their priorities and each server's addresses.

Read the table

Check the servers, the mail provider detected and the filtering. Points in orange or red are explained.

Fix and test again

Edit the DNS zone at your host or registrar, wait for the TTL to expire, then run the check again.

What is an MX record?

An MX record, short for Mail eXchanger, is a line in your domain's DNS zone that indicates which servers receive the emails addressed to that domain. When someone writes to contact@example.com, their server does not know where to deliver the message. So it queries the DNS: “what are the MX records for example.com?”. The answer gives one or more server names, each with a number called the priority.

The MX only concerns receiving. Your outgoing emails take another path, controlled by SPF, DKIM and DMARC. That is why a domain can send emails without any problem and no longer receive any, or the other way round. A missing MX, a badly written one or one pointing to a server that no longer exists is enough to cut off your incoming mail, often without anyone noticing straight away: senders get an error message, you receive nothing.

MX records are managed in the domain's DNS zone, with the provider hosting that zone: often the registrar where the domain was bought, sometimes the website host or a separate DNS service. If you do not know who manages your zone, our whois tool shows the domain's registrar and name servers.

The MX lookup reads these records for you and makes them readable: which servers, in which order, with which IP addresses, at which mail provider, and with which errors, if any. It also tells you whether your mail goes through a dedicated filter before reaching your mailbox.

How an email finds your receiving server

Here is what a domain's MX records look like in a DNS zone:

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

The number 10 or 20 is the priority. The sending server first tries the MX with the lowest number. If it does not respond, it moves on to the next one. MX records with a higher priority number therefore act as backups. Two MX records with the same priority share the traffic: the sender picks one or the other at random, which spreads the load.

The server name, here mx1.example.com, must in turn match an IPv4 address (A record) or IPv6 address (AAAA record). That is the address where the message is finally delivered, on port 25. The value 3600 is the time to live (TTL), in seconds: it indicates how long other servers may keep the answer in memory before asking again.

A receiving server can have an IPv4 address, an IPv6 address, or both. Senders with an IPv6 connection often try that address first. A published but misconfigured IPv6 address can therefore cause delays or rejections that do not occur over IPv4. That is why the lookup shows both address families for each server.

If a receiving server is temporarily unreachable, the message is not lost straight away. The sender keeps it in a queue and tries again for several days, depending on its configuration. A missing MX, on the other hand, usually causes a quick error.

How to use the MX lookup

Enter the domain name that receives the emails, without @ or https://: for example example.com, not www.example.com. A domain's website and its email are two separate things, and MX records are published on the domain itself. Run the check: the result appears in a few seconds.

The tool only reads the public DNS. It never connects to your mail servers and never sends any email. It retrieves up to ten MX records, sorts them by priority, then looks up each one's IPv4 and IPv6 addresses, and checks that the name is not an alias. It also compares the server names with a list of known mail providers, such as Microsoft 365, Google Workspace, OVHcloud, IONOS, Infomaniak, Zoho Mail or Proton Mail.

A link to the result is provided so you can share it with your provider or your IT department. After changing your MX records, run the test again after a few minutes: the result is kept for five minutes, then the tool reads the DNS again.

How to read the MX lookup result

The table of receiving servers

Each row corresponds to an MX, from the highest to the lowest priority. You can see the priority, the server name and its IP addresses (four at most per server). If a row has no address, that server cannot receive any messages.

The mail provider detected

When a server name matches a known mail provider, its name is shown as text. This is only an indication, deduced from the server names: an unrecognised provider works just as well, it simply appears under its technical name. This detection mainly helps you check that a change of provider has actually been applied.

Filtering

The tool shows whether your emails go through a dedicated filter before your mailbox, or whether they go straight to your provider. In the second case, sorting spam and phishing relies entirely on the filters built into the mail service.

Points to watch

Below, colour-coded messages flag problems: an MX pointing to an alias, a server without an IP address, no MX at all, a null MX, or an SPF that does not seem to authorise the detected mail provider. Green indicates a compliant point, orange a point to review, red a fault that prevents or threatens receiving.

Common MX errors and how to fix them

An MX pointing to an alias (CNAME)

The standards (RFC 2181 and RFC 5321) require an MX to point to a real server name, not an alias. Some sending servers follow the alias anyway, others refuse to deliver. Replace the name with the one the alias points to, or create A and AAAA records directly on the name used.

A server that matches no IP address

This is almost always a typo, or a server deleted at the former provider. Another classic trap: forgetting the trailing dot in some DNS interfaces. If you write mx1.example.com without a dot in a field that expects one, the zone may turn it into mx1.example.com.example.com. Check the exact name with our DNS lookup tool.

No MX

Without an MX, the standard provides a fallback: the sender tries to deliver to the domain's A address, which is usually the web server. That server almost never accepts emails, and the message is rejected. The lookup flags this case as fragile. If the domain has neither an MX nor an address, it simply cannot receive emails.

The null MX

An MX with priority 0 pointing to a single dot (MX 0 .) is a null MX, defined by RFC 7505. It deliberately declares that the domain accepts no email. This is good practice for a domain used only for a website or registered to guard against typosquatting, but a serious error on a domain that needs to receive mail.

MX records from two mail providers mixed up

After a migration, the old MX records sometimes stay published alongside the new ones. If their priorities are close or identical, senders deliver sometimes to the old mail service, sometimes to the new one. The result: some messages arrive in mailboxes that nobody checks any more. The lookup table shows this immediately, with two different mail provider names. Remove the MX records that are no longer used, once the new mail service is ready.

A mail provider your SPF does not authorise

When you receive your emails at Microsoft 365, Google Workspace or OVHcloud, you usually send through the same service. If your SPF does not mention this service, your outgoing emails may be poorly authenticated. Check it with our SPF, DKIM and DMARC checker, which gives an A to F grade and the fix to apply.

Changing your MX records without losing emails

Changing mail provider or adding a filter means changing your MX records. Well prepared, it loses no messages:

  1. Prepare the new mail service: create the mailboxes and aliases before touching the DNS, so that every address already exists on arrival.
  2. Lower the TTL of your MX records to 300 seconds, at least a day in advance. Servers around the world will ask for the new value sooner.
  3. Replace the MX records with those of the new mail service, using exactly the names and priorities it provides.
  4. Follow the propagation with our DNS propagation tool, which queries public resolvers in several countries.
  5. Keep the old mail service active for a few days: messages may still arrive there while the old answers expire. Then raise the TTL again.

During the transition, an email arrives through the old or the new path, never through neither. Finally, send yourself a message from an outside address and analyse its route with our email header analyzer: it shows which servers it really went through.

Checking your MX records from the command line

The MX lookup does the work for you, but you can also query the DNS from a terminal. On Linux or macOS, the dig command gives the raw list:

dig MX example.com +short
10 mx1.example.com.
20 mx2.example.com.

You then need to check each server's addresses, one by one:

dig A mx1.example.com +short
dig AAAA mx1.example.com +short

On Windows, nslookup -type=mx example.com gives the same result. The advantage of the lookup is that it does all this in one go, detects aliases, recognises the mail provider and translates each anomaly into plain English.

The lookup does not connect to your servers: it only reads the DNS. To check that a receiving server actually responds and offers encryption, an administrator can open a test SMTP session from a machine whose outgoing port 25 is not blocked, which often rules out consumer connections:

openssl s_client -starttls smtp -connect mx1.example.com:25 -crlf

If the command displays the server's certificate and the negotiated TLS version, for example TLSv1.3, the server does accept encrypted connections on this MX.

MX and email protection: is your mail filtered?

Your MX records also say who sees your mail first. If they point directly to your mail service, each message is sorted by its built-in filters, designed to suit all their customers with shared settings. With a filtering service, the MX records point to its servers: each message is checked (sender, SPF, DKIM and DMARC, links, attachments) before being delivered to your usual mail service, which you keep as it is.

Beware of backup MX records at another provider: if they accept mail without filtering it, spammers target them directly to get around your protection. All your MX records must apply the same level of control. To go further on receiving, also check that your servers enforce encryption with our MTA-STS and TLS-RPT checker, and that their address is not on any list with the blacklist checker.

With Passmundi, a simple MX change is enough to put a complete filter in front of your current mail service, whether it is Microsoft 365, Google Workspace or your web host. Discover our email protection plans.

Key points

The most common MX situations

SituationEffect on receivingWhat to do
MX to a real name with an IPNormalNothing
MX to a CNAME aliasRejected by some sendersPoint to the real name
Server name without an addressNo delivery on this MXFix the name
No MX, A address onlyDelivery to the website, fragilePublish an MX
Null MX (MX 0 .)All mail refusedNormal if no email
Unfiltered backup MXFilter bypassedFilter all MX records
Frequently asked questions

MX records: your questions

How do I check a domain's MX records?

Enter the domain in the MX lookup, for example example.com. The tool queries the public DNS and shows each receiving server with its priority and its IPv4 and IPv6 addresses. It recognises the mail provider used, shows whether mail is filtered and flags errors: forbidden alias, server without an address, missing MX or null MX.

What does MX priority mean?

The priority is the order in which servers are tried. The sender first contacts the server with the lowest number, then moves on to the next one if it does not respond. MX records with a higher number therefore act as backups. Two MX records with the same priority share the traffic. The absolute value does not matter, only the order counts: 10 and 20 are equivalent to 1 and 2.

How long does an MX record change take to propagate?

It depends on the time to live (TTL) of the old record, from a few minutes to 24 hours, sometimes more. To speed things up, lower the TTL to 300 seconds a day before the change. During the transition, emails arrive through the old or the new server, they are not lost if the old mail service remains active for a few days.

Why am I not receiving emails when I can still send them?

Sending and receiving follow two different paths. You can send normally while your MX records are missing, badly written or pointing to a deleted server. This is common after a change of host or registrar, when the DNS zone was recreated without the MX records. The lookup shows immediately whether your MX records exist and lead to a server reachable at its address.

Can an MX record point to an IP address or a CNAME?

No. An MX must point to a server name, which itself has A or AAAA records. An IP address written directly in the MX is not valid. A CNAME alias is forbidden by the standards: some senders follow it, others refuse to deliver. The lookup flags this case and shows the name to fix.

What happens if a domain has no MX record?

The standard provides a fallback: the sender tries to deliver to the domain's A address, often the website's server. That server almost never accepts emails, and the message is rejected. If the domain has neither an MX nor an A address, no email can be delivered to it. For a domain that should receive nothing, publish a null MX instead.

What is a null MX?

The null MX, defined by RFC 7505, is written MX 0 followed by a single dot. It announces that the domain accepts no email. Senders then give up immediately instead of retrying for days. It is useful for a domain used only for a website or registered to guard against typosquatting, but it is an error on a domain that needs to receive mail.

The lookup does not recognise my mail provider, is that a problem?

No. The mail provider is recognised from the MX server names, using a list of known providers. A provider missing from this list works just as well: it is simply shown under its servers' technical name. What matters is that each MX has an IP address and is not an alias.

Do I need several MX records?

It is not mandatory, but it is recommended. Large mail providers such as Google Workspace supply several MX records for redundancy. If you add a backup MX at another provider, check that it applies the same filtering as the main server: a backup MX that accepts everything often serves as a gateway for spammers.

Is the MX lookup free, and does it store the domains tested?

The lookup is free and requires no sign-up, within the limit of 30 checks per visitor every 10 minutes. It only reads public DNS information, without connecting to your servers. The result is cached for 5 minutes to avoid repeating the same queries, then it is erased. No history of the domains tested is kept.

How do I check MX records with dig or nslookup?

In a Linux or macOS terminal, type dig MX example.com +short to get the list of servers and their priorities, then dig A followed by each server's name for its addresses. On Windows, use nslookup -type=mx example.com. The lookup runs all these queries in one go and also detects aliases and the mail provider used.

Does changing my MX records for a filter mean changing mail provider?

No. With a filtering service such as Passmundi, only the MX records change. Emails first arrive at the filter's servers, are checked, then delivered to your current mail service, whether that is Microsoft 365, Google Workspace or your web host. Your mailboxes, your addresses and your software stay the same.

The complete toolbox

All our free tools, in one place

25 free tools, no sign-up needed, to check your email, your domain and your website. Each one gives a clear result and the steps to follow.

Email and deliverability 10

SPF, DKIM and DMARC checkerEmail authentication
Free

An A to F grade for your domain, with the exact fix to publish for each issue.

  • SPF, DKIM and DMARC read and explained
  • DMARC policy and alignment
  • Fixes ready to copy
Open the tool
Domain security auditDomain security
Free

Free domain security check: SPF, DKIM, DMARC, MTA-STS, blacklists, certificate and lookalike domains. Get an A to F grade and fixes ready to copy.

  • A to F grade in 20 to 40 seconds
  • Fixes ready to copy
  • Free weekly monitoring
Open the tool
Email spam testDeliverability
Free

Send a message to a test address and get a score out of 100: authentication, reputation, content.

Open the tool
MX lookupReceiving
You are here

Where your mail arrives, in what order, and whether it goes through a filter before your inbox.

DMARC generatorAuthentication
Free

Your DMARC record in one minute, with the right policy to get started safely.

Open the tool
SPF generatorAuthentication
Free

A correct SPF built from your sending services, without exceeding the ten lookup limit.

Open the tool
Email header analyzerInvestigation
Free

Paste a message's headers: route, delays and authentication checks translated into plain English.

Open the tool
MTA-STS, TLS-RPT and BIMIAdvanced security
Free

Encryption enforced between servers, TLS reports, brand logo and DNSSEC in a single test.

Open the tool
Blacklist checkerReputation
Free

Is your IP address or domain on anti-spam lists? Thirteen lists checked.

Open the tool
Email signature generatorBrand image
Free

A professional signature in six steps, compatible with every mail app.

Open the tool

Domains and DNS 6

DNS lookupRecords
Free

All of a domain's records, A, MX, TXT, NS, CAA and the rest, on the resolver of your choice.

  • Every record type
  • A choice of seven public resolvers
  • Explanations for each value
Open the tool
DNS propagationDNS changes
Free

Is a change already visible everywhere? The answer from nineteen resolvers around the world.

Open the tool
Reverse DNS lookup (PTR)IP address
Free

The name associated with an IP address, checked in both directions, just as mail servers do.

Open the tool
Whois and RDAP lookupOwnership
Free

Registrar, creation and expiry dates, name servers and status of a domain or an IP.

Open the tool
Lookalike domain finderSpoofing
Free

Names close to yours that are already registered, which fraudsters could use against your customers.

Open the tool
Punycode converterAccented names
Free

Accented domains and the xn-- form, in both directions, with detection of misleading characters.

Open the tool

Websites and security 8

Speed testPerformance
Free

An A to F grade, Core Web Vitals, image-by-image loading and advice, on mobile and desktop.

  • Google metrics and server analysis
  • Request waterfall and page weight
  • PDF report to share
Open the tool
Cookie scannerGDPR
Free

Cookies before and after consent, banner, providers and a GDPR register ready to publish.

Open the tool
SSL certificate checkerEncryption
Free

Validity, issuer, chain, names covered and expiry date of a certificate, on any port.

Open the tool
HTTP headers and redirectsWeb server
Free

The redirect chain of an address and the grade of its security headers.

Open the tool
What is my IPNetwork
Free

Your public IP address, IPv4 and IPv6, its name, its operator and its country.

Open the tool
Internet speed testConnection
Free

Download and upload speed, latency and jitter of your connection, measured live in your browser.

Open the tool
IP and CIDR subnet calculatorNetwork
Free

Ranges, masks, subnets and number of addresses of an IPv4 or IPv6 network.

Open the tool
Password generatorSecurity
Free

Strong passwords and passphrases, created in your browser, never sent.

Open the tool

Migration and handy tools 1

Email migrationChanging host
Free

Copy all the messages from one mailbox to another, folders and dates included, without deleting anything.

Open the tool

Put a real filter in front of your mail service

One MX change is all it takes: Passmundi checks every email received, sender, links and attachments, then delivers it to your current mail service, without changing anything in your mailboxes.