How to Check MX Records (Free MX Record Checker Guide)

By MXToolbox Team · August 14, 2026

Whether you’re troubleshooting mail delivery, migrating email providers, or auditing a domain you don’t own, checking MX records is one of the first diagnostic steps. Here are three ways to do it.

Method 1: A browser-based MX lookup tool

The fastest option if you don’t want to touch a terminal. Our free MX Lookup tool queries DNS directly from your browser and returns:

Just type in a domain and hit lookup — no account, no rate limits tied to your IP being flagged.

Method 2: Command line with dig

On macOS or Linux:

dig MX yourdomain.com +short

Output looks like:

10 mail1.yourdomain.com.
20 mail2.yourdomain.com.

The first number is priority, the second is the mail server hostname.

Method 3: Command line with nslookup

Works on Windows, macOS, and Linux:

nslookup -type=MX yourdomain.com

For a deeper look at nslookup and other DNS command-line tools, see the nslookup command guide.

Reading the results correctly

The most common mistake when checking MX records is misreading priority. Remember: lower number wins. If you see:

yourdomain.com   MX   1    aspmx.l.google.com
yourdomain.com   MX   5    alt1.aspmx.l.google.com

aspmx.l.google.com (priority 1) is the primary destination — not alt1 at priority 5.

What to do if the check comes back empty

If your MX lookup returns nothing:

  1. Confirm you’re querying the right domain. MX records live on the root domain (yourdomain.com), not a subdomain like www.yourdomain.com, unless you specifically configured mail for that subdomain.
  2. Check for typos in your DNS provider’s dashboard. A single wrong character in the mail server hostname will cause it to fail silently.
  3. Wait out propagation. If you just added or changed the record, give it time based on the record’s TTL.
  4. Verify the record type. It’s surprisingly common to accidentally create a CNAME or TXT record instead of an MX record in a DNS panel.

Checking MX records for a domain you’re about to send mail from

If you’re setting up a new sending domain — for cold email, sales outreach, or a new product — checking MX records is only step one. You’ll also want SPF, DKIM, and DMARC configured (use the SPF/DKIM/DMARC checker), and ideally a warm-up period before sending at volume. MailPilot handles mailbox warm-up and ongoing deliverability monitoring once your DNS records are correctly in place.