MX points to an IP address
An MX record must name a hostname, not an IP. Pointing it directly at an IP is invalid and many senders will refuse to deliver. Create a hostname with an A record and point the MX at that.
Look up the MX records on any domain to see which servers receive its mail, in priority order, with each server's resolved IP addresses. It runs free in your browser over DNS-over-HTTPS, with no signup and nothing stored.
An MX (Mail Exchange) record is a DNS record that names the servers responsible for receiving email for a domain, each with a priority number. When someone sends mail to you@yourdomain.com, the sending server looks up yourdomain.com's MX records and delivers to the reachable server with the lowest priority value, falling back to higher numbers if it is unavailable. MX records govern inbound mail, where messages are received, which is separate from SPF, DKIM, and DMARC, which authenticate the mail you send. This lookup reads the live MX records, sorts them by priority, and resolves each mail server to its IP addresses.
The preference number. Sending servers try the lowest value first, so a record at priority 10 is used before one at 20. Equal values share the load between servers.
The hostname that accepts mail for the domain, for example alt1.aspmx.l.google.com. It must be a hostname, not an IP address, and it should resolve to one or more A records.
The addresses each mail server resolves to. A mail server with no A record cannot receive mail, which is a common and easily missed misconfiguration.
If a domain publishes no MX records, the SMTP standard says senders fall back to the domain's A record. Most domains that handle mail should publish explicit MX records rather than rely on this fallback.
An MX record must name a hostname, not an IP. Pointing it directly at an IP is invalid and many senders will refuse to deliver. Create a hostname with an A record and point the MX at that.
If the exchange hostname does not resolve to an IP, mail cannot be delivered to it. Every MX target needs working A or AAAA records.
With no MX, mail relies on the A-record fallback, which is fragile and often unintended. Publish explicit MX records for any domain that should receive email.
The hostname in an MX record should not be a CNAME; the standards require it to resolve directly to address records. Use a hostname backed by A or AAAA records instead.
After switching email providers, leftover MX records can route mail to a server that no longer accepts it. Remove old providers' MX records once the new ones are live.