Glossary / A record
A record (DNS address record)
An A (address) record maps a domain name to a server's IPv4 address, for example example.com to 192.0.2.10. It tells the browser which server to reach when someone opens your site, so without a correct A record the domain leads nowhere.
Check your site
When you type a domain into a browser, your computer first asks DNS for the IP address of that name. The A record is the answer: it holds a single IPv4 address in the form 192.0.2.10.
One domain can have several A records pointing to different IPs, which spreads the load across servers. Subdomains such as www, shop or blog have their own A records or point to the main domain through a CNAME.
A changed A record takes time to propagate. The old value stays in caches until its TTL runs out, so for a few hours the site may resolve differently for different people.
Example
example.com. 3600 IN A 192.0.2.10
Common mistakes
- Confusing an A record (IPv4) with an AAAA record (IPv6); they are separate records for the two IP versions.
- Entering a hostname instead of an IP address; an A record accepts only a numeric IPv4 value.
- Expecting the change to apply instantly after editing and forgetting about TTL and DNS caching.
- Leaving the old A record pointing at the previous host after a migration, so some visitors land on a dead server.