# A record (DNS address record)

> An A record maps a domain name to an IPv4 address. See the record format, A vs AAAA vs CNAME, TTL, and how to check yours from the command line.

Canonical: https://scaplet.com/glossary/a-record

Glossary Glossary · Technical SEO

An A record maps a domain name to an IPv4 address. See the record format, A vs AAAA vs CNAME, TTL, and how to check yours from the command line.

3 min

read

3

sources

Oct 22, 2026

updated

Scaplet Editorial Team

author

In one line

An A record is a DNS record that maps a domain name to an IPv4 address. RFC 1035 defines type A as "a host address" holding a 32 bit Internet address. When someone visits your domain, DNS returns the A record's IP address, and the browser connects to that server.

30-second check

## Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fa-record%20(%22A%20record%20(DNS%20address%20record)%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fa-record%20(%22A%20record%20(DNS%20address%20record)%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fa-record%20(%22A%20record%20(DNS%20address%20record)%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fa-record%20(%22A%20record%20(DNS%20address%20record)%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 5 parts, 3 minutes.

1. [What an A record does 01](#what-an-a-record-does)
2. [The fields in a record 02](#the-fields-in-a-record)
3. [A vs AAAA vs CNAME 03](#a-vs-aaaa-vs-cname)
4. [Check and change it 04](#check-and-change-it)
5. [Why site owners care 05](#why-site-owners-care)

_01_Explained

## What an A record does

DNS turns names into addresses. An A record is the entry that says "this name lives at this IPv4 address." RFC 1035 lists the type as "A 1 a host address" and the data as "A 32 bit Internet address", written as four decimal numbers separated by dots, such as 192.0.5.6.

Cloudflare's DNS docs summarize A and AAAA records as records that map a domain name to one or multiple IPv4 or IPv6 addresses. RFC 1035 says hosts that have multiple Internet addresses will have multiple A records.

_02_At a glance

## The fields in a record

Field

### Name

Meaning

The host the record answers for. The root domain is often shown as @

Example

@ or www

Field

### Type

Meaning

The record type

Example

A

Field

### Value

Meaning

The IPv4 address

Example

192.0.2.1

Field

### TTL

Meaning

How long resolvers may cache the answer. RFC 1035: the time interval the record "may be cached before the source of the information should again be consulted", with zero meaning do not cache

Example

3600 (seconds)

Zone file lines (192.0.2.1 is the example address Route 53 uses)

```
example.com. 3600 IN A 192.0.2.1 www.example.com. 3600 IN CNAME example.com.
```

_03_At a glance

## A vs AAAA vs CNAME

Record

### A

Points a name to

An IPv4 address, dotted decimal

Notes

Amazon Route 53: used to route traffic to a resource such as a web server

Record

### AAAA

Points a name to

An IPv6 address, colon-separated hexadecimal

Notes

Same job as A for IPv6

Record

### CNAME

Points a name to

Another domain name

Notes

Route 53 documentation: the DNS protocol does not allow a CNAME at the zone apex, such as example.com, but allows one for www.example.com. A CNAME name cannot have other records

If your host gives you a hostname instead of an IP, use a CNAME on a subdomain. If it gives you an IP, use an A record. For the bare domain, use the A record the host provides. Some providers offer alias records (Route 53) or CNAME flattening (Cloudflare) for the apex.

_04_How it works

## Check and change it

1. 01

### Look it up

Run `dig +short example.com A` or `nslookup -type=A example.com`. The output is the IP address resolvers return.
2. 02

### Compare with your host

The IP should match the one your host or [CDN](/glossary/cdn) tells you to use.
3. 03

### Edit at the DNS provider

Change the record where your nameservers are hosted, which may not be your registrar. Edits take effect as cached copies expire, so lower the TTL before a planned move.
4. 04

### Test over [HTTPS](/glossary/https)

After the change, load the site and confirm the certificate matches the domain.

_05_Explained

## Why site owners care

A wrong or stale A record sends visitors and crawlers to the wrong server or nowhere. If a [web crawler](/glossary/web-crawler) can't resolve your domain, it can't fetch pages. Moving hosts, changing CDNs and choosing [www or non-www](/glossary/www-vs-non-www) all involve A records, so check them first when a site suddenly stops loading.

Sources · 3

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- rfc-editor.org
- amazon.com
- cloudflare.com

1. 01 [RFC 1035: Domain names - implementation and specification](https://www.rfc-editor.org/rfc/rfc1035) rfc-editor.org · checked 2026-10-25
2. 02 [Supported DNS record types - Amazon Route 53 Developer Guide](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/ResourceRecordTypes.html) docs.aws.amazon.com · checked 2026-10-25
3. 03 [DNS record types - Cloudflare DNS docs](https://developers.cloudflare.com/dns/manage-dns-records/reference/dns-record-types/) developers.cloudflare.com · checked 2026-10-25

Questions

## Asked a lot.

4 questions people ask next, answered from the sources on this page.

_01_ How do I create an A record in DNS?

In your DNS provider's dashboard, add a record with type A, the host name (or @ for the root), the IPv4 address and a TTL, then save.

_02_ What is the difference between an A record and a CNAME?

An A record points a name to an IP address. A CNAME points a name to another name, and cannot be used at the zone apex.

_03_ What does TTL mean on an A record?

It is how long resolvers may cache the answer before asking again. Cloudflare says proxied records default to Auto, which is 300 seconds. Lower a longer TTL before a migration so changes spread faster.

_04_ Can a domain have more than one A record?

Yes. RFC 1035 says hosts with multiple Internet addresses have multiple A records, and Cloudflare's docs say A and AAAA records can map a name to one or multiple addresses.

## Keep learning

[All glossary](/glossary)

[Learn www vs non-www Crawling and indexing](/glossary/www-vs-non-www) [Related CDN Performance](/glossary/cdn) [Read next HTTPS Crawling and indexing](/glossary/https) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in glossary
[A/B testing](/glossary/a-b-testing) [Above the fold](/glossary/above-the-fold) [Account-based marketing (ABM)](/glossary/account-based-marketing)

More in Crawling and indexing
[URL structure](/glossary/url-structure) [User agent](/glossary/user-agent) [Video sitemap](/glossary/video-sitemap) [Web crawler](/glossary/web-crawler) [Web scraping](/glossary/web-scraping) [www vs non-www](/glossary/www-vs-non-www) [X-Frame-Options](/glossary/x-frame-options) [X-Robots-Tag](/glossary/x-robots-tag) [XML sitemap](/glossary/xml-sitemap) [301 redirect](/glossary/301-redirect) [302 redirect](/glossary/302-redirect) [410 Gone](/glossary/410-gone) [A record (DNS address record)](/glossary/a-record) [Bing Webmaster Tools](/glossary/bing-webmaster-tools) [Bot management](/glossary/bot-management) [Broken links](/glossary/broken-links) [cache: search operator](/glossary/cache-search-operator) [Canonical HTTP header](/glossary/canonical-http-header) [Canonical URL](/glossary/canonical-url) [Client-side rendering](/glossary/client-side-rendering) [Crawl budget](/glossary/crawl-budget) [Crawl errors](/glossary/crawl-errors) [Crawl stats report](/glossary/crawl-stats-report) [Duplicate content](/glossary/duplicate-content)

Terms on this page
[CDN](/glossary/cdn) [Web crawler](/glossary/web-crawler) [www vs non-www](/glossary/www-vs-non-www)

Free · 2 minutes

## Know the term. _Now check your site._

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **+212%** organic clicks in 90 days Ledgerly
