Learning Library

← Back to Library

How DNS Translates Domains to IPs

Key Points

  • DNS (Domain Name System) translates human‑readable domain names (e.g., ibm.com) into numerical IP addresses that computers use to locate resources on the Internet.
  • A DNS resolver acts like a phone book, matching a name to its corresponding IP number so users can access sites without remembering numeric addresses.
  • When a user enters a URL, the web browser first checks its local cache; if the address isn’t cached, the request is sent to the DNS resolver, which also checks its own cache before performing the lookup.
  • The lookup process ultimately retrieves the correct IP address from authoritative DNS servers, allowing the browser to route the request to the target website.
  • Caching at both the browser and resolver levels speeds up subsequent accesses and reduces unnecessary network traffic.

Full Transcript

# How DNS Translates Domains to IPs **Source:** [https://www.youtube.com/watch?v=nyH0nYhMW9M](https://www.youtube.com/watch?v=nyH0nYhMW9M) **Duration:** 00:07:24 ## Summary - DNS (Domain Name System) translates human‑readable domain names (e.g., ibm.com) into numerical IP addresses that computers use to locate resources on the Internet. - A DNS resolver acts like a phone book, matching a name to its corresponding IP number so users can access sites without remembering numeric addresses. - When a user enters a URL, the web browser first checks its local cache; if the address isn’t cached, the request is sent to the DNS resolver, which also checks its own cache before performing the lookup. - The lookup process ultimately retrieves the correct IP address from authoritative DNS servers, allowing the browser to route the request to the target website. - Caching at both the browser and resolver levels speeds up subsequent accesses and reduces unnecessary network traffic. ## Sections - [00:00:00](https://www.youtube.com/watch?v=nyH0nYhMW9M&t=0s) **Introducing DNS: Names to Numbers** - Pooja from IBM explains how the Domain Name System translates human-friendly domain names into IP addresses using a resolver acting like a phone book. - [00:03:27](https://www.youtube.com/watch?v=nyH0nYhMW9M&t=207s) **DNS Resolution Walkthrough: From Resolver to Authority** - The speaker explains how a DNS resolver, lacking a cached address, queries a root server, receives a referral to the appropriate TLD server, and then obtains the final authoritative name server’s IP address for the requested domain. - [00:06:50](https://www.youtube.com/watch?v=nyH0nYhMW9M&t=410s) **Everyday DNS Lookup Overview** - The speaker explains the routine process of DNS lookups when accessing websites and invites viewers to like, subscribe, and learn more on their website. ## Full Transcript
0:00Hey everyone, what is DNS? 0:03Have you ever wondered how you   access the web pages that you do 0:07almost every other day? 0:08I am Pooja, from IBM team 0:10and I'm going to explain to you how DNS works. 0:14DNS in short is called the Domain Name System. 0:18The domain name system translates domain names 0:22to IP addresses, and what is a  domain and what is an IP address? 0:29Let's take a look at that. 0:31First, let's see what a domain name is. 0:35A domain name is any text or string that you  basically enter in your web page. 0:41It could be ibm.com, google.com, abc.com, any of these. 0:47And what really is an IP address? 0:50IP address is a four set number, goes like this. 0:54Just going to write a random number for you here. 0:59I'm pretty sure you have all seen this IP address almost every day 1:03when you access these websites and says  oh you know your web browser is down. 1:07You know, you're not able to access the DNS that you're looking for. 1:10So, let's take an example, abc.com. 1:15What happens is, instead of typing abc.com, if you  type in the IP address of that particular website 1:21in your web browser you will actually   be routed to the web page. 1:26Now, the main component of the DNS system 1:30is the DNS resolver. 1:32So, the DNS resolver acts as the phone book in this entire thing. 1:39How do we bridge the gap between   the human communication 1:43and the DNS, and the networking world? 1:45So, in the networking world the computers  use numbers to communicate with each other, and in 1:51the human world we use names to communicate with  each other, and here DNS resolver acts as a phone 1:58book where you search the name and match it to the  number. The IP address is the internet protocol 2:05that has a set of rules that helps millions of  devices communicate with each other and that's 2:10why we have these IP addresses allocated  to each and every device on the internet. 2:16All these devices communicate using this  unique identifier, and since as humans 2:22we are not accustomed to remembering names, we  use these domain names, to remembering numbers, 2:29we use the domain names and that's how we  resolve using the DNS resolver. Now that 2:35we know an overview of the domain name system  let's take a look at how the DNS lookup happens. 2:43So the first step in the DNS lookup is the user. 2:47This is where we enter the website address from  our web page and you are going to be the actor 2:56here. So, the web browser has what we call the  cache memory. The cache memory stores certain 3:06values for a certain time period of time. So, when  you enter the address abc.com let's say, what 3:15happens is it looks in the cache memory first and  when we say, "oh, i don't have the IP address of 3:21the particular website that you're looking for,"  we forward the request to the main DNS resolver. 3:29So this is going to be our  DNS resolver for the day, 3:37and now from here the DNS  resolver has its own cache. 3:43It looks at its cache and says "hey, i don't have  the IP address of the particular website that you 3:50are looking for. So what i'm going to do is i'm  going to route your request to the root server." 3:56I'm going to use a different  color. So, this is the root server 4:04and root server is the top server at  the top level in the DNS hierarchy, 4:11and the root server still doesn't have the  information of abc.com that you're looking for, 4:17but what it does have is the information  about the top level domain server 4:22that you have to route your request to. Also the  root server is placed across different locations 4:28throughout the world there are almost  hundreds of these root servers placed, 4:33and there are 12 different organizations that  manage these root servers, and from there we 4:39get the top level domain server's IP address.  So, now we send the request to the TLD server. 4:47And the TLD is nothing but "Top Level Domain",  which basically means it has all the information 4:54for the top level domain, and in this  case the top level domain is going to be 4:59a dot com. So it could be anything like dot  net, dot org, as such. What it does say is 5:08"hey, i don't have the ip address of abc.com, but  i can send your request to the authoritative name 5:15server. I can send the IP address to which  you need to send your request to, and the 5:19authoritative name server has all the information  and all the DNS records that we need to access. 5:26So basically the authoritative name server  renders the DNS records that we need to access. 5:35So the request is sent to the auth name server, 5:39oh and we can also call it as the domain  name server, and lot of cloud providers 5:44across all over the world provide this server  ability, and you can use multitude of them. 5:54So this is going to be our authoritative name  server, and what the authoritative name server 5:59does it sends back the IP address of the  particular website that we are looking for, 6:05and now we get the IP address back to the  DNS resolver so the DNS resolver now stores 6:11it in the cache. I store it in the cache  and I send it back to the web browser, 6:18and now the web browser has the IP address  that it was looking for. What it does is it 6:24sends the request to the particular web server  that points in the IP address that's been sent. 6:30So, this is the web server of any particular  website that you're probably accessing. In 6:36this case it is going to be abc.com. So, now  the web server has all the content that is 6:44needed to display in your web page. What we  render back is the content of your web page. 6:52This is the entire working of our DNS lookup and  this is what we almost do in every day when we 7:00access different websites all over the internet.  I hope you find this video very informative. 7:09If you like this video and want to  see more like it please like and 7:12subscribe. If you have questions please drop  them in the comments below. Also if you need 7:18to learn more about the DNS services please visit  our website for the domain name system services.