01 / 04
Ask about the hostname.
In https://learn.example.com/moon, the name to resolve is learn.example.com. Your device asks a resolver for address records. The /moon path is not part of that question.
How the web works
DNS helps your browser find where to connect. It does not fetch the page. Follow one name through a lookup, then see what a cached answer skips.
Follow the explanation ↓Follow the idea
01 / 04
In https://learn.example.com/moon, the name to resolve is learn.example.com. Your device asks a resolver for address records. The /moon path is not part of that question.
02 / 04
Without a usable cached answer, a recursive resolver can ask a root server, a .com server and then an authoritative server for example.com. Each referral points it toward the next source of information; the root does not store every website’s address.
03 / 04
An address record can return an IPv4 or IPv6 address. Here the invented answer is 192.0.2.10. The browser can use the address to establish a connection, then send an HTTP request for /moon.
04 / 04
A valid cached answer may avoid repeating those upstream queries. Records have a time to live (TTL), so a cached answer is not kept forever. Real lookups can involve aliases, multiple addresses and caches at several layers.
Make a prediction
Choose an answer to check your reasoning.
Use the same hostname. Change only whether the resolver already has a usable answer.
Resolver → root → .com → authoritative answer. Then connect.
This is an illustrated explanation, not a live browser trace. Written for Nemonic with AI assistance; primary references checked November 6, 2026.