MX record lookup

See which servers receive mail for a domain, in what order, and whether they have PTR records.

How to read an MX record

The preference number sets the order, not the importance: a sender tries the host with the lowest number first and moves on to the next one only when it cannot be reached. When two hosts share the same number, the load is split between them.

An MX record has to point at a host name that has an A or AAAA record. Pointing it at a CNAME goes against RFC 2181, and part of the mail servers on the internet reject such a domain instead of guessing what was meant.

PTR records and delivery

If your own server sends mail, the address it sends from needs a PTR record pointing back to the host name of the server, and that host name should resolve to the same address. Only the holder of the IP address can create a PTR record, so it is requested from the hosting company or the data centre.

Frequently asked questions

What does an MX record with a single dot mean?

That is the null MX record, and it states plainly that the domain receives no mail. It is worth adding to domains used only for a website, because senders then fail at once instead of queueing for days.

How many MX records should a domain have?

At least two if mail matters. With a single host, messages sit in the queue of the sender while it is unreachable, and after a few days they are returned to the author.

Does MX affect the website?

No. MX records concern mail only. The website is decided by the A and AAAA records.

I changed the MX records, so why is mail still going to the old server?

Sending servers cached the previous MX answer and keep using it until its TTL runs out. Leave the old mailbox reachable until then, otherwise the messages sent in that window are lost.