Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared hosting Managed WordPress Cloud hosting VPS hosting By reader location Hosting finder
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Blog Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

Explainers · Explainer

What Is an A Record? A Plain Explanation

What Is an A Record? A Plain Explanation

Short answer

An A record is a DNS record that points a domain name to the IPv4 address of the server hosting the website. The A stands for address, and it is the most basic DNS record type. Without it, a browser cannot find the server behind a domain name.

Key takeaways

  • An A record points a domain name to the IPv4 address of its server, and it is the most basic DNS record type.
  • A records hold only IPv4 addresses, while IPv6 addresses need AAAA records.
  • Cloudflare's default TTL for A records is 14,400 seconds, so a change can take up to 240 minutes to reach everyone.
  • A domain can hold several A records, which spreads traffic across servers in round robin load balancing.
  • Check an A record with a DNS lookup and compare the answer with the IP address your host gave you.

What is an A record?

An A record is a DNS record that points a domain name to the IPv4 address of the server that hosts the website.

The “A” stands for “address”, and it is the most basic type of DNS record. Cloudflare's learning page calls it the most fundamental type of DNS record, since it indicates the IP address of a given domain.

Without an A record, a browser cannot find the server behind a domain name. The name on its own means nothing to a computer, and the A record is the line that turns the name into an address the computer can reach.

Google Cloud DNS describes a record as a mapping between a DNS resource and a domain name, where each record has a type, a time to live, and type-specific data. An A record is the mapping for an IPv4 address.

How does an A record work?

When you type a domain into a browser, a DNS resolver asks a chain of servers for the domain's A record, gets the IPv4 address back, and connects the browser to that server.

Cloudflare's learning page explains that the most common use of A records is IP address lookups: matching a domain name to an IPv4 address, so a device can connect and load a website without the user typing the address itself.

The browser does this lookup on its own. The same page notes that the browser sends a query to a DNS resolver, and the resolver tracks down the answer through the chain of servers.

That chain has 4 servers in it. Cloudflare's guide to DNS lists them as the DNS recursor, the root nameserver, the TLD nameserver, and the authoritative nameserver, which is the last stop and holds the record.

The authoritative nameserver is the one that knows the answer for your domain. Cloudflare's DNS docs state that nameservers answer queries about the domains they are authoritative for, and they provide the final response in DNS resolution.

What does an A record look like?

An A record has 4 parts: a name, the type A, an IPv4 address as the value, and a TTL in seconds.

Cloudflare gives a plain example: the name @, the type A, the value 192.0.2.1, and a TTL of 14400. Its learning page explains that the @ symbol marks a record for the root domain, and the TTL is listed in seconds.

A real example from the same page is cloudflare.com itself. Cloudflare notes that pulling the DNS records of cloudflare.com returns an A record with the IP address 104.17.210.9 as of November 2026.

The TTL sets how long resolvers may keep the answer before they ask again. Cloudflare states that the default TTL for A records is 14,400 seconds, which is 4 hours, so a change can take up to 240 minutes to reach everyone.

FieldExampleWhat it means
Name@The root domain, such as example.com
TypeAAn address record for IPv4
Value192.0.2.1The IPv4 address of the server
TTL14400Seconds resolvers may cache the answer

What is the difference between A, AAAA, and CNAME records?

An A record points a name to an IPv4 address, an AAAA record points a name to an IPv6 address, and a CNAME record points a name to another name.

A records only hold IPv4 addresses. Cloudflare's learning page states that if a website has an IPv6 address, it will instead use an AAAA record.

Google Cloud DNS gives the same split: the A record type maps an IPv4 address to a domain name, for example 192.0.2.91, while the AAAA record type maps an IPv6 address, for example 2001:db8::8bd:1002.

A CNAME works differently, since it points at a name rather than an address. Google Cloud DNS explains that a CNAME is the DNS alias for an A record, so ftp.example.com can be an alias to www.example.com, and links to the alias receive the A record of the target.

One rule sets CNAME records apart at the root of a domain. Google Cloud DNS notes that you cannot place a CNAME record at the zone apex, because it cannot exist alongside any other record type, including the SOA record that is required there.

When do you need to change an A record?

You change an A record when your site moves to a new server, when you point a domain at a host for the first time, or when your host gives you a new IP address.

The first case is a new site. When you buy a domain and a hosting plan, the domain points nowhere until you add an A record with the IP address your host gave you.

The second case is a move. If you change hosts, the new host gives you a different IP address, and the A record must be updated to the new one or visitors will keep reaching the old server.

The third case is a fix. If your site shows an error because the A record points at the wrong address, correcting the value is the repair, and the site comes back once the new value spreads.

Our guide on how to point a domain to WordPress hosting walks through the steps for a new WordPress site, including where the host's IP address is listed.

How do you add or edit an A record?

Open the DNS settings where your domain's nameservers point, add or edit the row with type A, enter the server's IPv4 address, and save it.

Microsoft's quickstart shows the same steps on Azure DNS. Microsoft Learn explains that a new address record, known as an A record, is created to resolve a host name to an IPv4 address, and its example resolves www to the IP address 10.10.10.10.

The name field takes the part before the domain, such as www for a subdomain, or @ for the root domain. The value field takes the IPv4 address your host gave you, such as 192.0.2.1.

The TTL field sets how long the answer may be cached. Microsoft's quickstart notes that the TTL entry sets how long DNS servers and clients can cache a response, and it uses 1 hour in its example.

Check the value twice before you save it. A single wrong digit sends visitors to a different server or nowhere at all, and the mistake can take hours to undo because of caching.

How long does an A record change take?

An A record change can take up to 240 minutes to reach everyone when the TTL is at Cloudflare's default of 14,400 seconds, though many visitors see it sooner.

Cloudflare states that the default TTL for A records is 14,400 seconds, and that if an A record gets updated, it takes 240 minutes to take effect. That is the worst case, set by how long resolvers may cache the old answer.

The wait is not the same for every visitor. A resolver that never cached the old value asks for the new one at once, while a resolver that cached it minutes before the change holds the old value until its timer runs out.

You can shorten the wait before a planned move. Lower the TTL a day ahead, so resolvers cache the old value for only a short time, then make the change and raise the TTL again after it has spread.

Our guide on how long DNS propagation takes explains the same wait in more detail, including why some places see the change before others.

How do you check an A record?

Look up the domain with a DNS lookup tool and confirm that the A record returns the IPv4 address your host gave you.

Free public resolvers can run the check from a different network than your own. Cloudflare's DNS docs list Cloudflare 1.1.1.1, Google 8.8.8.8, and OpenDNS as free public DNS resolvers you can use.

Compare the answer with the IP address in your hosting account. If the lookup returns the host's address, the record is right, and any problem lies elsewhere, such as the site files or the server.

If the lookup returns an old address, the change is still spreading. Wait for the TTL to run out, then check again, since a cached answer is not an error.

If the lookup returns no A record at all, the domain has no address record. Our guide on how to fix DNS probe finished NXDOMAIN covers the errors that show up when a record is missing or wrong.

What mistakes should you avoid with A records?

Do not point an A record at the wrong IP, do not use an A record where a CNAME belongs, and do not forget that a change takes time to spread.

The first mistake is a typo in the address. An A record holds only numbers and dots, so check the value against the address your host gave you before you save it.

The second mistake is using an A record for a name that should follow another name. A CNAME fits when the target is a hostname, such as a platform that gives you a name rather than an IP, while an A record fits when you have a fixed IP address.

The third mistake is judging a change too soon. Cloudflare's default TTL of 14,400 seconds means a change can take 240 minutes to reach everyone, so wait before you undo a correct edit.

Our guide on how to change the domain of a WordPress site covers the full move, including the DNS change and the settings that must match it.

Frequently asked questions

Can an A record hold an IPv6 address?

No. An A record holds only IPv4 addresses. A site with an IPv6 address needs an AAAA record for that address instead. Many sites run both: an A record for the IPv4 address and an AAAA record for the IPv6 address, so both kinds of visitors can reach the same server.

Can a domain have more than one A record?

Yes, and some large sites do it on purpose. Several A records for the same name let resolvers hand out different addresses in turn, which spreads traffic across servers holding the same content. Cloudflare calls this round robin load balancing, and it is a simple way to share the load.

I changed my A record but my site still shows the old server. Why?

That usually means the change is still spreading, or your own network cached the old answer. A resolver that stored the old value keeps serving it until the TTL runs out, which can take up to 240 minutes at Cloudflare's default TTL. Clear your local DNS cache and check again after the TTL has passed.

Does changing the A record move my site to a new host?

Yes, but not by itself. The A record only tells the browser which server to reach. The server must also be set to answer for that domain name, with the site files in place and a valid certificate for HTTPS. If the server is not set up for the domain, the browser reaches the server and still sees an error.

Should I use an A record or a CNAME record?

Use a CNAME when the target is a hostname, such as a platform that gives you a name instead of an IP address. Use an A record when you have a fixed IPv4 address from your host. You cannot place a CNAME at the root of a domain, so the root domain normally needs an A record or an AAAA record.

Sources

  1. DNS A record Cloudflare
  2. What is DNS? Cloudflare
  3. Nameservers Cloudflare Developers
  4. DNS records overview Google Cloud
  5. Quickstart: Create a public DNS zone and record Microsoft Learn

Is your product missing, or something out of date?

Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.

About the editors

Written and checked byWPLegible Editorial Team Independent WordPress reviews and guides

Researched from the primary sources listed above and checked against our editorial rules before publishing.