DNS: The Internet's Address Book

DNS turns a domain name (such as myshop.com) into an IP address. The browser always asks DNS first, then sends its request to the IP address it got.

You type myshop.com, not 203.0.113.10, MyShop's IP address. A name is easy to remember; a row of numbers is not. But a message can only be sent to an IP address. So before it sends anything, the browser has to find the IP address that belongs to the name.

The internet's address book

DNS (Domain Name System) is the internet's address book. DNS turns a domain name (the name of a site, such as myshop.com) into an IP address. DNS works like the contacts on your phone: you search for the name "Rara", and your phone knows her phone number. On the internet, the browser gives a domain name, and DNS knows its IP address.

The order is always the same: the browser asks DNS first, gets the IP address, and only then sends its request to that IP address. If the domain name is mistyped, for example myshop.con, DNS finds no IP address for it, and the page cannot open at all.

TL;DR: DNS turns a domain name (such as myshop.com) into an IP address. The browser always asks DNS first, then sends its request to the IP address it got.

⚡ The internet's address book

Guess first: you type myshop.com. Can the browser send its request directly to that name?

No. A message can only be sent to an IP address, so the browser has to find the IP address for that name first.

Meaning: DNS turns a domain name (the name of a site, such as myshop.com) into an IP address (such as 203.0.113.10). DNS works like the contacts on your phone: you search for a name, and your phone knows the phone number. The browser gives a domain name, and DNS knows its IP address.

⚡ Ask first, then send

Guess first: Dina mistypes myshop.com as myshop.con. What happens?

DNS finds no IP address for that name, so the page cannot open at all.

Meaning: The browser always works in the same order: it asks DNS first, gets the IP address, and only then sends its request to that IP address.

What you will learn