- 2069 Bhadra (old course) · 10 marks
Need and services of DNS
Short answer
DNS translates human-readable names to IP addresses, enabling scalability and flexibility. Services include forward and reverse resolution, host aliasing (CNAME), mail server identification (MX), load distribution, and caching for efficiency.
Discuss the need of Domain Name Systems (DNS) in an Internet / Intranet environment. Also explain the service provided by DNS.
Need of DNS
Hosts on the Internet are identified by IP addresses (e.g. 142.250.190.78) which are hard for people to remember, while humans prefer names such as www.example.com. The Domain Name System (DNS) is a distributed, hierarchical database and an application layer protocol (UDP/TCP port 53) that translates host names to IP addresses and back.
Why it is needed in an Internet or Intranet:
- Human-friendly names. Users remember names, not 32-bit/128-bit numbers.
- Flexibility. If a server moves to a new IP address, only the DNS record changes; users keep using the same name.
- Scalability. One central hosts file (HOSTS.TXT) cannot scale to millions of hosts. DNS spreads the data over many servers.
- Required by other services. Web, e-mail (MX records), FTP and proxy all depend on name resolution. In an intranet, names such as
intranet.company.localormail.company.localmake internal services easy to reach. - Load distribution and redundancy. One name can map to several IPs.
Hierarchy
. (root)
+-------+-------+
com org np
| |
google edu.np
| |
www ioe
Root servers -> TLD servers (.com, .np) -> authoritative servers of each organisation. Local (recursive) DNS servers of an ISP or company resolve queries for clients and cache answers.
Services provided by DNS
- Host name to IP address translation (forward lookup, A/AAAA records) and IP to name (reverse lookup, PTR records).
- Host aliasing. A canonical name can have many aliases (CNAME), e.g.
www.example.com->web1.example.com. - Mail server aliasing. MX records identify the mail server of a domain, so addresses like
user@example.comwork. - Load distribution. A busy site may have several IPs for one name; DNS rotates the order of the list (round robin).
- Name server records (NS) delegate a zone to its authoritative servers.
- Caching. Servers cache answers for a TTL, reducing delay and traffic.
- Other records: TXT (SPF, verification), SRV (service location), SOA (zone parameters).
Resolution can be recursive (server does the whole job for the client) or iterative (server returns a referral to the next server).
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Internet vs Intranet and DNS need · Internet and Intranet, chapter 1
- Intranet vs Internet, firewall, content filtering · Internet and Intranet, chapter 1
- Intranet, Internet, Extranet comparison and resources · Internet and Intranet, chapter 1
- Intranet vs Internet and intranet protocols · Internet and Intranet, chapter 1
- Name service and name resolution · Distributed System, chapter 2
- Internet, intranet and extranet use · Information System, chapter 1
- Short note: Internet / Intranet · Basic Electronics Engineering, chapter 5
- DNS and its working mechanism · Distributed System, chapter 2 · asked 3×