Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
What is a Domain Name System?
The Domain Name System (DNS) is a hierarchical and decentralized naming system that translates human-readable domain names into machine-readable IP addresses. It serves as the internet's phonebook, enabling users to access websites using memorable names like www.example.com instead of complex numeric addresses like 192.168.1.1.
DNS operates using the User Datagram Protocol (UDP) on port 53 and relies on a distributed network of DNS servers to resolve domain names efficiently across the global internet.
How DNS Works
When you type a domain name into your browser, DNS performs the following translation process:
Step 1 − Your browser checks its cache for the IP address of the requested domain.
Step 2 − If not found locally, your computer contacts a DNS resolver (typically provided by your ISP or services like Google DNS or OpenDNS).
Step 3 − The DNS resolver queries the appropriate DNS servers in a hierarchical manner, starting from root servers down to authoritative name servers.
Step 4 − Once the IP address is found, it's returned to your browser, which then establishes a connection to the web server.
DNS Hierarchy Levels
| Level | Description | Example |
|---|---|---|
| Root Level | Highest level in DNS hierarchy | . (dot) |
| Top-Level Domain (TLD) | Generic or country-specific domains | .com, .org, .uk |
| Second-Level Domain | Organization or entity name | example, google, microsoft |
| Subdomain | Specific service or section | www, mail, ftp |
Types of DNS Servers
-
Recursive Resolver − Handles queries from clients and performs the complete resolution process.
-
Root Name Server − Directs queries to appropriate TLD servers.
-
TLD Name Server − Manages domains within specific top-level domains.
-
Authoritative Name Server − Contains actual DNS records for specific domains.
Common DNS Record Types
A Record - Maps domain to IPv4 address AAAA Record - Maps domain to IPv6 address CNAME Record - Creates domain alias MX Record - Specifies mail server NS Record - Defines authoritative name servers
Conclusion
DNS is essential for internet functionality, translating human-readable domain names into IP addresses through a hierarchical system of servers. This distributed approach ensures scalability, redundancy, and efficient name resolution across the global internet infrastructure.
