Webservers use IP addresses, for example you have:

  • Facebook.com –
  • YouTube.com –

Humans are much better at using Domain Names but Webservers are better at understanding IP addresses.

Here is where DNS comes in, DNS takes out Domain name and converts it into IP addresses.

  1. Your computer will check it’s local cache both on the computer and the web browser. Also a local configuration file is checked.
  2. If there are no cache entries found, you computer will send a DNS recursive resolver (QUERY) asking for an IP address.
  3. DNS recursive resolver(usually managed by the ISP) then checks it’s cache. If it can’t find it in it’s cache then it will send it to the Root Name Server.
  4. Root Name Server is at the top of the DNS hierarchy. They can refer requests to the TLD (Top Level Domain) server.
  5. TLD Name Server contains information for domains with a specific extension such as .com .org .net etc.
  6. Last step of the DNS lookup, is to send it to the Authoritative Name Server which holds DNS record information for the domains they serve.
Image from: https://www.freecodecamp.org/news/what-is-dns/

Leave a Reply

Your email address will not be published. Required fields are marked *