Course contentsShow
← Computer Science
Lesson 1504 of 2,87235. Application Layer ProtocolsFree lesson

DNS Record Types: A and AAAA

Understanding A records that map domain names to IPv4 addresses and AAAA records that map to IPv6 addresses.

DNS Record Types: A and AAAA

What you'll learn: How DNS uses A and AAAA records to translate human-readable domain names into machine-usable IP addresses.

The Translation Problem

You already know DNS exists to map domain names (like example.com) to IP addresses. But DNS stores many different types of records for each domain. The two most fundamental are A records and AAAA records—these are the core mappings that make the web browsable.

A Records: IPv4 Addresses

An A record (short for "Address record") maps a domain name to an IPv4 address.

Example:

example.com.    A    192.0.2.1

This tells DNS: "When someone asks for example.com, send them to IPv4 address 192.0.2.1." Think of it like a phone book entry: name → number. Every time your browser needs to connect to a website, it typically starts by looking up the A record.

AAAA Records: IPv6 Addresses

A AAAA record (pronounced "quad-A") does the exact same job, but for IPv6 addresses.

Example:

example.com.    AAAA    2001:0db8::1

The "AAAA" name reflects that IPv6 addresses are four times longer than IPv4 (128 bits vs 32 bits). When your device supports IPv6, it will query for AAAA records alongside or instead of A records.

Both Can Coexist

Modern domains often have both A and AAAA records, supporting dual-stack connectivity. A DNS client can choose which to use based on its own network capabilities—if it has IPv6 connectivity, it typically prefers AAAA.

Key Takeaway: A records map domain names to IPv4 addresses, while AAAA records map them to IPv6 addresses—together, they form the foundation of DNS name resolution.