What happens when you type in www.xyz.com

Vaibhav Namburi
2 min readJun 17, 2017

--

How Does the Domain Name System work ?

How does the internet know what to get you and how to get you your website ?

This blog will be relatively shorter than most because it’s straightforward to explain, considering that a few steps are going to be skipped and only the main necessary logic points will be explained!

Lets go!

Side note: have a look at the diagram, that should simplify things for you :D

When you type in www.xyz.com in your browser what happens ? You set up a “query” or a question to send to a server. The first server your query hits is called the Recursive Resolver, which is usually operated by your internet service provider (Voda, Telstra). The recursive resolver knows which other DNS server or domain name system servers to ask the original question of “What is the IP of www.xyz.com” — IP stands for internet protocol, think of it as an address, or perhaps like your phone number.

The first DNS server the recursive resolver talks to is the Root Server which are running all over the world and have information about Top Level Domains such as .com/.net. So the recursive resolver asks the root server for DNS info regarding .com. — Note that theres 1000s of servers supporting the root and its the DNS’ job to find the answer to your query quickly!

The Top Level Domain DNS server stores information regarding the second level domains i.e the .com sever stores information regarding xyz.com. I.e the TLD DNS server responds back with the IP address of the domain’s name server, which gives us the next clue!

The recursive resolver then takes this IP and sends a query to the domain’s name server, this DNS server knows the IP address of our website www.xyz.com and returns to the recursive resolver the IP address of our website.

After all this, the website appears in our browser, and voila done!
PS all this happens in a fraction of a second!

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Vaibhav Namburi
Vaibhav Namburi

Written by Vaibhav Namburi

I’m the founder of five2one and laddr. I’ve been deeply embedded in tech and product for a while and have learnt alot in that space. Just sharing some learnings

Responses (1)

Write a response