A record

Address record

An A record is a DNS entry that maps a domain name to an IPv4 address, so browsers know which server to contact.

Checked 27/11/2026 against 6 sources. Next review 27/05/2027.

An A record (address record) is the DNS entry that connects a name, such as example.com, to a server's IPv4 address. The original DNS standard lists type A as a host address and defines the address as a 32 bit Internet address [1]. When someone types your domain name into a browser, a lookup finds the A record and the browser connects to the address inside it. You add or change it at your DNS host, usually when you move your site to new web hosting. Its IPv6 counterpart is the AAAA record.

What does an A record look like?

An A record has a name, a type and an address. Cloudflare's documentation describes A and AAAA records as mapping a domain name to one or multiple IPv4 or IPv6 addresses, and says the name can be a subdomain or the zone apex, written as @ [2]. The address field holds your origin server address, and Cloudflare says it cannot be a Cloudflare IP [2]. The addresses below come from blocks set aside for use in documentation, so they will not reach any server [4][5].

; name              TTL   class type  address
example.com.        3600  IN    A     192.0.2.10
www.example.com.    3600  IN    A     192.0.2.10
example.com.        3600  IN    AAAA  2001:db8::10

The last line gives the same name an IPv6 address. The 3600 is the TTL. RFC 1035 defines it as the time in seconds that a record may be cached before it should be discarded, and says a zero means the record should not be cached [1].

What is the difference between an A record and an AAAA record?

The address family. RFC 3596 says the AAAA type stores a single IPv6 address, encoded as a 128 bit number [3], where an A record holds 32 bits [1]. The AAAA type has its own number in the DNS type list, 28 [3].

AAAAA
Address typeIPv4 [1]IPv6 [3]
Size of address32 bit [1]128 bit [3]
Defined inRFC 1035 [1]RFC 3596 [3]

Can one name have more than one A record?

Yes. RFC 1035 says a host with multiple Internet addresses will have multiple A records [1]. Cloudflare's wording also allows one or multiple addresses for a name [2].

Your bare domain is where you usually need an A record instead of a CNAME record. RFC 1034 says that if a CNAME is present at a node, no other data should be present [6], and a bare domain that receives email already holds an MX record [2]. The CNAME record page covers the workarounds.

Moving a site to a new host

Say your new host gives you the address 203.0.113.5. You open your DNS settings, edit the A record for your bare domain, and replace the old address with the new one. Change the www record the same way. Your MX record for email is a different record type, so it stays as it is.

How do I type the address correctly?

RFC 1035 says the address in a zone file is written as four decimal numbers separated by dots, with no spaces, such as 192.0.5.6 [1]. Cloudflare does not support shortened IPv4 forms such as 1.1 for 1.0.0.1 in an A record [2]. For AAAA, it stores and returns the shortest form, so fe80::0:0:1 comes back as fe80::1 [2].

Cloudflare also says each domain on its service needs at least one IP address record, and that these are the only record types you can proxy through it [2]. When a record is proxied, its TTL is set to Auto, which is 300 seconds [2].

Do I need to touch my A record when I change email provider?

Usually no. Cloudflare says an MX record is what delivers email to a mail server [2], and it lists SPF, DKIM and DMARC as their own record types [2]. RFC 1035 gives MX its own type too, a mail exchange [1]. Your website's A record can stay as it is while you change MX record, SPF record, DKIM and DMARC entries.

Questions people ask

What does an A record do?

It maps a domain name to an IPv4 address, so a browser that looks up your name learns which server to contact. The standard calls type A a host address [1].

Is an A record the same as an IP address?

No. The A record is the DNS entry. The IP address is the value held inside it [1][2].

Do I need an AAAA record too?

Only if your server has an IPv6 address you want visitors to use. An AAAA record stores one IPv6 address for a name [3].

See also

  • DNS DNS is the internet's address book: it turns a domain name like example.com into the number a computer needs to find your website or mail server.
  • CNAME record A CNAME record is a DNS entry that makes one domain name an alias of another, so www.yoursite.com can follow wherever another name points.
  • Domain name A domain name is your website's address on the internet, such as example.com.sg, that people type to reach your site and send email to you.
  • Web hosting Web hosting is renting space on a web server that stays connected to the internet, so your website's files can be sent to anyone who asks.
  • MX record An MX record is a DNS entry that names the mail server that receives email sent to your domain.
  • CDN A CDN is a group of servers in many places that keep copies of your website's files so each visitor gets them from a server close to them.

References

  1. RFC 1035: Domain Names, Implementation and Specification, IETF. Read 27/11/2026.Hosts that have multiple Internet addresses will have multiple A records.
  2. DNS record types, Cloudflare Docs. Read 27/11/2026.map a domain name to one or multiple IPv4 or IPv6 address(es).
  3. RFC 3596: DNS Extensions to Support IP Version 6, IETF. Read 27/11/2026.The AAAA resource record type is a record specific to the Internet class that stores a single IPv6 address.
  4. RFC 5737: IPv4 Address Blocks Reserved for Documentation, IETF. Read 27/11/2026.The blocks 192.0.2.0/24 (TEST-NET-1), 198.51.100.0/24 (TEST-NET-2), and 203.0.113.0/24 (TEST-NET-3) are provided for use in documentation.
  5. RFC 3849: IPv6 Address Prefix Reserved for Documentation, IETF. Read 27/11/2026.The prefix allocated for documentation purposes is 2001:DB8::/32
  6. RFC 1034: Domain Names, Concepts and Facilities, IETF. Read 27/11/2026.If a CNAME RR is present at a node, no other data should be present;