Definition – Domain Name System (DNS)
DNS, or Domain Name System, is a distributed naming system that translates human-readable domain names (like “example.com”) into IP addresses (like “192.0.2.1”) and vice versa. It serves as a crucial component of the internet infrastructure, enabling users to access websites, send emails, and perform various network activities using domain names instead of IP addresses.

Here’s a detailed overview of how Domain Name System (DNS) works:
- Domain Names:
- Domain names are hierarchical labels used to identify resources on the internet. They consist of multiple levels separated by dots, with the rightmost label representing the top-level domain (TLD), such as “.com”, “.org”, or “.net”.
- Domain names are easier to remember and use than IP addresses, which are numerical identifiers assigned to devices on a network.
- Domain Name System (DNS) Hierarchy:
- DNS operates as a distributed hierarchical system of servers organized into a tree-like structure. The DNS hierarchy consists of several levels:
- Root DNS Servers: These servers are at the root of the DNS hierarchy and manage the root zone, which contains information about the authoritative servers for each top-level domain (TLD).
- Top-Level Domain (TLD) Servers: These servers manage information for specific top-level domains (e.g., “.com”, “.org”, “.net”) and provide authoritative information for domains within their respective TLDs.
- Authoritative DNS Servers: These servers store authoritative DNS records for specific domains. They are responsible for providing DNS resolution for domain names within their zones.
- Recursive DNS Servers: These servers perform DNS resolution on behalf of clients, recursively querying other DNS servers until they obtain the requested information.
- DNS operates as a distributed hierarchical system of servers organized into a tree-like structure. The DNS hierarchy consists of several levels:
- DNS Resolution Process:
- When a user enters a domain name into a web browser or other network application, the application sends a DNS query to a recursive DNS server (usually provided by the user’s ISP or network administrator).
- The recursive DNS server checks its cache to see if it has a recent record of the requested domain. If not, it begins the resolution process.
- The recursive DNS server sends a query to the root DNS servers, asking for the authoritative DNS servers for the TLD of the requested domain.
- The root DNS servers respond with the IP addresses of the TLD servers for the requested domain.
- The recursive DNS server sends a query to the TLD servers, asking for the authoritative DNS servers for the second-level domain (e.g., “example.com”).
- The TLD servers respond with the IP addresses of the authoritative DNS servers for the requested domain.
- The recursive DNS server sends a query to one of the authoritative DNS servers for the requested domain, asking for the IP address of the domain name.
- The authoritative DNS server responds with the IP address of the requested domain name.
- The recursive DNS server caches the response and returns the IP address to the client application, which can then establish a connection to the desired resource.
- DNS Records:
- DNS records are used to store information about domain names and their corresponding IP addresses, mail servers, and other resources. The most common types of DNS records include:
- A (Address) Record: Maps a domain name to an IPv4 address.
- AAAA (IPv6 Address) Record: Maps a domain name to an IPv6 address.
- CNAME (Canonical Name) Record: Maps an alias (or canonical name) to another domain name.
- MX (Mail Exchange) Record: Specifies the mail servers responsible for receiving email for a domain.
- TXT (Text) Record: Stores arbitrary text information associated with a domain.
- DNS records are used to store information about domain names and their corresponding IP addresses, mail servers, and other resources. The most common types of DNS records include:
- DNSSEC (Domain Name System Security Extensions):
- DNSSEC is a set of security extensions designed to add cryptographic authentication and integrity to DNS data.
- DNSSEC helps prevent DNS spoofing and other types of DNS-based attacks by allowing domain owners to sign their DNS records cryptographically.
- DNSSEC relies on digital signatures to verify the authenticity of DNS data and ensure that it has not been tampered with in transit.
Overall, Domain Name System (DNS) plays a crucial role in enabling users to navigate the internet and access online resources using domain names. Its distributed and hierarchical architecture, along with features like DNSSEC, ensures reliable and secure name resolution across the global network.
Useful Links
https://www.ietf.org/rfc/rfc1035.txt
https://sanchitgurukul.com/basic-networking
https://sanchitgurukul.com/network-security
