What Is an A Record? DNS A Records Explained Simply

Quick answer

An A record (address record) is the DNS record that links a domain name to an IPv4 address, such as 203.0.113.10. It tells browsers which server to connect to when someone visits your domain. You usually add one for your root domain, using the IP address your web host or website builder gives you.

How an A record works

Every device on the internet has an IP address. An A record is the entry in DNS that says, “this name lives at this address.”

A typical A record looks like this:

NameTypeValueTTL
@A203.0.113.103600
  • Name: the domain or subdomain the record is for. @ means the root domain.
  • Type: A.
  • Value: the IPv4 address of your server.
  • TTL: how many seconds resolvers may cache the answer (3600 is one hour).

When someone visits example.com, their resolver asks your nameservers for the A record, receives 203.0.113.10, and the browser connects to that server. The server then needs to be set up to recognise your domain and serve your site.

A vs. AAAA vs. CNAME

RecordPoints toExample valueWhen to use it
AAn IPv4 address203.0.113.10Your host gives you an IPv4 address
AAAAAn IPv6 address2001:db8::10Your host gives you an IPv6 address
CNAMEAnother hostnamesites.platform.comYour platform gives you a hostname

The name “AAAA” comes from IPv6 addresses being four times as long as IPv4 ones. Many sites publish both an A and an AAAA record for the same name.

A CNAME record is different: it points to a name rather than a number. A CNAME can’t be used at the root domain under the DNS standards, which is why the root is usually set up with A records.

When you’ll need to add an A record

  • Connecting your root domain to a host or website builder. Many platforms give you one or more IP addresses for the root and a CNAME for www.
  • Running your own server, such as a VPS, where you know the server’s IP address.
  • Creating a subdomain that points to a specific server, such as app.example.com.
  • Pointing a mail hostname like mail.example.com at an email server you run yourself.

How to add or change an A record

  1. Get the IP address from your hosting provider or website builder. Copy it exactly.
  2. Log in to your DNS provider. This is wherever your nameservers point, often your registrar.
  3. Open the DNS records for your domain.
  4. Look for existing A records on the same name. Registrars often add a default one pointing to a “parked” page. Edit it or delete it, so only your host’s addresses remain.
  5. Add the record: type A, name @ for the root (or a subdomain such as app), and the IP address as the value.
  6. Repeat for each IP address if your platform gives you more than one.
  7. Save and confirm in your host’s dashboard that the domain is connected.

If you’re replacing an existing record, it can take up to the old TTL for every visitor to see the change. Learn more in what DNS propagation is.

Common A record mistakes

  • Leaving an old parked-page record. Two A records pointing to different places means some visitors see your site and some see the parking page.
  • Typing a URL instead of an IP address. The value must be numbers only, with no http:// or slashes.
  • Putting the IP in a CNAME. CNAMEs only accept hostnames.
  • Forgetting www. The root A record doesn’t cover www.example.com. Add a CNAME or A record for www too, and redirect one version to the other.
  • Using a private address such as 192.168.x.x or 10.x.x.x. These only work inside a local network.

How to check an A record

You can see what the world sees with a free online DNS lookup tool, or from a terminal:

dig example.com A +short
nslookup example.com

If the result shows your host’s IP address, the record is live. If it shows an old address, a cache may still be holding the previous answer.

A records and changing hosts

Because an A record ties your domain to a specific IP address, you’ll need to update it if you move hosts or your host changes your server’s address. Platforms that give you a hostname for a CNAME avoid this, since they can update the address on their side.

A useful tip before a planned move: lower the record’s TTL to something short, such as 300 seconds, a day or so before switching. Once the old TTL has passed, your change will reach visitors much faster.

For the full process, see how to connect a domain to a website.

Frequently asked questions

Can a domain have more than one A record?

Yes. Some platforms give you two or more IP addresses for redundancy. Resolvers receive all of them and clients pick one, so traffic can still reach the site if one server is down.

What is the @ symbol in the A record name field?

It means the root domain itself, such as example.com with nothing in front. Some dashboards leave the field blank instead.

Do I need an AAAA record too?

Only if your host supports IPv6 and gives you an IPv6 address. If it does, adding the AAAA record lets visitors on IPv6 connect directly. If not, an A record alone is fine.

Does an A record affect my email?

Not directly. Email is routed by MX records. But if your MX record points to a hostname on your domain, such as mail.example.com, that hostname needs its own A record.

Sources

  1. RFC 1035: Domain Names — Implementation and Specification
  2. RFC 3596: DNS Extensions to Support IP Version 6
  3. Cloudflare Learning Center: DNS A record
Editorial Team

Plain-language guides to domain names and building websites. Articles are drafted with AI and list their sources; some are also reviewed by a person with domain-industry experience.