Prompt
How do I check MX records for an email domain?
Latest observation
Oct 5, 2026
OpenAI APIWeb search: off
You can check MX records with a DNS lookup tool.
Common ways
1) dig (Linux/macOS)
dig MX example.com
For a shorter result:
dig +short MX example.com
2) nslookup (Windows/macOS/Linux)
nslookup -type=mx example.com
3) host (Linux/macOS)
host -t mx example.com
What to look for
MX records list the mail servers responsible for receiving email for that domain. The output usually includes:
- the mail server hostname
- a priority number
- lower number = higher priority
Example
dig +short MX gmail.com
Might return something like:
10 alt1.gmail-smtp-in.l.google.com.
20 alt2.gmail-smtp-in.l.google.com.
Online tools
You can also use DNS lookup websites by searching:
- “MX lookup”
- “DNS MX record checker”
If you want, I can also show you how to check MX records from Python, PowerShell, or a web browser.