What Is a DNS A Record?

An A record maps a domain name to an IPv4 address. Learn the A record format, TTL, wildcard A records, and how to create one - with practical examples.

Last updated July 11, 2026

An A record (Address record) maps a domain name to an IPv4 address. It is the most fundamental DNS record type: when a browser asks "where is example.com?", the A record answers with the server's IP, like 203.0.113.10. Its IPv6 counterpart is the AAAA record.

What does an A record look like?

An A record has four parts:

FieldExampleMeaning
NamewwwThe hostname (relative to your domain, or @ for the root)
TypeAIPv4 address record
Value203.0.113.10The IPv4 address to return
TTL3600How long resolvers may cache the answer, in seconds

So www.example.com → A → 203.0.113.10 means "connect to 203.0.113.10 when someone visits www.example.com".

When should I use an A record?

  • Root domain (example.com) - the apex must use A/AAAA (or ALIAS), never a CNAME.
  • Any host with a stable IP - your web server, VPS, or home server (pair with dynamic DNS if the IP changes).
  • Round-robin load distribution - multiple A records on one name make resolvers rotate between the IPs.

If the target is another hostname (e.g., a hosting platform's load balancer), use a CNAME instead so you inherit their IP changes automatically.

What TTL should an A record have?

TTL is a trade-off between agility and speed. A low TTL (300s) means changes propagate within minutes but resolvers query your nameservers more often. A high TTL (3600s-86400s) keeps answers cached longer for faster lookups. A good default: 300s during setup and migrations, 3600s once stable.

Wildcard A records

A wildcard record like *.example.com → A → 203.0.113.10 answers for every subdomain that doesn't have its own record - useful for multi-tenant apps (customer1.example.com, customer2.example.com) without creating a record per tenant. Wildcards are fully supported in ice.domains free DNS hosting.

How to create an A record

  1. Open your DNS provider's record editor (with ice.domains it's in the dashboard under DNS).
  2. Add a record: type A, name @ (root) or a subdomain like www, value = your server's IPv4 address.
  3. Set the TTL (300s is a safe start) and save. The record is served by the nameservers within seconds.

Frequently Asked Questions

An A record points a name directly to an IPv4 address. A CNAME points a name to another name, which is then resolved to its own records. Use A records for direct IP mapping and CNAMEs for aliases.

Yes. Multiple A records on the same name give you round-robin DNS: resolvers rotate between the listed IPs, providing basic load distribution and failover.

Use 300 seconds (5 minutes) while setting up or before planned changes, and 3600 seconds (1 hour) or more for stable records to reduce query load and speed up resolution.

Get free DNS hosting in minutes

Unlimited zones and records on a global anycast network. Works with domains registered anywhere. No credit card required.