Free tool
MX lookup
MX record lookup and MX checker: mail servers by priority, with their IP addresses, reverse DNS, and email provider
Enter a domain to look up its MX records. The check runs in your browser over DNS-over-HTTPS: it lists the mail servers in priority order, resolves their IPv4 and IPv6 addresses and reverse DNS, names the email provider, flags null MX records, and scores the setup out of 100 from MX redundancy, reverse DNS, SPF, DMARC, and MTA-STS.
Free DMARC reports show you every sender using this domain. Paid plans add hourly checks of the DMARC, SPF, BIMI, MTA-STS, and TLS-RPT records, with an alert when one changes.
How to use this MX records lookup
Four steps from a domain name to a confident answer about its mail servers.
-
1
Enter a domain
Type any domain into the form above. Apex domains and subdomains both work.
-
2
Run the lookup
The tool queries DNS-over-HTTPS from your browser in real time. Results appear inline below the form in a second or two.
-
3
Read priorities, hosts, IPs, and providers
Lower priority numbers are tried first. Each row shows the mail server, every resolved IPv4 and IPv6 address with its reverse DNS, and the detected email provider when we recognize one.
-
4
Verify in your DNS provider
If something is missing, open your DNS provider, find the MX records for the apex name, and confirm each entry matches what you expected to publish.
What this MX lookup adds to a DNS MX lookup
A DNS MX lookup with dig or nslookup returns the MX records: a preference number and a mail server hostname for each record (RFC 1035 section 3.3.9), plus the TTL in dig's full output, in the order the resolver sends them, which is not guaranteed to be sorted by priority. It does not resolve reverse DNS, identify the email provider, or check SPF, DMARC, and MTA-STS. This tool sorts the records by priority (RFC 5321 section 5.1). For each mail server it queries the A and AAAA records, the PTR record of each address (up to 15 per lookup), and names the email provider when the hostname matches one of more than 40 known providers. It also reads the domain's SPF, DMARC, and MTA-STS records. Where dig +short prints nothing, both for a domain without MX records and for a domain that does not exist, this tool says which of the two it is.
To run the lookup from a terminal instead, follow our guide on how to look up MX records with nslookup, dig, and PowerShell.
What you can learn from an MX records lookup
An MX records lookup is one of the fastest sanity checks for an email setup. Use it to:
- Confirm Google Workspace or Microsoft 365 setup is complete after delegating mail to a new provider.
- Spot a domain that explicitly accepts no email via a null MX record (RFC 7505).
- Identify the email provider behind any sending domain by matching its MX hostnames to known providers.
- Compare backup vs primary mail servers via priority numbers, and verify a failover path exists.
- Cross-check MX hosts against MTA-STS, SPF, and DMARC on the same domain.
- Audit a vendor or partner's email setup before sending high-volume mail to their addresses.
Understanding MX records
What is an MX record?
An MX (Mail Exchange) record is the DNS entry that tells the internet which mail servers receive email for a domain. Each MX record has two parts: a hostname that points to a mail server, and a numeric priority. When someone sends mail to an address on your domain, their server looks up your MX records, picks a mail server, resolves its IP address, and connects to it on port 25 over SMTP to deliver the message. The MX record points to a name, never an IP address directly, so the mail server also needs a matching A or AAAA record. If a domain publishes no MX record, RFC 5321 section 5.1 tells sending servers to treat the domain's own A or AAAA address as an implicit MX, so mail reaches the domain only if a mail server listens at that address.
How priority and failover work
The number in front of each MX host is its priority, also called its preference. Lower numbers are tried first. A sending server sorts your MX records by priority, connects to the lowest-numbered host, and only moves on to a higher-numbered one if the first is unreachable. That is how backup mail servers work: give a secondary server a higher priority number and it receives mail only when the primary is down. When two MX records share the same priority, sending servers spread delivery across them, which balances load between equivalent mail servers. Publishing more than one MX record, or one hostname that resolves to several addresses, is what keeps mail flowing when a single server fails.
MX records and email authentication
MX records control where inbound mail is delivered. They say nothing about who is allowed to send mail as your domain, and they do nothing to stop spoofing. That job belongs to email authentication: SPF lists the servers allowed to send for your domain, DKIM signs your messages, and DMARC tells receivers what to do when a message fails both. A domain can have perfect MX records and still be trivially spoofed if it has no DMARC policy. Build your records with the DMARC generator and the SPF generator, then run a full check with our free domain checker to see DMARC, SPF, BIMI, MTA-STS, and TLS-RPT together.
Frequently asked questions
- How do I look up MX records for a domain?
- Enter the domain name into the form above and submit. The tool queries DNS-over-HTTPS from your browser, returns up to 20 MX records sorted by priority, resolves each mail server's IPv4 and IPv6 addresses, looks up reverse DNS, and identifies the email provider behind each MX host.
- Is mxlookup the same as an MX lookup?
- Yes. Written as one word, mxlookup names the same DNS query: a request for the domain's records of type MX (type 15 in RFC 1035 section 3.2.2). Each record holds a preference number and the hostname of a mail server. Enter the domain in the form above to run it.
- What is an MX record?
- An MX (Mail Exchange) record is a DNS record that tells the rest of the internet which mail servers are responsible for receiving email for a domain. If a domain publishes no MX record, RFC 5321 section 5.1 tells sending servers to use the domain's own A or AAAA address as an implicit MX, so mail is delivered only if a mail server listens at that address.
- What does MX record priority mean?
- Each MX record has a numeric priority (also called preference). Lower numbers are tried first. If two MX records share the same priority, mail is load-balanced between them. Backup MX servers usually have higher priority numbers so they only receive mail when the primary servers are unreachable.
- Can a domain have multiple MX records?
- Yes. Many domains publish two or more MX records for redundancy, each with its own priority number. Mail servers try the lowest priority number first and fall back to higher numbers when a server is unreachable. Some large providers handle redundancy behind a single hostname instead: Google Workspace now recommends one MX record (smtp.google.com at priority 1), and Microsoft 365 uses one record (your-domain.mail.protection.outlook.com). Both still work whether you publish one MX or several. The MX health score on this page still deducts 20 points for a single MX record, even when the provider recommends one.
- Why does my domain have no MX records?
- Two common reasons: the domain only sends email and was never set up to receive it, or its MX records were never published or were lost during a DNS change. A lookup that returns a single record of '0 .' is different: that is a null MX (RFC 7505), which declares that the domain accepts no email.
- What is a null MX record?
- A null MX record (RFC 7505) is a single MX record of the form '0 .' that explicitly tells the internet a domain does not accept email. Sending mail servers see the null MX and immediately reject delivery rather than retrying for days. Use it on parked domains, brand-protection domains, and any domain that should never receive mail.
- What does MX stand for?
- MX stands for Mail Exchange (sometimes written Mail Exchanger). An MX record is the DNS record that names the mail servers responsible for receiving email for a domain. The receiving server is called the mail exchanger, which is where the name comes from.
- What port does email delivery use?
- Mail servers deliver email to each other over SMTP on port 25. After your MX lookup tells a sending server which mail server to contact, it connects to that host on port 25. Port 25 is for server-to-server delivery; email clients submit outgoing mail on port 587 or 465 instead, which is a separate step that MX records do not control.
- Can this tool do a reverse MX lookup?
- No. A reverse MX lookup finds the domains whose MX records point at a given mail server. DNS has no query for that: MX records are stored under the domain that publishes them, and the inverse query (IQUERY) of RFC 1035 was retired by RFC 3425. Services that offer reverse MX search their own database of DNS records collected in advance. This tool starts from a domain and covers the reverse DNS step instead: for each IP address of each MX host, up to 15 addresses per lookup, it queries the PTR record and shows the hostname behind that address.
- Is this MX records lookup tool free?
- Yes. The MX lookup tool is completely free with no signup required. The lookup runs in your browser using public DNS-over-HTTPS resolvers, so nothing about the domain you check is stored on our servers.
Now watch your email authentication
MX tells you where mail is delivered, not whether your senders pass DMARC. Create a free account to read your aggregate reports. Paid plans check your DMARC, SPF, BIMI, MTA-STS, and TLS-RPT records every hour and alert you when the next check confirms a change.