DNS!  Not just a domain name.

DNS! Not just a domain name.

Beginner guide to what is DNS.

What is DNS?

DNS stands for Domain Name System. Think of it as the internet's phonebook. It translates human-friendly domain names (like www.google.com) into IP addresses (like 142.250.190.78) that computers use to communicate with each other.

Without DNS, you would need to remember long strings of numbers to visit your favorite websites!


Why is DNS Important?

  1. Scalable: It organizes the vast number of websites on the internet in a structured way.

  2. Fast & Efficient: DNS makes browsing seamless by quickly finding the right server for your request.

  3. Reliability: It ensures websites are accessible even if their IP address changes.


How DNS Works (Simplified Example)

  1. You type www.example.com in your browser.

  2. Your computer asks the Recursive Resolver for the IP address.

  3. The resolver:

    • Checks its cache.

    • If not found, asks the Root Server.

  4. The Root Server points it to the TLD Server for .com.

  5. The TLD Server directs it to the Authoritative Server for example.com.

  6. The Authoritative Server provides the IP address.

  7. Your browser connects to the website using the IP address.


Types of DNS You Should Know

  1. Recursive DNS Resolver

    • The first stop when you type a domain name.

    • Acts like a detective: it searches through multiple sources to find the IP address for the domain.

  2. Root DNS Server

    • The starting point of the DNS hierarchy.

    • Directs your query to the right Top-Level Domain (TLD) server.

  3. TLD DNS Server

    • Handles specific domain extensions like .com, .org, .net.

    • Points your query to the right Authoritative Name Server.

  4. Authoritative DNS Server

    • The final destination for your query.

    • It holds the actual record for the domain and provides the correct IP address.


DNS Hierarchy

DNS has a structured hierarchy, like a tree with multiple layers:

  1. Root Level

    • Represented by a single dot (.), though it's invisible in URLs.

    • Root servers manage TLDs like .com, .org, .net.

  2. TLD (Top-Level Domain)

    • These are domain extensions, e.g., .com, .edu, .uk.

    • Managed by specific TLD servers.

  3. Second-Level Domain

    • The name you recognize, like google in google.com.
  4. Subdomains


Fun Fact:

DNS caching happens at multiple levels (your browser, computer, and even your ISP), making it faster to revisit websites.

Thank You for visiting.