What an A record is
An A record maps a name to one IPv4 address, such as 93.184.216.34. It is the record a browser needs before it can open a connection to your server.
example.com. 300 IN A 93.184.216.34
Read it left to right: the name, the TTL in seconds, the class (always IN), the type, and the address.
More than one A record
A name can have several A records. Resolvers return all of them, and clients pick one, usually in rotating order. This spreads visitors across servers.
It is not a health check. If one of the addresses is dead, some visitors still get it and see a failure. Remove a dead address, or put a load balancer in front.
Common A record mistakes
- An old address after a move. The site loads for you and fails for others until the old TTL runs out.
- An A record next to a CNAME. A name with a CNAME may hold no other record. Providers reject it, or behave unpredictably.
- A private address.
10.x.x.x,172.16.x.xto172.31.x.xand192.168.x.xonly work inside a private network. - The www name forgotten.
example.comandwww.example.comare two names. Each needs its own record.