Free Email Checker Free Email Checker
Security Records

What Does an MX Record Actually Do? A Beginner’s Guide

What Does an MX Record Actually Do? A Beginner’s Guide

In short

  • An MX (Mail Exchange) record tells the world which servers accept email for a domain. If a domain has no usable route for mail, every message sent to it fails, whatever else is configured correctly.
  • Each record has a preference number and a hostname. Lower numbers are tried first; higher numbers are fallbacks. Records with the same number are shared at random.
  • The target must be a hostname that resolves to an IP address. It cannot be a bare IP address, and it must not be an alias (CNAME).
  • An MX record only describes where mail comes in. It does not make your outgoing mail trusted and it does not prove that a mailbox exists. Those are the jobs of SPF, DKIM, DMARC, reputation and the receiving server's own checks.
  • When mail suddenly bounces after a provider change, the MX records are the first thing to check, and the check takes under a minute.

Most people never look at their domain's DNS until something breaks. Then a bounce message arrives with a code nobody recognises, and someone mutters that it is probably the MX record. Sometimes that is right. This guide is meant to make sure you know why, and how to confirm it yourself instead of guessing. You can follow along with the free MX lookup tool, and the guide on Why Are My Emails Bouncing? A Practical Troubleshooting Guide covers the bounce side of the same problem from the sender's point of view.

The aim here is practical depth. You will see exactly how a sending server finds yours, what each field means, what the standards say happens when records are missing, what Google and Microsoft currently ask you to publish, how to read and test your own records with free tools, and how to switch providers without losing mail. Where a fact comes from a standard or a provider's help page, it is named in the Sources list at the end, with the month it was checked.

The Free Email Checker MX lookup tool listing the mail servers published for a domain
The MX lookup tool shows every mail server a domain publishes, in the order a sending server will try them.

What an MX record is

DNS, the internet's directory, stores many kinds of records for each domain. An A record says which IP address a website lives at. A TXT record can hold an SPF policy. An MX record answers one narrow question: when someone sends email to this domain, which server should receive it?

The email address itself carries no server information. In jane@example.com, the part after the @ is only a domain name. A sending server has to look that domain up, find its MX records, and connect to the host they name. The procedure is defined in the SMTP standard, RFC 5321, and the record type itself dates back to the early DNS specification, RFC 1035. The details have been refined over the years, but the core idea has not changed in decades.

Two things follow from this design, and both explain a great deal of everyday confusion. First, the mail server does not have to be at the same company, or even the same continent, as the website. The website's address comes from the A record; the mail route comes from the MX record; they are looked up separately and never interfere with each other. Second, the MX record is a statement made by the domain owner and published to everyone. Nobody verifies it for you. If it points somewhere wrong, senders will faithfully deliver to the wrong place.

The parts of an MX record

An MX record has five parts as it appears in a DNS zone, though only two of them are about mail routing itself:

Anatomy of an MX record showing the name, TTL, class and type, preference number and target hostname, with the rule that the target must not be an IP address or an alias
Read a record from left to right: whose mail, how long to cache it, the preference, and the host that receives the mail.
FieldExampleWhat it means
Nameexample.com (often shown as @)The domain or subdomain whose mail this record routes
TTL3600How many seconds resolvers may cache the answer before asking again
Class and typeIN MXIN is the internet class; MX marks it as a mail-routing record
Preference (priority)10A number from 0 to 65535. Lower is tried first
Target (mail server)mx1.example.netThe hostname of the server that accepts the mail

Two details deserve emphasis. First, the target is a hostname, never an IP address. That hostname needs its own A (or AAAA) record so the sender can find the actual machine. Second, the record applies to the exact name it is published under. An MX record for example.com does not automatically cover mail.example.com or support.example.com. If you want to receive mail at a subdomain address such as help@support.example.com, that subdomain needs its own MX records.

Different DNS panels label these fields differently. You may see "Host", "Name" or "Alias" for the first field, "Priority", "Preference" or "Distance" for the number, and "Value", "Points to" or "Mail server" for the target. A leading @ usually means "the domain itself". The labels vary; the meaning does not.

What happens when someone sends you an email

It helps to follow a single message from start to finish. A sender types hello@example.com and presses send. Their mail server does roughly this:

  1. It takes the domain from the address (example.com) and asks DNS for its MX records.
  2. DNS returns the list, for instance preference 10 pointing at mx1.example.net and preference 20 pointing at mx2.example.net.
  3. The sender sorts the list by preference and looks up the IP address of the lowest-numbered host.
  4. It opens an SMTP connection to that IP address and offers the message.
  5. If the connection fails or the server says "try later", it moves to the next host on the list. If every host fails, it queues the message and retries for a while, and eventually sends the sender a bounce.
Diagram of mail delivery: the sender asks DNS for MX records, sorts them by priority, finds the host's IP address and opens an SMTP connection, falling back to the next host on failure
The whole route in four steps. Steps one to three happen in DNS; step four is the first time the receiving server speaks.

Notice what is missing from that story. Nobody checks whether the mailbox hello exists at the DNS stage. The MX lookup only finds the door. Whether anyone lives behind it is decided later, when the receiving server answers the SMTP conversation. That distinction is the reason email verification works the way it does, and we come back to it below.

It also explains why MX records have nothing to do with how you send. Your own outgoing mail leaves through whatever server your provider or application uses, normally over a separate submission connection, which uses its own standard and its own port. The MX record is consulted by other people's servers when they write to you. A domain can have perfect MX records and still be unable to send a single message, and the reverse is equally true.

How priority works, and what it does not do

Preference is a primary-then-backup order. The lowest number is the first choice, and higher numbers are used only when earlier ones cannot be reached. The standard tells senders to randomise the order of records that share the same number, which spreads the load. That is the only built-in load balancing MX offers.

A small worked example. A company publishes:

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

Under normal conditions every message goes to mx1. One afternoon mx1 is down for maintenance. Sending servers fail to connect, try mx2, and that server accepts the mail and holds it until mx1 returns. Nobody notices anything except a short delay. That is the entire reason for having more than one record.

Diagram of MX failover: the sender tries the lowest preference host first, finds it down, and delivers to the higher numbered backup which holds the mail
With mx1 unreachable, the sender moves to mx2. When mx1 returns, mx2 passes the held mail on.

The numbers themselves carry no meaning beyond their order. Ten and twenty behave exactly like one and two, or zero and one hundred. What matters is which is lower. The only special value in practice is zero, which a few providers use for their primary host and which the null MX record (explained next) uses for a different purpose.

There are three trade-offs worth knowing before you add a backup of your own.

  • Backups are weaker doors. A backup server is rarely tuned, so its filtering is often weaker than the primary's. Spammers know this and sometimes deliver to the lowest-priority host on purpose, hoping to slip past the stricter one. If you run your own backup MX, it needs the same spam filtering and the same recipient checks as the primary.
  • Hosted providers already handle redundancy. Large providers spread incoming mail over many machines behind their hostnames. For most small organisations using a hosted service, a home-made backup record adds more risk than it removes.
  • Senders may not respect your order. Well-behaved servers follow the preference numbers, but nothing forces a sender to. Treat MX preference as a request, not an access control. If a backup must never receive mail, do not publish it.

One more rule protects against mail loops. If a server finds itself listed as an MX for a domain, it should only hand the mail to hosts with a lower preference number than its own. When a server is listed as an MX but is not actually configured to accept mail for that domain, you get the classic error that mail "loops back to myself". The cure is always the same: either configure the server to accept the domain, or remove it from the MX list.

When a domain has no MX record

This is where the standards have two surprising rules, and a third state that confuses people because it looks like one of the first two.

Decision diagram: with MX records the sender uses them; with no MX but an address record it treats the host as an implicit MX; with a null MX the domain refuses mail immediately
Three cases: real MX records, no MX at all, and an explicit null MX. Each ends differently for the sender.

Rule one: the implicit MX. If a domain publishes no MX record at all but does have an A or AAAA record, RFC 5321 says the sender should treat that address as if it were an MX with preference 0. In practice this means a plain website host will sometimes receive email by accident. It also means "no MX record" does not always equal "cannot receive mail". It equals "mail will be tried at the web server's address". The web server is usually not listening for mail, so the message bounces anyway, but only after the sender has retried for a long time. RFC 7505 notes that such delivery is typically attempted for around a week before the sending server gives up. A typo domain with a website can therefore leave a sender waiting days for the failure notice.

The flip side of rule one matters just as much: if any MX record exists, the sender must not fall back to the plain A record. A domain with a broken MX and a working website is not rescued by its website. This catches people out after migrations, when an old MX is deleted, a new one is mistyped, and everyone assumes the A record will quietly pick up the slack. It will not.

Rule two: the null MX. A domain that does not accept mail can say so explicitly with a record defined in RFC 7505:

example.com.   3600  IN  MX  0  .

That single dot means "this domain accepts no mail". Senders that understand it stop immediately and bounce with a clear status instead of retrying for days. RFC 7505 suggests the status 5.1.10 ("recipient address has null MX") for a rejected recipient. The standard also says a domain with a null MX must not publish any other MX record alongside it.

There is one important limit. The same RFC says that mail systems should not publish a null MX for any domain they use in their sending addresses (the envelope sender or the visible From address). Many receivers reject mail whose return address cannot receive replies and bounces, so a null MX on a domain you send from puts your own mail at risk. Use it for parked domains and for domains that neither send nor receive. For a domain that only sends, the safer course is to keep working MX records, because bounces and replies need somewhere to land. Domains that send nothing can additionally publish an SPF policy ending in -all to declare that no server is authorised to send for them, as covered in How to Set Up SPF, DKIM and DMARC (Without Getting Lost in the Acronyms).

The third state: nothing at all. If the domain has no MX and no A or AAAA record, there is nowhere to deliver. The sender gets a permanent failure straight away. DNS tells the difference between a domain that does not exist at all (NXDOMAIN) and a domain that exists but has no MX data (often called NODATA). A third outcome, a timeout or a server failure (SERVFAIL), means the answer could not be obtained, which is temporary. Good tools and good mail servers treat that third case as "try again later", not as "this domain is dead".

Rules for the target hostname

Most MX problems that are not simple typos come from breaking one of these rules:

  • Use a hostname, not an IP address. The DNS standard requires the target to be a domain name. Some servers reject an IP in the target field outright, and RFC 5321 says the name must return at least one address record when looked up.
  • The hostname must resolve. It needs a working A or AAAA record. An MX pointing at a name that does not exist behaves like having no mail server at all.
  • Do not point an MX at an alias. RFC 2181 states that the target of an MX record must not be an alias, meaning a name that is itself a CNAME. Some servers follow the alias anyway and many do not, and the failures are intermittent, which makes them painful to debug. The same document warns that aliases in MX data can cause mail loops.
  • Do not put a CNAME at the same name as the MX. A name that has a CNAME cannot have other records, so a CNAME on the bare domain (the apex) and MX records on that same name cannot coexist in a correct zone. Some DNS hosts offer a flattened "ALIAS" or "ANAME" type for the apex; that is a provider feature, not a standard CNAME, and is fine because it answers with ordinary address records.
  • Mind the trailing dot. In a zone file, a name without a final dot is treated as relative to the domain. Typing mx1.example.net without the dot in a raw zone can silently become mx1.example.net.example.com. Panels differ: Google's instructions note that some registrars require the period at the end of its hostname while others reject it. Follow the panel's own examples.
  • Remove stale records. An old MX left over from a previous provider is the most common cause of mail that arrives "sometimes". Senders pick records by preference, so if the old one has a lower number than the new one, it wins.

Subdomains and wildcards

Each name is its own island in DNS. Records for example.com say nothing about news.example.com. If you send mail from a subdomain, receive replies there, or give people addresses on it, publish MX records for exactly that name. Some sending services ask you to add MX records on a dedicated subdomain so that bounce messages come back to them; follow your service's instructions for those, and keep them separate from your main mailbox records.

Wildcard MX records exist, but they catch every name that has no record of its own, including names you never intended to receive mail. They also interact with DNS's rules in ways that surprise administrators. Unless you have a specific reason, publish explicit records for the names that need them and leave the rest empty.

What real providers ask you to publish

Hosted mail providers tell you exactly which records to add, and the safest approach is always to follow their current instructions rather than a tutorial, including this one. The values below were checked against the providers' own help pages in November 2026.

Google Workspace. Google's current setup asks for a single record: preference 1, pointing at smtp.google.com, with the name field blank or @. Since April 2023 any account can use it. Accounts created earlier may have the older five-record set that begins with aspmx.l.google.com (preference 1) plus four alternates at 5, 5, 10 and 10. Google says that legacy set will keep working indefinitely, so a healthy legacy setup does not need to change. If you are setting up fresh or repairing, use the single record, and remove any other MX records, because leftover ones can send mail somewhere it should not go. For a subdomain, enter the subdomain label in the name field instead of @. Google also says new records can take up to 72 hours to be recognised. This is a good illustration of why old guides go stale: many tutorials still describe the five-record layout as the only option.

Microsoft 365. The admin centre generates a hostname specific to your domain, in the form of a unique token followed by .mail.protection.outlook.com, and tells you to give it the highest priority available, normally 0. Some DNS panels use 10 instead, which also works as long as it is the lowest number among your records. Because the token is unique per domain, copying one from a tutorial will not work. Copy it from your own admin screen.

Self-hosted or hosting-company mail. A hosting provider will give you a hostname such as mail.yourdomain.com or one of their own. If it is your own hostname, make sure the A record behind it is correct, the machine really accepts mail on port 25, and the server is configured to accept the domain; otherwise you get the "loops back to myself" problem described earlier.

Filtering gateways. Some organisations route incoming mail through a security or filtering service before it reaches the mailbox provider. In that setup your MX records point at the filtering service, and the service forwards clean mail onwards. Three habits keep this safe: configure the mailbox provider to accept mail only from the gateway, add the gateway to your SPF record if it also sends on your behalf, and never publish the mailbox provider as an extra, lower-priority MX, because spammers can then deliver straight to it and skip the filter.

Diagram of mail flowing from the sender to a filtering gateway named in the MX record, which forwards clean mail to the real mailbox provider
When a gateway sits in front, the MX record names the gateway, not the mailbox provider.

How MX records connect to SPF, TLS policies and DANE

MX records sit at the centre of several other mail-security mechanisms, and changing them without updating those mechanisms is a classic source of delayed trouble.

SPF. The SPF standard (RFC 7208) includes an mx mechanism that authorises whatever servers your MX records point at. It counts towards SPF's limit of ten DNS-querying terms, so a record that uses it alongside several include: entries can drift over the limit. After any provider switch, review the whole SPF record rather than only the MX records. The step-by-step method is in How to Set Up SPF, DKIM and DMARC (Without Getting Lost in the Acronyms), and the SPF, DKIM and DMARC checker shows what is currently published.

MTA-STS. This mechanism (RFC 8461) lets a domain publish a policy saying that senders should only deliver to specific MX hosts, over verified TLS. A short TXT record at _mta-sts signals that a policy exists, and the policy itself is served over HTTPS from a well-known path on a dedicated host. The policy contains a list of permitted MX hostnames, so if you publish one and later change provider, the list must change first or at the same time. Otherwise strict senders will refuse the new servers. The standard includes a testing mode for this reason.

DANE. A related approach, DANE, publishes certificate details for each MX host in DNS itself, and relies on signed DNS. It is less common among small senders, but it again ties MX host names to security data that must be kept in step.

For most small domains none of this is needed. It matters if you have deliberately set one of these up, and it is worth a line in your migration checklist either way: "Do we publish an MTA-STS policy or DANE records that name the old hosts?"

How to read your MX records yourself

You do not need to guess. Four ways, from quickest to most detailed:

  1. A lookup tool. Paste the domain into an MX lookup and read the list. Our MX lookup tool does this without an account, listing servers by preference. Like most lookup tools it can serve DNS answers it saw a short while ago, so after you edit a record, allow time or confirm with a command-line query.
  2. nslookup, available on Windows, macOS and Linux:
    nslookup -type=mx example.com
  3. dig, common on macOS and Linux:
    dig MX example.com +short
    10 mx1.example.net.
    20 mx2.example.net.
  4. Ask the authoritative server directly. First find the nameservers, then query one of them, which bypasses caches:
    dig NS example.com +short
    dig @ns1.example.net MX example.com +short

The output of dig +short is preference first, then hostname. If it prints nothing, the domain has no MX records, or you queried a resolver that has not yet seen them. (The example names above are placeholders. Your own output will show your provider's hosts.)

After you have the list, take the second step: check that each hostname actually resolves. Run dig A mx1.example.net +short for each one, and dig AAAA if the host is expected to use IPv6. A host with no address is the same as a missing record. Then check that the hostname is not an alias by running dig CNAME mx1.example.net +short; any answer means you have an alias where a plain address was required.

If you want to go one level further and see that a server is really listening, you can open a connection to port 25 and read the greeting. On many home and cloud networks outbound port 25 is blocked by the provider, so a failure from your own machine proves nothing; try from a server you control or an online tool. A healthy server answers with a line starting with 220 and its own name. This is the point where a mail server starts answering questions about mailboxes, which we leave to Why Email Verification Matters (And What Happens If You Skip It).

Three layers of delivery: MX records handle routing, the SMTP conversation handles acceptance, and authentication and reputation handle trust
MX settles routing only. Mailbox checks and trust are separate layers with their own causes of failure.

Troubleshooting: mail is not arriving or is bouncing

Work through these in order. The first five steps cost minutes and rule out the usual DNS causes before you look anywhere else.

Seven step troubleshooting flow for MX problems: read the bounce, look up MX, resolve targets, check for aliases, remove stale records, confirm the right DNS zone, and wait for the TTL
Seven checks in order. If all pass and mail still fails, the cause is past DNS.
  1. Read the bounce message. The three-part status code tells you the category, and the text names the domain it could not route to. A code such as 5.1.2 means a bad destination system address, which points at the domain rather than the individual mailbox. The codes are defined in RFC 3463, and the deeper reading method is in Why Are My Emails Bouncing? A Practical Troubleshooting Guide.
  2. Look up the MX records for the recipient domain. None, or an empty answer, explains it.
  3. Confirm every target resolves to an IP address. A hostname with no A or AAAA record is a dead end.
  4. Check for aliases and raw IP addresses in the target field, and for a CNAME sitting at the same name as the MX.
  5. Look for stale records with a lower preference number than the current provider's. They quietly win.
  6. Check you edited the right zone. A frequent cause is changing DNS at the registrar while the domain actually uses nameservers elsewhere, such as a hosting panel or a CDN. Run dig NS and edit where those nameservers point. Records edited in the wrong place never take effect.
  7. Allow for caching, then test from outside. Resolvers keep answers for the TTL. Google notes that new MX records can take up to 72 hours to be recognised everywhere, so a change is not necessarily broken just because it has not appeared on the first attempt. Query from another network or an online tool, since your own machine may be serving a cached answer.
What you seeLikely causeFirst fix to try
Every address at the domain bounces at onceNo MX, or MX points at a dead hostPublish or correct the records
Only some senders failMixed old and new records, or cachingRemove stale records, wait for the TTL
Mail goes to the old provider after a switchOld MX has a lower preference numberDelete it
A bounce says mail loops back to myselfServer is listed as MX but not set up to accept the domainConfigure the domain on that server, or remove it from the MX list
Mail to a subdomain address failsNo MX published for that exact nameAdd records at the subdomain
Delivery works but lands in spamNot an MX problemCheck SPF, DKIM, DMARC and reputation
Delivery to you stops after you published an MTA-STS policyPolicy does not list the current MX hostsUpdate the policy list, or use testing mode while you fix it

A decoder for the routing-related status codes

Most bounces from DNS and routing trouble carry one of a small set of codes from RFC 3463. The wording below is the standard's meaning; individual mail systems add their own text around it.

CodeStandard meaningWhat to check
5.1.2Bad destination system addressThe domain: spelling, MX records, whether it exists
5.1.10Recipient address has null MX (RFC 7505)The domain deliberately accepts no mail; use another address
4.4.1No answer from hostThe MX host is down or blocked; the sender will retry
5.4.4Unable to routeRouting data could not be found; look at MX and target resolution
5.4.6Routing loop detectedServer listed as MX but not accepting the domain, or an alias loop
4.4.7Delivery time expiredThe message was retried until the sender gave up

A code starting with 4 is a temporary failure, so the sender keeps trying; a code starting with 5 is permanent. A delivery problem caused by a bad MX record can show up as either, depending on whether the sender thinks the fault might clear on its own.

A safe checklist for switching mail providers

Provider migrations are where MX mistakes happen most often, because the change feels small and the consequences are not. A careful order of operations:

Timeline for switching mail providers: lower the TTL two days before, create mailboxes, swap the MX records in one edit, keep old mailboxes for several days, then update SPF and DKIM and restore the TTL
The sequence matters more than the speed. The last step is the one most often forgotten.
  • A day or two before the move, lower the TTL on the existing MX records (for example to 300 seconds) so the later change spreads quickly. Some resolvers hold answers longer than the TTL says, so expect stragglers anyway.
  • Create every mailbox, alias and group at the new provider first, so mail has somewhere to land.
  • Write down the current records before touching anything, including the TTLs. If you need to roll back, you will want them exactly.
  • Swap the MX records in one edit: add the new ones and remove the old ones together, never leaving the zone half-finished.
  • Keep the old mailboxes alive for several days in case slower resolvers still deliver there, and check them daily for stray mail.
  • Re-check the records from outside your network, and send test messages in both directions, including to a Gmail and a Microsoft address.
  • Update your SPF and DKIM records to include the new provider, and review DMARC. This step is the one people forget, and it is why mail "works" after a migration but starts landing in spam a week later.
  • If you publish MTA-STS or DANE, update the host lists before the cut-over, as described above.
  • When everything is stable, raise the TTL again so resolvers cache the answer for longer.

Never run two providers at the same preference for a long period. Senders choose between equal records at random, so mail splits between two systems and people report that some messages are "missing". If you must overlap, give the old provider the higher number, which makes it a fallback only.

Three things people often assume incorrectly

"A correct MX record means my mail is trusted." It does not. MX concerns incoming mail only. Whether your outgoing messages are accepted depends on authentication and reputation, covered in How to Set Up SPF, DKIM and DMARC (Without Getting Lost in the Acronyms) and How to Protect Your Sender Reputation Before It's Damaged. If a blocklist is the problem, the place to look is the blacklist checker and Why Is My Domain on a Blacklist? (And How to Check).

"A website and email cannot share a domain." They can, easily. The A record that serves your website and the MX record that routes mail are separate entries and do not conflict. Your website can be hosted at one company and your mail at another.

"If the domain has MX records, the address is real." Not necessarily. An MX record shows the domain can receive mail. It says nothing about whether a particular mailbox exists. That is the next level of checking, and the one the rest of this guide explains.

Where MX records fit into email verification

When a verifier checks an address, the MX lookup is the first gate. If the domain has no MX and no fallback address, there is nothing to test, and the address can be marked undeliverable instantly, without ever contacting a server. That is a cheap, certain answer, and it is why a quick MX check removes a surprising share of bad addresses from a list.

A careful verifier distinguishes three outcomes, not two. A domain with a real mail server is a candidate for the next check. A domain that resolves only to a web server, with an A or AAAA record and no MX, is often a parked or non-mail domain, and deserves a different label from one that does not resolve at all. Our own verifier's local check separates these cases, rather than collapsing them into a single pass or fail. And a lookup that times out should be treated as unknown, not invalid, because DNS can fail for reasons unrelated to the domain.

The Free Email Checker verifier showing a result and trust score for an email address
A single address checked with the email verifier. The MX result is one input among several in the trust score.

Passing the gate only means the next question can be asked. The verifier then talks to the mail server to find out whether the mailbox is accepted, and some domains answer "yes" to everything, which is the situation explained in What Is a Catch-All Email Domain? (And Why It Complicates Verification). Throwaway services also have perfectly valid MX records, so the check cannot catch them; for that you need the approach in How to Spot a Disposable Email Address, or a run through the disposable email checker. Shared mailboxes such as info@ also pass every DNS test, which is why Role-Based vs. Personal Email Addresses: Why It Matters for Your List treats them separately. To see all of these layers combined, read Why Email Verification Matters (And What Happens If You Skip It), or run an address through the email verifier.

Working through a spreadsheet instead of one address at a time? The bulk email verifier applies the same domain-level check to a whole list, and the domains with no route for mail are the cheapest rows to remove. If you collect addresses with the email finder, check them the same way before you send, because a found address at a domain with a broken MX will bounce just like a mistyped one.

Keeping watch after you have fixed it

A one-off lookup tells you the state of DNS today. Records break later: someone edits the zone, a provider changes its instructions, or a renewal lapses and the zone is replaced by a registrar default. For a domain you control, the deliverability monitor checks MX records daily together with SPF, DMARC and public blocklists, and sends an alert when a component newly fails, which catches silent changes that no one reported. Verifying ownership is required, since the monitor is for domains you run.

Privacy, law and responsible checking

MX records are public DNS data. Looking them up involves no personal information and needs no one's consent, which is why free tools can offer it without an account. Two nearby topics deserve care.

First, where your mail is processed is a choice you make when you pick a provider. Your MX records send every inbound message, including any personal data in it, to that provider's systems. If you handle data of people in regions with data-protection laws such as the EU's GDPR, check your provider's data-processing terms and where it stores mail. This is a governance question for you or your adviser; DNS settings do not answer it.

Second, checking an address with a mail server is not the same as checking a domain in DNS. Probing mailboxes repeatedly can be rate-limited or treated as abusive, and sending mail to people who never agreed to hear from you is regulated separately, under rules such as CAN-SPAM in the United States and consent requirements elsewhere. We are not a law firm, and nothing here is legal advice. If your mailing depends on a specific jurisdiction's rules, confirm them with a qualified adviser.

Audit your own domains: a simple worksheet

The most useful evidence is your own. Rather than rely on anyone's sample, run this audit on the domains you manage, or on the domain column of your customer list, and keep the results.

ColumnHow to fill it
DomainOne row per domain
MX count and lowest preferenceFrom a lookup or dig MX
Targets resolve?Yes or no for each hostname
Alias or raw IP in target?Yes or no
ProviderRead from the MX hostnames (Google, Microsoft, gateway, self-hosted)
Stale records?Any host belonging to a provider you no longer use
TTLNote any extreme values, very high or very low
Last checkedThe date, so the audit can be repeated

Sort by the "No" answers and fix those first. If you are curious how the MX picture on your customer list looks, run the domains through the bulk checker and compare the share with no route for mail against your bounce rate. That comparison, from your own data, tells you more than any published average.

Three illustrative scenarios

These are composite examples built from the failure patterns above. They are not real customers or measured data, and the domain names are placeholders.

The leftover record. A small agency moves from a hosting company's mail to Google Workspace. The new record is added with preference 1, but the old hosting records at preference 10 are left in place "just in case". For a few days nothing seems wrong. Then staff notice that a few clients say mail was sent but never replied to. Some senders are choosing the old records, which now point at an abandoned mailbox system. Removing the old records, as Google's own instructions advise, ends the problem within the TTL.

The alias at the apex. A founder points the bare domain at a website builder using a CNAME, then adds MX records for a new mail service. The panel accepts both, but resolvers behave unpredictably: some sites resolve the MX correctly, others do not. The fix is to use an address record or the DNS host's flattened alias for the apex, so that MX records can coexist with it.

The wrong zone. An accountant edits MX records in the registrar's panel, waits two days, and sees no change. A query for the domain's NS records shows the nameservers belong to a separate hosting company, so the registrar's zone was never being read. The records were made in the right form but the wrong place.

Mistakes that make MX problems worse

  • Editing records one at a time while mail is flowing. A half-finished zone is a live outage. Prepare the full set and change it in one edit.
  • Copying values from a tutorial. Especially for Microsoft 365, where the target is unique to your domain.
  • Treating a successful lookup as a successful setup. A list of records that looks fine can still point at a host that does not accept your domain.
  • Deleting the old provider's mailboxes on day one. Slow resolvers will deliver there for days.
  • Forgetting subdomains. A new service that sends or receives from mail.example.com needs its own records.
  • Publishing a null MX on a domain you send from. The standard advises against it because receivers may reject your mail.

A monthly MX routine to copy

  • Run a lookup for each domain you manage and compare the list with your saved copy of the intended records.
  • Confirm that each target still resolves to an address and is not an alias.
  • Check that no hostname belongs to a provider you have stopped using.
  • Review SPF, DKIM and DMARC whenever the MX list changes.
  • If you publish MTA-STS or DANE data, confirm it still names your current hosts.
  • Send a test message from outside your organisation and confirm it arrives.
  • Note the date of the check in your audit worksheet.

How our free tools compare with commercial ones

Free MX and DNS lookups are a crowded space, and several well-known sites do them well. Our comparison with MXToolbox sets the two sets of tools side by side and says plainly where each is stronger. The same approach applies to address verification, where the ZeroBounce comparison and the Hunter comparison explain the differences, and the longer reading is in Looking for a Free Alternative to ZeroBounce? and A Free Alternative to Hunter.io - For Verification, Not Finding. The rest of the free utilities are collected on the free tools page. If you check domains and lists every day, the premium plan removes the daily limits.

Look up any domain's MX records in seconds

Check MX records

Frequently Asked Questions

How many MX records should a domain have?

As many as your provider tells you to publish. Google currently asks for one, Microsoft 365 asks for one per domain, and some providers ask for two or more. Redundancy is usually handled inside the provider's infrastructure, so adding extra records of your own is rarely helpful.

Can two MX records have the same priority?

Yes. Senders are expected to choose between equal-preference hosts at random, which spreads load. It only makes sense when both servers are configured identically and both accept mail for the domain.

How long does a new or changed MX record take to work?

Often within an hour, but it depends on the previous TTL and on how quickly resolvers refresh their caches. Google's guidance allows up to 72 hours, so test from several places before concluding that something is wrong.

Can an MX record point to an IP address?

No. The target must be a hostname with its own A or AAAA record. Pointing an MX at a raw IP address is invalid, and some receiving servers will refuse to deliver.

Why does mail still bounce even though the MX looks right?

Check that each target hostname actually resolves, that it is not an alias, and that the server is accepting connections for your domain. If all of that is correct, the problem is further along: the mailbox may not exist, or the receiving server may be rejecting your message for authentication or reputation reasons, which is a different problem from DNS routing.

Do I need an MX record if I only send email and never receive it?

If you send from the domain, keep working MX records, because bounces and replies must be able to reach you and many receivers reject mail from addresses that cannot receive. A null MX is meant for domains that neither send nor receive; the RFC that defines it advises against publishing it on a domain used in sending addresses.

What is the difference between an MX record and an A record?

An A record maps a hostname to an IP address and is used to find a web server or any other host. An MX record names the host that should receive mail for a domain, and the host named still needs its own A or AAAA record. If a domain has no MX record at all, senders fall back to the A record, but if any MX record exists they use only the MX records.

Does changing my MX records change who can send email as my domain?

No. MX records control inbound delivery. Who may send as your domain is decided by SPF, DKIM and DMARC. Switching providers usually needs both: new MX records for receiving and updated authentication records for sending.

Sources