DNS, the Domain Name System, is the part of the internet that turns a name such as example.com into the numeric IP address a computer needs in order to reach the right server. Applications commonly use DNS to find services by name. Cached answers or existing connections can avoid a new lookup; direct IP connections do not require a name lookup.
This guide covers what DNS is, which servers take part in a lookup, what happens step by step, and where answers are cached. It focuses on what matters to a domain owner: how a name finds its way to a server, and what to look at when it does not.
What DNS is, in one paragraph
Computers find each other by IP address. People remember names. DNS is the distributed database that connects the two: it stores records for each domain name and answers queries about them. The records themselves are explained in what is a DNS record, and the servers that hold them in what is a nameserver.
Because every domain's records live with its own nameservers rather than in one central list, DNS can grow without a single bottleneck. No company owns the database as a whole; registries, registrars and hosting providers each maintain their part of it.
Need the domain first?
Runs the same live check as the front page. If it is taken we will show you when it expires.
The four servers involved in a lookup
A query normally passes through four kinds of server, each with a different job. When nothing is cached, they work in sequence.
- Recursive resolver. The first stop. It receives the query from your device and takes responsibility for finding the answer, either from its own cache or by asking other servers.
- Root nameserver. The starting point of the search. It does not know the address of your website, only which top-level domain server handles the extension in the name, such as .com.
- TLD nameserver. Handles a single extension and holds the delegation for every domain under it. For example.com it points the resolver to the nameservers listed for example.com.
- Authoritative nameserver. Holds the domain's real records and returns the final answer. It is the source of truth for that zone.
There are 13 root server identities, but they are not 13 machines. Each identity is served by many copies in different locations, so the system keeps working if one location fails.


What happens when you type a domain
With an empty cache, a lookup follows a fixed path. The first eight steps produce an IP address; the last two use it.
- You enter example.com in the browser. The query leaves your device and reaches a recursive resolver.
- The resolver asks a root nameserver.
- The root server replies with the address of the .com TLD nameserver.
- The resolver queries that TLD nameserver.
- The TLD server replies with the addresses of the domain's own nameservers.
- The resolver queries the domain's nameserver.
- The nameserver returns the IP address for example.com.
- The resolver passes that address back to your browser.
- The browser makes an HTTP request to the IP address.
- The server at that address returns the page, and the browser renders it.
Only steps 1 to 8 are DNS. The last two are the actual web request, which is why a DNS problem shows up as a failure before any page content arrives.
Recursive, iterative and non-recursive queries
Not every query is the same. Three types appear during a normal lookup:
- Recursive query. The client asks a server, usually a resolver, for either the record or an error. The resolver is expected to do the work rather than hand back a partial answer.
- Iterative query. The server returns the best answer it has. If it does not hold the record, it refers the client to a server closer to the answer, and the client asks again.
- Non-recursive query. The answer is already known, either because the server is authoritative for the record or because the record is in its cache. No further requests are needed.
In practice your device sends a recursive query to a resolver, and that resolver makes a series of iterative queries on your behalf.
Where DNS answers are cached
Caching is what keeps DNS fast. An answer is stored close to the client for a limited time, so the next query can be answered without repeating the whole chain. There are three usual places.
Browser cache
Browsers keep DNS records for a short period. This is the first place checked when a page is requested, and it saves a round trip to the operating system.
Operating system cache
The stub resolver inside your operating system is the last local stop before a query leaves the machine. It checks its own cache and, on a miss, sends a recursive query to the resolver configured for your network, often the one provided by your ISP.
Resolver cache
Recursive resolvers cache what they learn from authoritative servers. A resolver that already holds the NS records for a domain can query the domain's nameservers directly and skip the root and TLD steps entirely.
What TTL means for a domain owner
Each record carries a time to live, or TTL, in seconds. It tells caches how long they may keep the answer before asking again. A high TTL reduces query volume and makes lookups faster for repeat visitors; a low TTL means a change spreads sooner, at the cost of more queries.
That trade-off matters when you move hosting or change a record. A common approach is to lower the TTL well before a planned change, so old answers expire quickly once the new values are published. After the change, the old value can still be served from caches until its TTL runs out, so different visitors may see different addresses for a while.
What DNS does not do
DNS only answers where a name points. It does not host your website, serve its files, or encrypt the connection; HTTPS is handled by TLS after the browser has the address. It also does not guarantee that the server is healthy, only that the name maps to it. Extensions such as DNSSEC add authentication of the answers, but not confidentiality.
Frequently asked questions
Is DNS the same thing as a domain name?
No. A domain name is the label you register, such as example.com. DNS is the system that stores and serves information about that name. A registered domain with no DNS records will not load anything.
Can a domain work without a nameserver?
No. A domain needs authoritative nameservers before its records can be found. Setting them is part of getting a domain live, either through your registrar or through a DNS provider.
How long do DNS changes take?
For a record edit, timing depends on the DNS provider publishing the change and caches expiring their old answers. Changing nameserver delegation also involves the registrar and registry. There is no single deadline for every kind of DNS change.
Does DNS affect SEO?
Only indirectly. Search engines need to resolve your domain to crawl it, and a slow or failing resolver adds delay. Beyond reachability, DNS is not a ranking factor in itself.
Sources
- Cloudflare Learning Center: What is DNS?
- Cloudflare Learning Center: DNS server types
- IANA: Domain Name System (DNS) parameters
Use our DNS lookup to inspect public records while troubleshooting a domain.