How it works · 12 of 36 Foundation
How does DNS turn a domain name into an IP address?
Turning a name into an IP address
DNS: DNS (the Domain Name System) looks up the IP address for a name, so the device can connect. It is asked before almost every connection.
Loading the animation…
Say it like this DNS is the internet's phone book: you give it a name like ashasbakery.in and it gives back the IP address, asking desk to desk and remembering the answer for a while.
Under the hood — for builders
- Real case: when Facebook's name servers vanished
- On 4 October 2021 Facebook's network problem made its own DNS servers withdraw from the internet. They were still running, but nobody could ask them:
- The top of the tree
- Every lookup that isn't already remembered starts at the root. The root is not one machine:
- Worked example: why the second visit is faster
- The resolver remembers each answer for as long as the name's owner allows (the TTL, time to live). Count the hops on the card:
- Resolver
- The server that does the asking for you, usually your provider's. You can choose another in your settings.
- Name server
- The authoritative one: it holds the real answers for its own names, ashasbakery.in among them.
- Measure it
- Windows: nslookup example.com prints the address and which resolver answered. Run it twice: the second is quicker.
- Watch out
- Moving a site? Old answers live on in resolvers until their TTL runs out. Lower the TTL a day before the move.
- Sources
- Meta Engineering, October 4 outage details. root-servers.org. RFC 1034 and RFC 1035 (resolvers, caching, TTL). Read 28 Nov 2026.
What happens in the DNS lookups animation, step by step?
- Your phone can only connect to numbers. Before it can open ashasbakery.in, DNS, the Domain Name System, must find the IP address.
- Your provider's resolver asks desk by desk: the root sends it to the .in registry, which sends it to the bakery's own name server.
- The name server answers 198.51.100.10. The resolver pins it on its board for an hour and hands it to your phone, which connects.
- Your turn: look ashasbakery.in up again, now or an hour later. Watch which desks get asked.
- If the name server can't be reached, the lookup fails: "site can't be reached", even with full Wi-Fi bars.
- DNS is the internet's phone book: name in, address out. Next: what's actually written in a domain's DNS entry?
What everyday example explains DNS lookups?
The internet's phone book: name in, number out.
Why should a team care about DNS lookups?
"site can't be reached" with working Wi-Fi is often DNS.