The Wayback Machine - https://web.archive.org/web/20241125055606/https://www.geeksforgeeks.org/whats-is-domain-name-systemdns/
Open In App

What is Domain Name System(DNS)?

Last Updated : 25 Sep, 2023
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

A Domain Name System (DNS) is a critical component of the Internet infrastructure that plays a fundamental role in connecting users to websites, services, and resources across the World Wide Web. It is essentially the “phone book” of the internet, translating user-friendly domain names (like www.example.com) into numerical IP addresses (such as 192.0.2.1) that computers and network devices use to locate one another on the internet.

dns-banner-(2)

DNS (Domain Name System)

History of DNS

The development of the DNS can be traced back to the early days of the internet, when it was a relatively small and tightly connected network called ARPANET. In the early 1980s, ARPANET introduced a centrally managed file called the “hosts.txt” file that mapped hostnames to IP addresses. As the internet grew rapidly, this approach became unmanageable.

In 1983, Paul Mockapetris and Jon Postel introduced the DNS as we know it today through RFC 882 and RFC 883, providing a distributed and hierarchical system for domain name resolution. This innovation paved the way for the scalable and efficient DNS architecture that underpins the modern internet.

Different Types of DNS Servers

The DNS is organized hierarchically, with a structured naming system to ensure that domain names are unique and globally resolvable. The key components of the DNS system include:

  • Domain Name: A domain name is a human-readable label that represents a specific location or resource on the internet. Domain names are structured as a hierarchy, with levels separated by dots (periods). For example, “[www.example.com](http://www.example.com/)” has three parts: “www” (subdomain), “example” (second-level domain), and “com” (top-level domain)
  • Top-Level Domain (TLD): TLDs are the highest level in the DNS hierarchy and represent categories of domain names. Common examples include “.com,” “.org,” “.net,” and country-code TLDs like “.uk” (United Kingdom) and “.jp” (Japan). ICANN (Internet Corporation for Assigned Names and Numbers) manages the assignment of TLDs.
  • Domain Name Registrar: Registrars are organizations accredited by ICANN to sell domain name registrations. They allow individuals and organizations to reserve and manage domain names within specific TLDs.
  • Authoritative Name Server: These are DNS servers that store and manage the DNS records for a specific domain. For example, “[ns1.example.com](http://ns1.example.com/)” might be the authoritative name server for the “[example.com](http://example.com/)” domain.
  • Recursive Resolver: These are DNS servers operated by internet service providers (ISPs) or third-party DNS service providers. They are responsible for receiving DNS queries from client devices and recursively resolving domain names by querying authoritative name servers.
  • Root Name Servers: At the top of the DNS hierarchy are 13 root name servers maintained by various organizations worldwide. These servers hold information about the TLDs and provide crucial pointers to authoritative name servers for each TLD.
  • Caching DNS Servers: These are typically provided by internet service providers (ISPs) or used by individuals and organizations. Caching DNS servers temporarily store DNS records they’ve recently looked up. When a user queries a domain, these servers check their cache first before querying authoritative DNS servers, which helps reduce DNS query load
  • Forwading DNS Servers: These servers are configured to forward DNS queries to other DNS servers instead of resolving themselves. For example, an organization might use a forwarding DNS server to send all DNS queries to their ISP’s DNS servers
  • Load Balancing DNS Servers: These servers distribute DNS queries across multiple IP addresses or server instances to balance traffic load and improve the availability and performance of services.
dns-image-(1)

DNS Server

Explanation of the entire process presented in the above diagram

1. From user computer do a DNS query to ISP’s recursive DNS server:

When a user enters a domain name (e.g., www.example.com) into a web browser, their computer sends a DNS query to their Internet Service Provider’s (ISP) recursive DNS server. The recursive DNS server is responsible for handling DNS queries on behalf of the user and tries to resolve the domain name.

2. Do a DNS query to Root DNS server:

If the recursive DNS server doesn’t have the IP address for the requested domain in its cache, it starts the resolution process by querying the root DNS server.The root DNS server is the top-level server in the DNS hierarchy, and it contains information about the authoritative DNS servers for top-level domains (TLDs), such as “.com,” “.org,” “.net,” etc.

3. Ask .com server to ISP’s recursive DNS server:

The root DNS server responds to the recursive DNS server’s query with a referral to the authoritative DNS server for the “.com” TLD.The recursive DNS server then queries the “.com” TLD DNS server for the IP address of the domain in question.

4. DNS query to Top Level domain DNS server “.com”:

The “.com” TLD DNS server, in response to the query from the recursive DNS server, provides a referral to the authoritative DNS server responsible for the specific domain, in this case, “example.com.”

5. Ask DYN server to ISP’s recursive DNS server:

The recursive DNS server queries the authoritative DNS server for “example.com.” The authoritative DNS server for “example.com” is often a Dynamic DNS (DYN) server that contains the specific DNS records for the domain, such as A records (for IP addresses), MX records (for mail servers), etc.

6. DNS query to Authoritative DYN DNS Server:

The authoritative DYN DNS server receives the query and looks up the requested DNS record, such as the A record for “www.example.com.”

7. Authoritative response to ISP’s recursive DNS server:

The authoritative DYN DNS server responds to the recursive DNS server with the requested DNS record, which includes the IP address associated with “www.example.com.”

8. Response to user computer:

Finally, the recursive DNS server sends the IP address it received from the authoritative DYN DNS server back to the user’s computer. The user’s computer can then use this IP address to establish a connection to the web server hosting “www.example.com.”

In summary, the DNS resolution process involves multiple steps, with queries progressing from the user’s computer to the ISP’s recursive DNS server, through the root and TLD DNS servers, and finally to the authoritative DNS server for the specific domain, before returning the IP address to the user’s computer for further communication. This process ensures that users can access websites and services using human-readable domain names.

DNS Resolution Process

The DNS resolution process occurs in several steps when a user or device attempts to access a website or resource by its domain name:

  • Local DNS Cache: The client device (e.g., a computer or smartphone) first checks its local DNS cache to see if it has recently resolved the domain name. If the information is not cached or has expired, it proceeds to the next step.
  • Recursive Query: The client sends a DNS query to a recursive resolver, typically provided by the ISP. The recursive resolver is responsible for finding the IP address associated with the requested domain name.
  • Root Server Query: If the recursive resolver does not have the requested information in its cache, it queries one of the 13 root name servers. The root server responds with a referral to the appropriate TLD name server based on the TLD of the requested domain.
  • TLD Server Query: The recursive resolver queries the TLD name server for the domain. For example, if the request was for “[www.example.com](http://www.example.com/),” the resolver queries the “.com” TLD server. The TLD server responds with a referral to the authoritative name server for “[example.com](http://example.com/).”
  • Authoritative Server Query: The recursive resolver queries the authoritative name server for the specific domain, which holds the most up-to-date IP address information for the domain.
  • Response to Client: The authoritative name server sends the IP address back to the recursive resolver, which, in turn, returns the information to the client device. The client’s DNS cache is updated with the resolved IP address for future use.
  • Accessing the Resource: With the IP address obtained from DNS resolution, the client device can establish a network connection to the server hosting the resource (e.g., a website server).

Importance of DNS

DNS is a fundamental component of the internet for several reasons:

  • Human-Readable Addresses: DNS allows users to access websites and services using easy-to-remember domain names instead of having to remember numerical IP addresses. This enhances user-friendliness and accessibility.
  • Scalability: DNS is designed to handle the immense growth of the internet. Its hierarchical structure and distributed nature ensure efficient and scalable domain name resolution.
  • Load Balancing: DNS can be used to distribute traffic across multiple servers by associating a domain name with multiple IP addresses. This load balancing enhances the reliability and performance of websites and services.
  • Redundancy and Failover: DNS can be configured to provide redundancy and failover capabilities. If one server or data center becomes unavailable, DNS can direct traffic to alternative resources.
  • Global Reach: DNS is a global system, enabling users from anywhere in the world to access websites and services by their domain names. It plays a crucial role in making the internet truly global.
  • Security: DNS plays a role in security through techniques like DNSSEC (DNS Security Extensions), which helps prevent DNS spoofing and man-in-the-middle attacks.

Challenges and Vulnerabilities

While DNS is a robust system, it is not without its challenges and vulnerabilities:

  • DNS Cache Poisoning: Attackers may attempt to manipulate DNS caches to redirect users to malicious websites. DNSSEC helps mitigate this risk.
  • DDoS Attacks: Distributed Denial of Service (DDoS) attacks can target DNS infrastructure, causing service outages. DNS providers must implement robust mitigation measures.
  • Privacy Concerns: DNS queries can reveal user browsing habits. Encrypted DNS protocols like DNS over HTTPS (DoH) and DNS over TLS (DoT) aim to address privacy concerns.
  • DNS Hijacking: Attackers may compromise DNS settings on routers or devices to redirect traffic to malicious servers.
  • DNS Amplification: DNS servers can be unwittingly used in DDoS attacks as amplifiers, responding to small queries with large responses.

The Future of DNS

The DNS landscape is continuously evolving to address emerging challenges and improve its performance. Some notable developments include:

  • DNS over HTTPS (DoH) and DNS over TLS (DoT): These protocols encrypt DNS traffic, enhancing user privacy and security.
  • DNSSEC Adoption: Wider adoption of DNSSEC helps prevent DNS cache poisoning and enhances the trustworthiness of DNS responses.
  • IPv6 Transition: As IPv6 adoption grows, DNS plays a critical role in mapping IPv6 addresses to domain names.
  • Edge Computing: DNS is integral to the emerging field of edge computing, where low-latency access to resources is crucial.
  • Blockchain and Decentralization: Some initiatives explore blockchain-based DNS systems to increase resilience and reduce centralization.
  • Zero Trust Networking: DNS is a foundational component of zero-trust networking models that enhance security by authenticating and authorizing every network request.

Conclusion

The Domain Name System (DNS) is the unsung hero of the internet, silently working behind the scenes to make the web accessible and user-friendly. It has a rich history, a complex yet elegant structure, and immense importance in today’s digital age. Despite its challenges and vulnerabilities, DNS continues to evolve to meet the changing needs and demands of the internet, ensuring that users can access the vast array of online resources with ease and confidence. As the internet continues to grow and evolve, so too will the Domain Name System, adapting to new technologies and security threats while remaining a cornerstone of online communication and connectivity.



Previous Article
Next Article

Similar Reads

What is Domain Class in UML?
In UML (Unified Modeling Language), a domain class represents a concept or entity from the problem domain being modeled. It typically corresponds to a class in object-oriented programming and represents a real-world entity, such as a person, place, thing, or concept, that has attributes and behaviors. Domain classes are used to model the structure
3 min read
Domain Model Refinement in OOAD
Object-Oriented Analysis and Design (OOAD) is the most important aspect of creating robust and maintainable software. The creation of a reliable domain model is a crucial stage in this procedure. This model serves as a blueprint, outlining the key ideas and connections in the problem domain that the software aims to solve. However initial domain mo
8 min read
Domain Modeling in Object-Oriented Analysis and Design(OOAD)
Domain modeling in Object-Oriented Analysis and Design (OOAD) is the process of systematically identifying, analyzing, and representing the essential concepts, behaviors, and relationships within a specific problem domain. It involves translating real-world domain knowledge into software artifacts, such as classes, attributes, methods, and associat
6 min read
Domain-Oriented Microservice Architecture
Domain-Oriented Microservice Architecture is an approach to designing microservices where each service is aligned with a specific business domain. This architecture enables teams to develop, deploy, and scale services independently while ensuring that each service fully encapsulates the logic and data of its domain. By focusing on domain boundaries
9 min read
Domain-Driven Design (DDD)
Domain-Driven Design (DDD) is a method that prioritizes understanding and modeling the specific problem area where a software system functions. It highlights the need for close collaboration with domain experts to gain a thorough understanding of the domain's details and complexities. DDD offers principles, patterns, and practices to help developer
11 min read
Design a webpage that can show the status of 10M+ users including: name, photo, badge and points | System Design
We've got this huge community—over 10 million strong—and you want to build a webpage where everyone's details, like their names, photos, those cool badges they've earned, and their points, can all be seen. That's a massive load of information to handle. Achieving this goal necessitates an efficient and scalable system architecture capable of handli
15+ min read
How does the process of developing a system differ from designing a system?
System Development vs. System DesignSystem DevelopmentSystem DesignHow Does The Process Of Developing A System Differ From Designing A System?ConclusionSystem DevelopmentSystem development is a structured process of designing, creating, and implementing software or hardware solutions to address specific needs or problems within an organization. It
7 min read
Design a system that counts the number of clicks on YouTube videos | System Design
Designing a Click Tracking System for YouTube Videos involves architecting a comprehensive and efficient solution to monitor and analyze user interactions with videos on the YouTube platform. Important Topics for Counting the number of Clicks on Youtube Videos System DesignRequirementsCapacity EstimationLow-Level Design (LLD)Database Design-High-Le
15+ min read
Difference between System Design and System Architecture
When it comes to software development and engineering there can be some confusion, between the two terms "System Design" and "System Architecture." Although they are related they actually refer to stages and responsibilities in creating scalable and efficient systems. It is important to grasp the differences, between System Design and System Archit
3 min read
Distributed Messaging System | System Design
In our fast-paced world, how we share information matters more than ever. Old-school messaging setups sometimes struggle to keep up with today's tech demands. That's where distributed messaging systems step in. They're like a breath of fresh air, changing the game and making sure our messages get where they need to go, no matter what. Important Top
8 min read
System Analysis | System Design
In the areas of science, information technology, and knowledge, the difficulty of systems is of much importance. As systems became more complicated, the traditional method of problem-solving became inefficient. System analysis is to examine a business problem, identify its objectives and requirements, and then design the most optimal solution to fu
6 min read
Designing Authentication System | System Design
Keeping your important digital information safe is like building a strong foundation, and the key to that is a good security system. This article will help you understand how to make a robust security system step by step. We'll start with figuring out what you want to protect and what you want to achieve. Then, we'll talk about the detailed design
10 min read
Designing Parking Lot (Garage) System | System Design
Parking garage plays an important role in today's world, as the number of vehicles is increasing every day, so it has become a major concern to manage them. The parking garage provides the solution to this problem of limited space. It offers to book a Parking garage using any method whether online or offline. In this article, we will explore all th
11 min read
System Design | Online Banking System
In the digital era, the layout of a Online Banking System is a critical element of any commercial enterprise, it not only affects user experience but also the growth of a service-providing company. This article explores the comprehensive guide to designing a Online Banking System for its efficient use. From practical and non-useful requirements to
12 min read
Resilient System - System Design
Imagine you're building a castle out of blocks. If you design it so that removing one block doesn't make the whole castle collapse, you've made something resilient. hen we talk about creating a resilient system, we're essentially doing the same thing but with computer systems. These systems are designed to handle problems like errors, crashes, or e
10 min read
Blob vs. File System in System Design
In system design, choosing the right method for storing and managing data is crucial for performance, scalability, and maintenance. Two common approaches are using Blobs (Binary Large Objects) and traditional file systems. Each has its own set of advantages and challenges, making them suitable for different use cases. This article explores the key
7 min read
Differences between System Analysis and System Design
System Analysis and System Design are two stages of the software development life cycle. System Analysis is a process of collecting and analyzing the requirements of the system whereas System Design is a process of creating a design for the system to meet the requirements. Both are important stages as it helps to create an effective system with all
4 min read
Design Restaurant Management System | System Design
In the modern restaurant industry, delivering exceptional dining experiences requires more than just good cuisine. Restaurant Management Systems have emerged as the secret ingredient for efficient operations and customer satisfaction. In this article, we are going to design a restaurant management system where users can effortlessly discover nearby
15 min read
System Development Life Cycle vs. System Design Life Cycle
The concepts of System Development Life Cycle (SDLC) and System Design Life Cycle (SDLC) are fundamental in the field of software engineering and system architecture. Both frameworks play crucial roles in the creation and implementation of complex systems, but they address different aspects of system creation and management. Important Topics for Sy
6 min read
System Design of Uber App | Uber System Architecture
Getting the hassle-free transportation service(Uber, Ola) is very easy but is it also simple to build these gigantic applications that have hundreds of software engineers working on them for a decade? surely not. These systems have much more complex architecture and there are a lot of components joined together internally to provide riding services
13 min read
Design a Picture-Sharing System - System Design
In the present day, the need for good tools to exchange and organize images has never been this much higher. As for social networking, e-shopping, personal branding, and many other related purposes, users anticipate that the sites they visit provide them with fast and dependable environments with or without loads of images that enable them to inter
11 min read
Android System Architecture
The Android software stack generally consists of a Linux kernel and a collection of C/C++ libraries that are exposed through an application framework that provides services, and management of the applications and run time. Linux KernelAndroid was created on the open-source kernel of Linux. One main reason for choosing this kernel was that it provid
3 min read
Design a Logistics System
Design a Logistics System (Object Oriented Design). Tell about the different classes and their relationships with each-other. It is not a System Design question, so scope of this question is only to define different classes (with it's attributes and methods) Asked In: Adobe , Paytm Solution: Let’s assume we want to design a Logistics System with fo
7 min read
Biometric System Architecture
Biometrics are computerized methods of identifying a person based on physiological and observable qualities. The use of biometric systems has impacted the way we identify and authenticate ourselves around the world. By utilizing this technology, not only has the identification of people changed, but also the time it takes to identify and verify peo
3 min read
Characteristics and Benefits of Digital System
Important characteristics of Digital System are as following below: Data is represented in a digital system as a vector of binary variables.Digital Systems can provide accuracy (dynamic range) limited only by the number of bits used to represent a variableDigital systems are less prone to error than analog systems.Data representation in a digital s
2 min read
Applications of Real-time System
Real Time System is a system that is put through real time which means response is obtained within a specified timing constraint or system meets the specified deadline.Real time system is of two types - Hard and Soft. Both are used in different cases. Hard real time systems are used where even the delay of some nano or micro seconds are not allowed
3 min read
Fault-tolerance Techniques in Computer System
Fault-tolerance is the process of working of a system in a proper way in spite of the occurrence of the failures in the system. Even after performing the so many testing processes there is possibility of failure in system. Practically a system can't be made entirely error free. hence, systems are designed in such a way that in case of error availab
3 min read
Architecture of an Embedded System | Set-3
Typical embedded system mainly has two parts i.e., embedded hardware and embedded software. Embedded hardwares are based around microprocessors and microcontrollers, also include memory, bus, Input/Output, Controller, where as embedded software includes embedded operating systems, different applications and device drivers. Basically these two types
2 min read
System Design - Design Google Calendar
Google Calendar is like a special calendar that we can use on our computer or phone. We can use it to remember important things, like birthdays, appointments, and events. We can also set reminders to help us remember when something is coming up soon. We can also share our calendars with our family or friends. It's like having our own special schedu
8 min read
Difference between System Architecture and Software Architecture
1. System Architecture : System architecture is a conceptual model that describes the structure and behavior of multiple components and subsystems like multiple software applications, network devices, hardware, and even other machinery of a system. It is Architecture Description Language (ADL) which helps to describe the entire system architecture.
3 min read
Article Tags :
three90RightbarBannerImg