Open In App

DNS Look-Up

Prerequisite – Domain Name System (DNS) 

Need of DNS : There are 232 IP Addresses (approximately 4, 294, 967, 296). With growth of internet at a rapid pace came issue of remembering websites with their IP Address (not an issue if superhuman or bot pretending to be human). This issue was resolved using DNS. Domain Name System is method of resolving human-understandable URLs into their respective IP addresses. While you enter URL (this URL is known as FQDN – Fully Qualified Domain Name) into browser, DNS takes care of looking at actual IP address associated with website. 



DNS Look-Up : To resolve such DNS queries, there are Domain Name Servers built across world that takes your DNS look-up request and resolve it. There are 5 types of Name Servers –

  1. Caching Name Servers.
  2. Recursive Name Servers.
  3. Root Name Servers.
  4. Top Level Domain (TLD) Name Servers.
  5. Authoritative Name Servers.

Caching and Recursive Name Servers are generally provided by Internet Service Providers. Purpose of Caching Name Server is to store known domain names for certain amount of time (similar to caching in data storage). Recursive Name Server performs Full Name Resolution. There are 13 Root Name Servers across globe, responsible for directing requests to appropriate TLD Server. Figure – DNS Look-up
 



<IP-Address> <Domain-name>

Example –

127.0.0.1 localhost
216.58.203.36 www.google.com

This strict hierarchy maintains stability of internet by resolving every lookup in correct manner. This protects against malicious redirecting traffic. Nowadays devices have built-in local cache servers to prevent performing DNS lookup for every new TCP connection.

Article Tags :