An A record ties a name to a server's address. That's the whole job. When someone types your domain into a browser, the A record is usually the row that tells the browser where to go.
The type is described in the original specification as "a host address". Its value is a "32 bit Internet address", the kind written as four numbers with dots between them.1
What the numbers are
An address is how computers find each other on the internet, much like a street number does for a house. The A record holds the older style, called IPv4. It's short, four groups of digits.1
The AAAA record holds the newer style, called IPv6. The specification says it "stores a single IPv6 address".2 That address is "A 128 bit IPv6 address is encoded in the data portion of an AAAA" record.2 In your settings it shows as long groups of letters and numbers separated by colons.
What you'll see in your settings
Look for a row with type A. The name column will usually show your bare domain, or an @ sign, or a word like www. The value column holds the address you were given by your web host.
Your host's setup page normally tells you the exact address to paste in. Copy it carefully. One wrong digit sends visitors to a different server, or to nowhere.
A few things you may notice:
- If the host gave you a long address with colons, it goes in an AAAA row, not an A row.
- Some providers add the rows for you when you connect a site.
One name, more than one address
A name can have both kinds of record at once. The specification adds that a host that "has more than one IPv6 address must have more than one such record".2
So if a site has two addresses, you'd see two rows, not one row with two values crammed in.
Only add an AAAA row if your host gave you a long address for it. A row pointing at a server that isn't listening is a fault that's hard to chase.
Other things that read these records
Websites aren't the only users. Mail systems look up addresses too. A mail server's name needs its own address row, which the page on MX records covers.
Checking what you've saved
After you save a row, read it back slowly. Is the type A for a short address and AAAA for a long one? Does the name column match the name you meant, the bare domain or a subdomain such as www? Is the value the one your host gave you, with nothing extra on the end?
Most mistakes here are small. A stray space, a missing dot or an old address left over from a previous host is usually the culprit.
Names that point at another name
Sometimes you don't want to type a number at all. You want one name to follow another, so that if the host changes its address you don't have to. That's a different record type, and it comes with rules. Read CNAME records and the rules that come with them.
Notes and sources
- RFC 1035: Domain names, implementation and specification, IETF (RFC Editor)
- RFC 3596: DNS Extensions to Support IPv6, IETF (RFC Editor)