RFC 1035 · Naming Layer

DNS Resolution & Record Architecture

Before opening a TCP socket or upgrading to a WebSocket, the browser resolves the target hostname into an IPv4 or IPv6 address through the Domain Name System (DNS).

1. Step-by-Step Resolution Chain

2. Core DNS Record Types

TypeTargetBehavior
AIPv4Maps a hostname to a 32-bit IPv4 address.
AAAAIPv6Maps a hostname to a 128-bit IPv6 address.
CNAMEHostnameAliases one hostname to another canonical domain.
TXTUTF-8 TextStores verification tokens and policy records.

3. TTL & Negative Caching

Resolvers cache records for their TTL in seconds. Missing domains (NXDOMAIN) are cached using the zone's SOA minimum TTL.

4. DoH vs. DoT