To look up a domain's MX record, ask DNS for records of type MX. On Windows, run nslookup -type=MX example.com; in PowerShell, Resolve-DnsName -Name example.com -Type MX; on macOS or Linux, dig example.com MX. In a browser, Google's Admin Toolbox has a Dig page that does the same. The answer lists mail servers with preference numbers, a single "0 ." null MX, or nothing at all, and each of those means something different.
This page shows the commands, a worked example of each kind of answer, and how to read the provider names that appear. It covers what DNS publishes about a domain, not whether any address at that domain exists.
What commands look up an MX record?
| Where | Command or tool | Documentation |
|---|---|---|
| Windows Command Prompt | nslookup -type=MX example.com |
Microsoft: nslookup |
| Windows PowerShell | Resolve-DnsName -Name example.com -Type MX |
Microsoft: Resolve-DnsName |
| macOS or Linux terminal | dig example.com MX +short |
dig is available on macOS and can be installed on most Linux systems |
| Browser | Google Admin Toolbox Dig, record type MX | |
| Script, over HTTPS | https://cloudflare-dns.com/dns-query?name=example.com&type=MX with the header accept: application/dns-json |
Cloudflare: DNS over HTTPS, JSON |
Microsoft's nslookup page documents the -type=<resourcerecordtype> option, and its Resolve-DnsName page lists "MX = 15, the DNS query type is mail routing information." Cloudflare notes that its JSON format "does not have a formal RFC, which means behavior might be different between providers."
Whichever you use, write down the date and time of the lookup. DNS records change, and a result without a date can't be compared with a later one.
What does a normal answer look like?
When we looked up gmail.com on 23 November 2026, it returned five MX records:
5 gmail-smtp-in.l.google.com
10 alt1.gmail-smtp-in.l.google.com
20 alt2.gmail-smtp-in.l.google.com
30 alt3.gmail-smtp-in.l.google.com
40 alt4.gmail-smtp-in.l.google.com
The number is the preference. Under RFC 5321, sending servers order MX records "by preference, with the lowest-numbered records being most preferred." So mail goes to the server marked 5 first, and the others are fallbacks. The numbers only matter relative to each other.
What does "0 ." mean?
It is a null MX: a published statement that the domain accepts no mail. example.com returned exactly that on 23 November 2026. RFC 7505 defines it as a single MX record with "preference number 0 and a zero-length label, written in master files as ".", as the exchange domain". It adds: "Since "." is not a valid host name, a null MX record cannot be confused with an ordinary MX record."
What if there is no MX record at all?
Then the domain may still receive mail. RFC 5321 says that if no MX records are returned, "the address is treated as if it was associated with an implicit MX RR, with a preference of 0, pointing to that host." In practice, a sender falls back to the domain's address (A or AAAA) record. Look that up next. If the domain doesn't exist at all, the lookup returns an error such as NXDOMAIN, and mail to it can't be delivered.
In our study of 4,000 listed-company domains, each of these cases appeared, and the study explains how often.
How can you tell which mail provider a domain uses?
Read the host names. Providers document the MX values they ask customers to publish:
- Google Workspace. Google's MX values page gives
smtp.google.comfor current setups, and says: "If you started using Google Workspace before 2023, your domain might have different MX record values that start with "aspmx"." - Microsoft 365. Microsoft's DNS records reference gives the MX value as
<MX token>.mail.protection.outlook.com.
Two cautions. First, the MX names the server that receives mail first. Many companies put a security gateway in front of their mailboxes, so the MX can name the gateway rather than the mailbox host. Our look at which providers answer mail for listed companies shows how often that happens. Second, a server name tells you whose infrastructure receives mail, not who owns the domain.
What can't an MX lookup tell you?
It can't tell you whether a particular mailbox exists, whether a message will be accepted, or whether it will reach an inbox. It tells you where a domain asks for mail to go, on the date you looked. Our page on what an MX record proves goes through those limits.
Where does Trigonomic fit?
Trigonomic is being built to record a domain's mail routing as a dated observation alongside the supplied address, never as proof that the address works. Email results are evidence, not a delivery guarantee.
Trigonomic is in development. The public site is an introduction and interactive design preview with synthetic data. It has no account creation and no list upload, and it runs no live checks.
Frequently asked questions
How do I check MX records with nslookup?
Run nslookup -type=MX followed by the domain, for example nslookup -type=MX example.com. The answer lists the domain's mail servers with their preference numbers, or shows that none were found.
What does the number in an MX record mean?
It is the preference. Sending servers try the lowest-numbered record first and use higher numbers as fallbacks. Only the order matters, not the size of the numbers.
What does an MX record of "0 ." mean?
It is a null MX, defined in RFC 7505. It states that the domain accepts no mail. It is different from having no MX record, which can still allow delivery to the domain's address record.
How can I tell if a domain uses Google Workspace or Microsoft 365?
Look up its MX records. Google documents smtp.google.com, or older values starting aspmx, for Workspace. Microsoft documents values ending mail.protection.outlook.com for Microsoft 365. A security gateway in front of the mailboxes can hide either.