A Record
An A record (“address record”) is the DNS entry that maps a hostname to an IPv4 address. For example, it points mail.example.com to 203.0.113.10. It is one of the most fundamental DNS record types, defined in RFC 1035, and in email it is what lets a mail server’s hostname resolve to an actual IP that other servers can connect to.
- Maps a hostname to an IPv4 address
- Without it, an MX hostname cannot resolve to an IP
-
AAAAis the same idea for IPv6 addresses - A missing or mismatched A record can land mail in spam
A (Address)
AAAA record
What an A record does
DNS is the internet’s address book, and the A record is its most basic entry: it answers the question “what IPv4 address does this hostname point to?” When something looks up mail.example.com and gets back 203.0.113.10, that answer came from an A record. The IPv6 version of the same record is the AAAA record (four times the address length, hence the four A’s).
mail.example.com. 3600 IN A 203.0.113.10
Why A records matter for email
Email leans on A records at several points. An MX record points to the hostname of a mail server, and that hostname needs an A (or AAAA) record so the sending server can resolve it to an IP and connect. Per the DNS specs an MX record must point to such a hostname, never to a CNAME alias. The hostname a server announces in its HELO/EHLO greeting should likewise resolve to an A record.
For deliverability, the key link is between forward and reverse DNS. Many receivers check that your sending IP’s PTR record resolves to a hostname, and that the hostname’s A record resolves back to the same IP, a match known as forward-confirmed reverse DNS. If the A record is missing or doesn’t match, your mail is far more likely to be rejected or filtered to spam.
Where the A record fits in mail delivery
you@example.comMX record for example.comA record resolves to an IPv4 addressA vs AAAA vs CNAME
| A | AAAA | CNAME | |
|---|---|---|---|
| Maps to | IPv4 address | IPv6 address | Another hostname |
| Example | 203.0.113.10 |
2001:db8::10 |
mail.host.net |
| Valid MX target? | Yes | Yes | No (breaks RFC 2181) |