Skip to content
Domains and DNS2 min read

What is an A record?

Short answer

An A record (address record) is a DNS record that maps a domain or subdomain to an IPv4 address, such as 192.0.2.10. When someone visits your site, the browser reads this record to learn which server to connect to.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. Anatomy of the record
  2. Practical example: connecting a domain while DNS stays elsewhere
  3. Common mistakes
  4. On ArabyHost

The “A” stands for address. It’s the most important record for any website, because without it the browser doesn’t know where the site lives. IPv6 addresses use a separate AAAA record that works the same way.

Anatomy of the record

example.com.      3600  IN  A  192.0.2.10
www.example.com.  3600  IN  A  192.0.2.10
Part Meaning
Name @ or example.com for the root, or a subdomain such as www
TTL Cache lifetime in seconds, one hour here
Type A
Value An IPv4 IP address

In most DNS editors you write @ for the domain itself, www for that subdomain, and * for every undefined subdomain.

Practical example: connecting a domain while DNS stays elsewhere

If your DNS is at Cloudflare or your registrar:

  1. Add an A record for @ with the server’s address.
  2. Add an A record for www with the same address, or a CNAME pointing to the domain.
  3. Delete any old A record for the same name, so visitors aren’t split between two servers.
  4. Check it with the DNS lookup tool or:
dig A example.com +short

Common mistakes

  • Several A records for one name: traffic is split between the addresses; if one is stale, the site works sometimes and fails other times.
  • An A record and a CNAME on the same name: not allowed; a name is either a CNAME alone or holds other records.
  • Entering a URL instead of an address: the value is just a number like 192.0.2.10, with no http://, path or port.
  • Forgetting www: example.com works but www.example.com doesn’t, or the other way round.
  • The site still opens the old host: the change hasn’t propagated because of the TTL, or the domain isn’t pointing to the right server.

On ArabyHost

If you point the domain to ns1.arabicode.com and ns2.arabicode.com, the A record is created automatically and you don’t need to add it. If you keep DNS elsewhere, add A records for the domain and for www pointing to your account’s IP address, then wait for the free SSL certificate to be issued automatically.

FAQ

What's the difference between an A record and a CNAME?

An A record points straight to an IP address; a CNAME points to another name and borrows its address. Use A for the root domain and CNAME for subdomains that follow an external service.

How long does an A record change take?

It depends on the old TTL. With 3600 seconds, most visitors see the change within about an hour, though some networks lag longer.

Can an A record point to a name like example.net?

No. An A record's value must be an IPv4 address. To point at a name, use a CNAME; to send visitors to another URL, use a 301 redirect.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.