"A" stands for address, and it's the most basic DNS record type. It shows which IPv4 address a domain name points to.
For example, when you look up the DNS records of example.com, the A record returns an IP address such as 203.0.113.10. In a zone file it looks like this:
example.com. 3600 IN A 203.0.113.10
www.example.com. 3600 IN A 203.0.113.10

What does an A record do?
When you type example.com into your browser, it first asks DNS for that name's A record, connects to the server at the returned IP address and loads the website from there.
So to put a website you've built on a server online, you need to add that server's IP address to your domain as an A record. A records aren't only for the web: anything that connects to an IP address, such as FTP, remote desktop or a game server, uses them.
Most websites have a single A record, but several are possible. Some high-traffic sites use multiple A records to spread requests across servers hosting the same content. This is called round-robin DNS. Resolvers return the addresses in a different order each time, so visitors are spread roughly evenly across the servers.

How do you add an A record?
You add an A record in the DNS management section of the panel that runs your domain's DNS (your hosting panel, Cloudflare or your registrar). Your name servers decide which panel that is. These fields are usually required:
| Field | Example | Notes |
|---|---|---|
| Name / Host | @ | Use @ for the domain itself, and just the label for a subdomain (www, blog). The panel appends the domain itself. |
| Type | A | Choose AAAA for an IPv6 address. |
| Value | 203.0.113.10 | Your server's IP address. You'll find it in your hosting panel or welcome email. |
| TTL | 3600 | How many seconds the record is cached. |
Don't forget www. Many visitors type the address with www, and www.example.com needs its own A record or a CNAME record pointing to example.com.
AAAA record (IPv6)
The AAAA record is the IPv6 equivalent of the A record. IPv6 addresses are longer, like 2001:db8::10. If your server has an IPv6 address you can add both an A and an AAAA record; if the visitor's connection supports IPv6, the browser prefers it.
Before adding an AAAA record, make sure the server really serves traffic over IPv6. A wrong or broken AAAA record makes the site slow or unreachable for visitors on IPv6, especially on mobile networks.
A record or CNAME?
| Situation | Record to use |
|---|---|
The domain itself (example.com) | A (and AAAA if available). A CNAME isn't allowed at the root of a domain. |
| The server has a fixed IP address | A |
The service gives you a name, not an IP (like xyz.netlify.app) | CNAME |
www should go to the same place as the main domain | Either works; with a CNAME you only update one record when the IP changes. |
A records when moving a site
- A day before the move, lower the A record's TTL to
300seconds. - Copy the site to the new server and test it using your computer's
hostsfile. - Update the A record (and the www record, if any) with the new IP address.
- Keep the old server running until every resolver in the resolver comparison shows the new address.
- Once everything works, raise the TTL back to
3600or higher.
Common mistakes
- Entering a private IP address. Addresses like
192.168.x.x,10.x.x.xor127.0.0.1only work on a local network; they can't be reached from the internet. - Forgetting to delete an old A record. If two A records remain for the same name, some visitors go to the old server and the site "sometimes loads, sometimes doesn't".
- Defining both an A record and a CNAME on the same name. A name that is a CNAME can't hold any other records; even if the panel allows it, the results are inconsistent.
- Forgetting the Cloudflare proxy. With the orange cloud on, lookups show Cloudflare's IP addresses rather than your server's. That's normal.
