CSNetworkingDiagramBeginner
DNS Resolution
KO: DNS 질의 (DNS Resolution)·EN: DNS Resolution·JA: DNS名前解決·DNS
The hierarchical lookup process translating human-readable domain names into IP addresses via local caches, recursive resolvers, Root, TLD, and authoritative servers
Table of Contents
Structure Diagram
DNS Hierarchical Resolution FlowTap a node
ROOTBrowser / OS Cache
1 linkQuick Answer
What is DNS Resolution?
The hierarchical lookup process translating human-readable domain names into IP addresses via local caches, recursive resolvers, Root, TLD, and authoritative servers. It is a core concept in Networking within CS.
Core Principles
DNS Resolution translates human-readable domain names into IP addresses through a globally distributed hierarchy.
- Lookup Chain: Browser cache → OS cache → Recursive Resolver (
1.1.1.1,8.8.8.8). - Iterative Walk: On cache miss, the resolver queries Root (
.) → TLD (.com) → Authoritative NS to fetchA/AAAArecords and caches them for the record's TTL. - Transport: Uses lightweight UDP port 53 by default, falling back to TCP for large responses or encrypted DoH/DoT.
Practical Takeaways
- Lower TTL before migrations: Drop TTL (e.g., 3600s → 60s) well ahead of an IP cutover so stale caches expire quickly.
- Apex domain rules: Standard DNS forbids
CNAMEat the zone apex (example.com); use provider Alias records or CNAME flattening. - GeoDNS & Health Checks: Return the nearest healthy regional IP to minimize latency and route around outages.
Notable Examples
- Global CDNs & Failover: Cloudflare DNS and AWS Route 53 steering users to healthy edges.
- Kubernetes CoreDNS: Internal service discovery mapping service names to cluster IPs.