Black Friday: 60% off yearly plans with code BF2026, until November 30. See the deal

Learn

A record: what it is and how to add one

An A record is the DNS record that maps a hostname such as example.com to a 32-bit IPv4 address, so browsers know which server to contact. A host with several IPv4 addresses gets several A records, and the same name can also carry AAAA records for IPv6.

The short answer
  • One A record holds one IPv4 address in dotted decimal form, for example 192.0.2.10.
  • Several A records on one name make resolvers return several addresses (round robin).
  • After saving, query the record directly instead of trusting a browser that may have cached it.
Try the dns lookupFree, live, no signup

What fields does an A record have?

Fields you fill in when adding an A record
FieldExampleMeaning
TypeASelects an IPv4 address record (AAAA is the IPv6 equivalent)
Name / Host@ or wwwThe hostname. Most panels use @ for the bare domain (the apex)
Value / Points to192.0.2.10The IPv4 address of the server, four decimal numbers separated by dots
TTL3600Seconds a resolver may cache the answer. See DNS TTL

The A record format is defined in RFC 1035, section 3.4.1. Field labels differ by provider.

What does an A record look like in a zone file?

Zone file syntax (192.0.2.0/24 is reserved for documentation)
example.com.      3600  IN  A  192.0.2.10
www.example.com.  3600  IN  A  192.0.2.10
; round robin: two addresses on one name
app.example.com.  300   IN  A  192.0.2.20
app.example.com.  300   IN  A  192.0.2.21

How do you add and verify an A record?

  1. 01

    Find the live DNS host

    Records only take effect where the domain nameservers point. Check them with the nameserver lookup before editing a zone that is not in use.

  2. 02

    Create the record

    Choose type A, set the name (@ for the domain itself, www for the www host), paste the server IPv4 address and keep the default TTL.

  3. 03

    Remove conflicts

    A name cannot have a CNAME and an A record together. Delete any old CNAME or duplicate A record for the same name first.

  4. 04

    Query it directly

    Run the DNS lookup or nslookup -type=A example.com 1.1.1.1 and confirm the address matches what you entered.

  5. 05

    Test the site

    Open the site in a private window. If it still shows the old server, the old answer is cached; see DNS propagation.

What do you check before saving?

  • The address is IPv4 (four numbers from 0 to 255), not a hostname and not a URL
  • No http:// prefix, port number or trailing slash in the value
  • The server actually listens on that address and accepts the hostname (virtual host or SNI configured)
  • No CNAME exists on the same name
  • Both @ and www are covered if visitors use either

What are the most common A record mistakes?

Pasting a URL instead of an address

The value must be a bare IPv4 address. Entries such as http://192.0.2.10/ or a hostname are rejected or ignored.

Leaving an old record in place

Two A records on one name mean visitors are split between the old and the new server until you delete the old one.

Pointing at the wrong IP

Shared hosts often show a different IP in the control panel than the one the site is served from. Copy the address the host tells you to use.

Forgetting the www host

The bare domain and www are separate names. If only one has a record, the other shows an error.

Common questions

What is an A record in simple terms?

An A record is an entry in a domain DNS zone that says which IPv4 address a hostname lives at. When someone types your domain, a resolver looks up the A record and the browser connects to that address.

Can a domain have more than one A record?

Yes. Several A records on the same name return several addresses, and resolvers may rotate their order. This gives basic load sharing, but it does not detect a dead server, so it is not a failover system by itself.

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

An A record holds a 32-bit IPv4 address. An AAAA record holds a 128-bit IPv6 address. Publishing both lets IPv4-only and IPv6-capable visitors reach the same name.

Why does my A record show the old IP address?

Resolvers cache the previous answer until its TTL expires, and your own computer and browser keep a cache too. Query a public resolver directly to see what the world sees, then wait out the old TTL.

What does @ mean in an A record?

In most DNS panels @ stands for the domain itself, also called the apex or root, so an A record named @ on example.com answers for example.com. Some panels want the full domain name or leave the field empty instead.

Watch your domains automatically

Aepto monitors expiry, DNS, SSL and uptime for every domain you own and alerts you when something changes. Free for 3 domains.