The records you will meet in nearly every zone
DNS A Records Explained: How Domains Map to IPv4
The A record is the most consequential line in your DNS zone. It maps a hostname to an IPv4 address, and if it is wrong or missing, your site is unreachable no matter how perfectly everything else is configured.
A stands for Address. Its IPv6 sibling is the AAAA record (spoken "quad-A"), named because an IPv6 address is four times the size of an IPv4 one.
Anatomy of an A record
example.com. 3600 IN A 93.184.216.34
www.example.com. 3600 IN A 93.184.216.34
example.com. 3600 IN AAAA 2606:2800:220:1::248Reading left to right:
| Field | Value | Meaning |
|---|---|---|
| Name | example.com. | The hostname this record answers for. @ in most control panels means the bare domain. |
| TTL | 3600 | Seconds resolvers may cache this. See TTL. |
| Class | IN | Internet. You will never need another value. |
| Type | A | IPv4 address record. |
| Value | 93.184.216.34 | The address itself — must be a literal IP, never a hostname. |
A versus AAAA
| A record | AAAA record | |
|---|---|---|
| Points to | IPv4 address | IPv6 address |
| Example value | 93.184.216.34 | 2606:2800:220:1::248 |
| Required? | Effectively yes | Strongly recommended |
| Client uses it when | It has IPv4 connectivity | It has IPv6 connectivity |
These are not alternatives — publish both. A dual-stack client will typically prefer IPv6 and fall back to IPv4, so having both gives every visitor a working path. Publishing only an A record leaves IPv6-only clients, which do exist on some mobile networks, unable to reach you at all.
Multiple A records for one name
A hostname can have several A records. Resolvers hand out all of them, typically rotating the order, which spreads traffic across servers — classic round-robin DNS.
example.com. 300 IN A 93.184.216.34
example.com. 300 IN A 93.184.216.35
example.com. 300 IN A 93.184.216.36It is crude load balancing: DNS has no idea whether a server is healthy, so a dead address keeps being handed out until you remove the record. Why a domain has multiple IPs covers the better alternatives.
The four mistakes that break sites
Forgetting the
wwwrecordexample.comandwww.example.comare different hostnames requiring separate records. Setting one and not the other means half your visitors hit a dead name.Editing records at the wrong provider
If your
NSrecords delegate to your host, records edited at your registrar are ignored entirely. Check which nameservers are authoritative first.Leaving the TTL high before a migration
Changing an A record with an 86400-second TTL means up to 24 hours of split traffic. Lower the TTL a day before you move.
Keeping a stale A record alongside a CNAME
A name may not have both a CNAME and other records. Many providers silently ignore one, producing inconsistent behaviour.
Wildcards, subdomains, and the apex
Three naming situations come up constantly and behave differently enough to be worth separating.
The apex (root) record
The apex is the bare domain, example.com, with no subdomain. In most control panels it is written @. It is the one name where you frequently must use an A record rather than a CNAME, because the protocol forbids a CNAME coexisting with the NS and SOA records the apex is required to carry.
Subdomain records
Every subdomain is an independent name needing its own record. www, blog, shop, and api do not inherit anything from the apex — setting an A record on example.com does nothing whatsoever for www.example.com.
Wildcard records
A wildcard answers for any name that has no record of its own.
*.example.com. 3600 IN A 93.184.216.34Useful for multi-tenant products where each customer gets their-name.example.com without a DNS change per signup. Two caveats worth knowing before you reach for one:
- An explicit record always wins. If
api.example.comhas its ownArecord, the wildcard is not consulted for that name. - A wildcard only covers one level.
*.example.commatchesfoo.example.combut notfoo.bar.example.com.
Checking your A records
dig +short example.com A
dig +short example.com AAAAOr resolve both at once with the lookup tool, which queries A and AAAA independently and lists them separately, so you can immediately see whether IPv6 is actually configured.
Key takeaway
A record = name to IPv4. AAAA record = name to IPv6. Both take a literal address, never a hostname — and publishing both is what makes a site reachable for everyone.
Need to check a domain's public DNS addresses? Use the Domain IP Lookup tool.
Free tools for this topic
Frequently asked questions
Related reading
The records you will meet in nearly every zone
Difference Between CNAME and A Record: When to Use Each
The decision comes down to one question: do you control the IP address, or does someone else? Plus the root-domain rule that trips everyone up.
The records you will meet in nearly every zone
DNS Record Types Explained: A, AAAA, CNAME, MX and TXT
Every record type worth knowing, what it does, what it looks like, and the mistake people make with it — in one reference page.
Picking a TTL in practice
DNS TTL Explained: How to Look Up and Choose TTL Values
DNS TTL decides how fast your changes take effect. Learn what TTL means, how to look up a domain's TTL with dig, and which value to pick.