Network guides
How DNS Works: A Practical Guide to Domain Name Resolution
When you type a domain name into your browser, the internet does not actually know what that name means. Computers talk to each other using IP addresses, not names. The Domain Name System (DNS) is the phone book of the internet: it translates a human-readable name like netchecks.org into a machine-readable address like 203.0.113.10.
This translation happens in milliseconds and usually goes unnoticed. Yet when it fails, the internet seems completely broken: websites stop loading, email bounces, and automated systems report errors. Understanding how DNS works is therefore not just theory - it is the key to diagnosing a large share of network problems.
-
1983
The domain name system is born
Paul Mockapetris publishes the first DNS specification, replacing the single hosts file that had to be manually updated on every machine on the ARPANET.
-
1990s
The web makes names essential
The explosion of the web turns human-readable domains into the primary interface of the internet, and registrars open a commercial market for them.
-
2000s
Security and resilience arrive
DNSSEC is deployed to authenticate answers, while anycast distributes the root servers for speed, reliability and resistance to attacks.
-
Today
A modern, encrypted DNS
Recursive resolvers adopt DNS over HTTPS and DNS over TLS, protecting privacy and making resolution harder to tamper with.
What DNS does and why it matters
DNS is a distributed database that maps names to records. When you register a domain, you delegate control over its records to an authoritative name server, which stores entries such as A records (IPv4 addresses), AAAA records (IPv6 addresses), MX records (mail servers) and CNAME records (aliases). This delegation is what makes DNS scalable: no single server holds the entire internet.
Because names are the main interface humans use to reach services, DNS is a foundational dependency. Almost every connection starts with a resolution. When a service appears down, the first question should be whether the name even resolves. A basic understanding of the lookup path saves hours of debugging.
The resolution path: from browser to authoritative server
The journey begins on your device, where a resolver is configured - usually your router or your ISP. Your browser asks this recursive resolver for the IP address of netchecks.org. If the resolver has no cached answer, it starts from the top: a root server points to the server responsible for the .org top-level domain, and that TLD server points to the authoritative server for netchecks.org.
The authoritative server finally returns the A record with the IP address. Each step is a separate query, and each answer is cached along the way. This multi-stage dance is why the very first lookup of a name can take a moment, while the next one is almost instant.
Recursive versus authoritative servers, caching and TTL
The recursive resolver is the worker that does the whole journey for you. It accepts your query, walks the chain of servers and returns the final answer. The authoritative server is the source of truth: it is the only place that knows the definitive records for a domain. Confusing the two is common, but they play very different roles. Most of the resolvers you use day to day are recursive, not authoritative.
To avoid redoing the whole walk for every request, resolvers cache answers for a duration defined by the TTL, the time to live attached to each record. A short TTL means fast propagation of changes, while a long TTL means faster lookups but slower updates. Understanding TTL is essential whenever you change a DNS record.
How to diagnose a resolution problem
When a name does not resolve, the fastest diagnostic is a lookup tool. A good tool can query any of the server types directly, showing you the root, TLD and authoritative answers step by step, or interrogate a specific recursive resolver. If a lookup returns the expected record but your browser still fails, the problem is likely elsewhere: your local cache, your resolver, or a firewall.
Start by testing several resolvers. If public resolvers return a correct answer while your local resolver does not, your resolver or router is at fault. If every resolver fails, the problem sits on the authoritative side. Comparing results isolates the broken layer quickly.
要点总结
DNS is a layered system of caches, resolvers and authoritative servers. Knowing who answers which query, and how caching and TTL affect propagation, lets you isolate a failing layer in minutes instead of hours.