What an A record is
An A record connects a name to an IPv4 address, such as 93.184.216.34. Its IPv6 twin is the AAAA record. When you type a web address, your browser asks DNS for these records to find the server. This lookup shows both, so you know where a name points.
What you get
- IPv4 and IPv6 addresses with their TTL. Choose to look up one of them or both.
- The CNAME chain. Many names are aliases. For www.example.com the chain may go through several names before it reaches an address, and the lookup lists every step.
- Reverse DNS. For each address, the tool asks for the PTR record, which often shows the name of the hosting company or the CDN.
- Address type. Each address is marked as public, private, loopback, link-local or shared address space. A public name that points to a private address, such as 192.168.1.10, is usually a mistake.
Several addresses for one name
A name can have many A records. This is called round robin: resolvers return them in changing order, and clients spread the load between them. Large sites also use many addresses for redundancy. The order in the result is not important.
A record or CNAME?
- Use an A record when you know the IP address of the server.
- Use a CNAME when a name should follow another name, such as www pointing to your host or a CDN. A CNAME cannot sit next to other records on the same name, and it cannot be used at the root of a domain (the apex), where the NS and SOA records live. Many DNS providers offer an ALIAS or flattened CNAME for that case.
Common reasons for a wrong result
- The A record points to an old server after a move. Check the TTL and wait for it to pass.
- The record exists for the root domain but not for www, or the other way round.
- An AAAA record points to an IPv6 address where the server does not listen, so some visitors see errors.
- A CDN or proxy hides the real address, and you see the address of the proxy.
For all record types at once, use the DNS lookup. To see whether two resolvers agree after a change, use the DNS record checker. Read about address blocks in the CIDR guide, and work with ranges in the CIDR to IP range tool. The DNS records guide explains the types.