A record
Learn what a DNS A record is, how it maps domains to IPv4 addresses, common uses, lookup methods, and troubleshooting tips.
TL;DR
An A record (Address record) is the most common DNS record type. It maps a domain name (e.g. example.com) directly to an IPv4 address (e.g. 93.184.216.34), telling browsers and applications where to find the server.
When you enter example.com in a browser, the DNS resolver queries for the A record and receives the IPv4 address. The browser then connects to that IP to load the website. A records support:
example.com)www.example.com, api.example.com)dig example.com Anslookup -type=A example.comNAME TTL CLASS TYPE VALUE
example.com. 3600 IN A 192.0.2.1example.com. A 93.184.216.34
www.example.com. A 93.184.216.34
api.example.com. A 198.51.100.10| Feature | A | AAAA | CNAME | MX |
|---|---|---|---|---|
| Maps to | IPv4 | IPv6 | Domain | Mail server |
| IP version | IPv4 | IPv6 | — | — |
| Can exist at root | Yes | Yes | No | Yes |
| Multiple allowed | Yes | Yes | No | Yes |
| Load balancing | Yes (basic) | Yes (basic) | No | Yes |
| Use at apex domain | Yes | Yes | No | Yes |