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 Resolution Process User Browser DNS Resolver (ISP/Google) Root Server (.com, .org) Authoritative Name Server 1. Query 2. Query 3. Query 4. IP Address 5. IP Address 6. IP Address Example: Domain: www.example.com IP Address: 192.168.1.100

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.

Updated on: 2026-03-16T23:36:12+05:30

8K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements