How DNS Lookup Works: A and AAAA Records Explained
When you type a domain into a browser, DNS translates it to an IP address. This guide explains how DNS resolution works and the difference between A and AAAA records.
ProfitTool Team
Security & Dev
The DNS Hierarchy
The Domain Name System is a distributed database organised as a hierarchy. At the top are the root nameservers (13 sets, operated by different organisations). Below them are TLD nameservers (for .com, .net, .io, etc.). Below them are authoritative nameservers for individual domains.
The Resolution Process
When you visit profittool.io:
- Your browser checks its local cache.
- If not cached, it asks your operating system's resolver.
- The resolver asks a recursive resolver (usually your ISP or 8.8.8.8).
- The recursive resolver asks the root nameserver: "Who handles .io?"
- The root returns the .io TLD nameserver addresses.
- The recursive resolver asks the .io TLD: "Who handles profittool.io?"
- The TLD returns the authoritative nameservers for profittool.io.
- The recursive resolver asks the authoritative nameserver for the A record.
- The authoritative nameserver returns the IP address.
- The recursive resolver caches the result (for the duration of the TTL) and returns it to your browser.
A Records (IPv4)
An A record maps a domain name to an IPv4 address:
profittool.io 300 IN A 104.21.42.100The number 300 is the TTL (Time To Live) in seconds — how long resolvers may cache this answer.
AAAA Records (IPv6)
An AAAA record maps a domain name to an IPv6 address:
profittool.io 300 IN AAAA 2606:4700:3031::6815:2a64The four-A name reflects that an IPv6 address is four times longer than IPv4.
TTL and Propagation
When you change a DNS record, the change propagates only after the old TTL expires. Resolvers that cached the old record continue serving it until their cached copy expires. This is why DNS changes can take minutes to hours to propagate globally, depending on the TTL value.
Use our DNS Lookup tool to inspect any domain's A, AAAA, MX, TXT, NS, CNAME, SOA and CAA records instantly.
ProfitTool Team
Security & DevWritten and maintained by the ProfitTool team. Where an article references a ProfitTool utility, the behaviour described is the behaviour of the tool on this site — you can open it and check the output yourself.
More from the Knowledge Hub
What Is a Reverse DNS Lookup (PTR Record)?
A reverse DNS lookup maps an IP address back to a hostname through a PTR record. How PTR records work, and why mail servers check them before accepting.
Developer ToolsCIDR Notation Explained: How IP Ranges and Subnets Work
CIDR notation writes an IP range as a prefix length. What /24 and /16 actually mean, how they map to subnet masks, and how to count the addresses in a block.
Developer ToolsPrivate IP Address Ranges Explained: 10.x, 172.16.x and 192.168.x
Private IP addresses are ranges reserved for internal networks that are not routable on the public internet. This guide covers RFC 1918, why these ranges exist, and how NAT works with them.