Contents
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:
- Add an A record for
@with the server’s address. - Add an A record for
wwwwith the same address, or a CNAME pointing to the domain. - Delete any old A record for the same name, so visitors aren’t split between two servers.
- 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 nohttp://, path or port. - Forgetting www:
example.comworks butwww.example.comdoesn’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.