Address
A
Maps a host name to a 32-bit IPv4 address.
The A record is the most common DNS record. It returns an IPv4 address in dotted-quad form for a given host name. Multiple A records can be published for the same name so a resolver can round-robin between them, and most CDNs and load balancers rely on rapidly changing A records with a short TTL to steer traffic. A records can be set on the apex of a zone (example.com) and on any subdomain.
- Family
- Address
- Allowed at zone apex
- Yes
- Multiple values
- Yes
- Reference
- RFC 1035
Wire format
<name> <ttl> IN A <ipv4-address>
Example record
example.com. 300 IN A 93.184.216.34
When to use it
- Pointing example.com or www.example.com at a single web server.
- Publishing several A records for round-robin load balancing.
- Steering traffic geographically through a CDN that mutates A records based on the resolver location.
- Internal DNS for naming hosts inside a corporate network.
Pitfalls to avoid
- A records hold IPv4 only. For IPv6 use AAAA in addition, not in place of.
- A is not an alias; it must point to an address, never a host name. Use CNAME for name to name aliasing on a subdomain, or ALIAS or ANAME at the apex.
- Round-robin A records do not balance load, they spread it; a misbehaving client may pin to one address.
- Setting a long TTL on a record that moves often slows down failover during incidents.
Recommended TTL
60 to 300 seconds for production traffic, 3600 or more for stable static IPs.