A<name> <ttl> IN A <ipv4-address>
Maps a hostname to a single IPv4 address. The most basic record on the internet — every domain that serves traffic over IPv4 has at least one A record at the apex or a subdomain.
- Point example.com to your web server: 203.0.113.10.
- Round-robin load balancing by putting multiple A records on the same name.
- Geo / latency routing where the resolver picks the closest A from the set.
- TTL too long (e.g. 86400) means a server move takes a full day to roll out — drop to 300 a day before migration.
- Adding a second A record does NOT make it failover — it just round-robins. Real failover needs health-checked DNS (Route53, NS1).
- A record at the apex is fine, but you cannot also have a CNAME at the apex — they conflict.
example.com. 300 IN A 203.0.113.10 www.example.com. 300 IN A 203.0.113.10 api.example.com. 60 IN A 198.51.100.5