DNS
gocourse.in Maintenance

We'll be back soon

Our CDN (cdn.gocourse.in) is currently unreachable. Some images, JavaScript, or CSS files may not load properly.

Estimated downtime: ~30 minutes

DNS

Sabareshwari

Introduction

Imagine trying to call your friend without saving their name in your phone. Instead of selecting their name, you would have to remember their 10-digit phone number every time. This would be difficult and inconvenient.

The Internet faces a similar challenge. Every website is hosted on a server that has a unique numerical address known as an IP (Internet Protocol) address. Since remembering numbers is difficult, the Domain Name System (DNS) was developed to translate easy-to-remember website names into IP addresses.

For example, instead of remembering an IP address such as 142.250.190.14, users simply type www.google.com into their web browser. DNS automatically converts the domain name into its corresponding IP address, allowing the browser to locate the correct web server.

Because of this functionality, DNS is often referred to as the "Phone Book of the Internet."

What is DNS?

DNS (Domain Name System) is a distributed and hierarchical naming system used in computer networks to translate human-readable domain names into machine-readable IP addresses.

In simple terms, DNS acts as a translator between humans and computers.
  • Humans remember website names.
  • Computers communicate using IP addresses.
  • DNS connects the two.
Without DNS, users would need to memorize the IP address of every website they want to visit.

Definition

Domain Name System (DNS) is a network service that maps domain names to IP addresses, enabling users to access websites using meaningful names instead of numerical addresses.

Why Do We Need DNS?

Every device connected to the Internet has a unique IP address. While computers can easily process these addresses, they are difficult for humans to remember.

For example:

Instead of typing:
142.250.190.14

you simply type:
www.google.com

DNS finds the correct IP address and connects your browser to Google's server.

Benefits of DNS

  • Eliminates the need to memorize IP addresses.
  • Makes browsing easier and faster.
  • Allows websites to change IP addresses without affecting users.
  • Supports billions of websites worldwide.
  • Simplifies Internet communication.

Real-World Example

Think of your mobile phone's contact list.

Instead of remembering your friend's phone number, you simply search for their name.

         Mobile Phone           Internet 
         Contact Name            Domain Name 
         Phone Number           IP Address 
         Contact List                DNS 

DNS works exactly like your phone's contact book.

Features of DNS

DNS provides several important features that make the Internet efficient and user-friendly.

1. Human-Friendly Naming

Users can remember names like:

www.amazon.com

instead of:
205.251.242.103

2. Distributed Database

DNS information is stored across thousands of DNS servers worldwide rather than in one central location.

This improves:
  • Reliability
  • Availability
  • Fault tolerance

3. Hierarchical Structure

DNS follows a tree-like hierarchy.


Hierarchical Structure.svg


4. Fast Name Resolution

DNS uses caching to store previously visited website addresses, reducing lookup time.

5. Scalability

DNS can efficiently manage billions of domain names across the Internet.

6. Platform Independent

DNS works across all operating systems, including:
  • Windows
  • Linux
  • macOS
  • Android
  • iOS

Domain Name Space

The Domain Name Space is the logical organization of all domain names on the Internet.

It is arranged as an inverted tree.


Domain Name Space.svg


Each level of the tree represents a different part of the domain name.

Example:

www.example.com

Part and its Meaning:
  • Www (Host Name)
  • Example (Second-Level Domain)
  • Com  (Top-Level Domain (TLD))
  • .   (Root Domain)

Types of Domain Names

DNS divides domain names into three major categories.
  1. Generic Domains
  2. Country Code Domains
  3. Reverse Domains

1. Generic Domains (gTLD)

Generic domains classify organizations based on their purpose.

Some commonly used generic domains are:

             Domain                Used For 
              .com           Commercial organizations 
              .org             Non-profit organizations 
              .edu            Educational institutions 
              .gov            Government organizations 
              .net             Network service providers 
             .mil              Military organizations 
             .info             Information websites 
             .biz              Business organizations 
           .name            Personal websites 
        .museum           Museums 
           coop             Cooperative organizations 
           .pro               Professional services 

Example

www.microsoft.com

Here,
  • microsoft is the domain.
  • .com indicates a commercial organization.

2. Country Code Top-Level Domains (ccTLD)

Country domains represent specific countries using two-letter codes defined by international standards.

Examples include:

Country             Domain 
India                     .in
United State          .us
United Kingdom   .uk
Australia               .au
Japan                     .jp
Canada                  .ca
Germany               .de
France                   .fr

Example

www.nic.in
The .in extension indicates that the domain belongs to India.

3. Reverse Domain

Normally, DNS converts:

Domain Name → IP Address

A Reverse DNS Lookup performs the opposite operation:

IP Address → Domain Name

This process is mainly used by:
  • Email servers
  • Security systems
  • Network administrators
  • Troubleshooting tools

Example

A mail server may verify whether the IP address 192.168.1.10 belongs to mail.example.com before accepting an email. This helps reduce spam and improves server authentication.


Our website uses cookies to enhance your experience. Learn More
Accept !