Skip to content
AdminKit

A record

What is A record?

An A record is the basic DNS record type that maps a hostname to an IPv4 address, defined in RFC 1035. A domain can publish several for the same name to spread traffic across servers. AdminKit's DNS lookup tool queries a domain's A records alongside AAAA, MX, TXT, NS and CAA in one lookup.

By AdminKit team, Netbase JSC · Updated

An A record is the basic DNS record type that maps a hostname to an IPv4 address, defined in RFC 1035 alongside the rest of the core DNS record set and listed as type 1 in IANA’s DNS Parameters registry. When a resolver looks up a domain’s A record, it gets back one or more 32-bit IPv4 addresses a client can connect to directly; a domain can publish several A records for the same name to spread traffic across multiple servers, a simple form of load distribution usually called round-robin DNS. The IPv6 counterpart, the AAAA record (RFC 3596), serves the same purpose for 128-bit addresses, and a dual-stack domain typically publishes both for the same hostname. AdminKit’s DNS lookup tool queries a domain’s A records alongside AAAA, MX, TXT, NS and CAA in a single lookup, making it easy to confirm which IPv4 address visitors will actually reach. Managed DNS services describe it the same way: Microsoft’s Azure DNS documentation calls the A record the most common record type, mapping a name to an IPv4 address. Its IPv6 counterpart is the AAAA record, which a dual-stack domain typically publishes alongside it. A single wildcard DNS record can also answer for an entire set of subdomains that have no A record of their own, rather than one being published per name. A client connecting to a dual-stack host usually races both addresses rather than trying one after the other — see the Happy Eyeballs entry for how that race works.

AdminKit groups a record under its DNS cluster — browse the AdminKit glossary index for other related terms.

Frequently asked questions

Can a domain have more than one A record?

Yes -- a domain can publish several A records for the same name to spread traffic across multiple servers, a simple form of load distribution usually called round-robin DNS.

What's the difference between an A record and an AAAA record?

An A record maps a hostname to a 32-bit IPv4 address; an AAAA record (RFC 3596) does the same job for a 128-bit IPv6 address. A dual-stack domain typically publishes both for the same hostname.

What happens when a client connects to a host with both A and AAAA records?

It typically races a connection to both addresses rather than trying one after the other and waiting for a failure -- a technique called Happy Eyeballs -- so a slow or broken address family doesn't stall the connection.

Does every subdomain need its own A record?

No -- a single wildcard DNS record can answer for an entire set of subdomains that have no A record of their own, rather than one being published per name.