Also known as: mail exchanger, mx
An MX (mail exchanger) record points a domain to the server that receives its email. Each MX record has a priority number: lower numbers are tried first, so you can list backup servers.
example.com. MX 10 mail1.example.net.
example.com. MX 20 mail2.example.net.
MX records must point to a hostname, not an IP address. When you switch email providers, updating the MX records is what moves delivery.