Enter a Domain Name
google.com. No www prefix or http is needed.
MX Lookup |
MX records name the mail servers that receive email for a domain. Each has a priority number, and the lowest number is tried first.
MX lookup is a DNS query that retrieves the Mail Exchanger (MX) records for a domain, as defined in RFC 1035 (Section 3.3.9). MX records specify which mail servers are responsible for receiving inbound email on behalf of a domain and in what priority order. Each record returns a mail server hostname and a numeric priority value — the lower the number, the higher the delivery precedence per RFC 5321.
| Field | Value |
|---|---|
| DNS Record Type | MX — Type 15 (RFC 1035 §3.3.9) |
| SMTP Routing Standard | RFC 5321, Section 5 |
| Priority Range | 0–65535 (lower value = higher preference, tried first) |
| Protocol | UDP datagrams, caching disabled |
| TTL Unit | Seconds |
| Multiple MX Records | Supported — enables failover and load balancing |
Find the mail servers for any domain in seconds.
google.com. No www prefix or http is needed.Each row is one mail server with its priority. Senders try the lowest number first and use the others as backups; servers with the same number share the load.
| Field | Meaning | Example |
|---|---|---|
| Record Type | Always MX — identifies this as a Mail Exchanger record. | MX |
| Value | Priority number followed by the mail server hostname. Lower priority = tried first for email delivery. | 10 aspmx.l.google.com |
| TTL (seconds) | How long this record is cached before DNS servers must requery the authoritative source. Relevant when verifying a recent MX record change. | 300 |
When a domain returns multiple MX records, the sending mail server attempts delivery to the record with the lowest priority value first. If that server is unreachable, it tries the next in ascending order. Records sharing the same priority value are selected randomly, distributing inbound load across equivalent servers.
The tool sends a live DNS query for the domain’s MX records, to a public resolver or to the domain’s own name servers, and lists the servers by priority.
SimpleResolver with
caching disabled (lookup.setCache(null)) and a 3-second timeout per server.
Do it yourself
All major operating systems include command-line DNS tools. The online tool queries from a neutral external resolver — results may differ from your local resolver due to caching.
nslookup -q=MX google.com
nslookup -q=MX google.com 8.8.8.8
Append a resolver IP after the domain name to query a specific DNS server.
Resolve-DnsName google.com -Type MX
Resolve-DnsName google.com -Type MX -Server 8.8.8.8
dig google.com MX
dig google.com MX @8.8.8.8
dig google.com MX @8.8.8.8 +short
dig is the preferred tool for sysadmins — it returns the full DNS response
including TTL, response flags, and the authority section. The +short flag outputs
only the priority value and hostname. On macOS, dig is pre-installed. On
Ubuntu/Debian, install it with apt install dnsutils.
Mail server migration verification. A sysadmin switching email providers updates the domain's MX records to point to the new mail servers. Before decommissioning the old servers, they run an MX lookup using the Authoritative DNS option to confirm the new records are live — bypassing resolver cache to check the current TTL and verify the exact hostnames in place.
Email deliverability troubleshooting. A developer finds outbound emails from a new domain bouncing with a "550 Host not found" error. An MX lookup reveals the domain has no MX record published. After adding the correct MX record, verifying its PTR record with the Reverse DNS Lookup tool and checking the mail server IP against the IP Blacklist Checker confirms the full email path is clean.
Identifying a domain's email infrastructure. A security analyst investigating a suspicious sending domain runs an MX lookup to identify the mail server hostnames. The hostnames reveal the hosted provider (Google Workspace, Microsoft 365, Mimecast, or a self-hosted server) and feed directly into an IP Blacklist check on the resolved mail server IPs. The SPF Lookup tool and TXT Lookup tool complete the picture of the domain's email authentication setup.