Network and Data Communications · Unit 9
Network Services and Management
Exam-focused notes for Network Services and Management (Network and Data Communications, BIT254): what the TU syllabus asks and how it has actually been tested, with 6 solved past questions from this unit.
Network Services and Management in short
People use names, not numbers, and most home devices share one public address. This chapter covers DNS, DHCP, NAT and the POP mail protocol, which make everyday networks work.
What this unit covers
- DNS domain name resolution
- DNS recursive resolution
- DNS iterative resolution
- DNS caching
- DHCP protocol
- DNS vs DHCP differences
- NAT definition and types
- Network Address Translation
- POP protocol
DNS domain name resolution
2082 · 5 marks
What is DHCP? Explain DNS name resolution process with suitable example. [1+4]
Show solved answerHide answer
DHCP and DNS Name Resolution
What is DHCP? [1 Mark]
DHCP (Dynamic Host Configuration Protocol) is a network management protocol used to automatically assign IP addresses and other network configuration parameters (such as subnet mask, default gateway, and DNS server address) to devices on a network, so they can communicate on an IP network without manual configuration.
DNS Name Resolution Process [4 Marks]
DNS (Domain Name System) is a hierarchical, distributed naming system that translates human-readable domain names (e.g., www.example.com) into machine-readable IP addresses (e.g., 93.184.216.34).
Components Involved
| Component | Role |
|---|---|
| DNS Resolver | Client-side component that initiates the query |
| Root Name Server | Top of the DNS hierarchy; knows TLD servers |
| TLD Name Server | Handles top-level domains (.com, .org, .np, etc.) |
| Authoritative Name Server | Holds the actual DNS records for the domain |
| Local DNS Server | First server contacted; may have cached results |
Step-by-Step Name Resolution Process
Example: A user types www.example.com in a browser.
User's PC --> Local DNS --> Root Server --> TLD Server --> Authoritative Server
Step 1: Browser Cache Check
- The browser first checks its local cache to see if the IP for
www.example.comis already stored. - If not found, the query is passed to the OS resolver.
Step 2: Query to Local DNS Server (Recursive Resolver)
- The client sends a recursive query to the Local DNS Server (configured via DHCP or manually).
- The local DNS server checks its own cache.
- If not cached, it begins the resolution process on behalf of the client.
Step 3: Query to Root Name Server
- The local DNS server sends a query to one of the 13 Root Name Servers.
- The root server does not know the IP of
www.example.com, but it knows the address of the.comTLD Name Server. - Root server replies: "Ask the .com TLD server at IP X.X.X.X"
Step 4: Query to TLD Name Server
- The local DNS server queries the
.comTLD Name Server. - The TLD server does not know the exact IP, but knows the Authoritative Name Server for
example.com. - TLD server replies: "Ask the authoritative server for example.com at IP Y.Y.Y.Y"
Step 5: Query to Authoritative Name Server
- The local DNS server queries the Authoritative Name Server for
example.com. - This server has the actual A record (Address record) for
www.example.com. - It replies: "
www.example.comhas IP address93.184.216.34"
Step 6: Response to Client
- The local DNS server caches the result (for future queries) and sends the IP address back to the client.
- The browser can now connect to
93.184.216.34to load the website.
Diagram
Client
|
| (1) Query: www.example.com?
v
Local DNS Server
|
| (2) Query to Root Server
v
Root Name Server --> "Try .com TLD Server"
|
| (3) Query to TLD Server
v
.com TLD Server --> "Try example.com Authoritative Server"
|
| (4) Query to Authoritative Server
v
Authoritative Server --> "IP = 93.184.216.34"
|
| (5) Final Answer returned to Client
v
Client connects to 93.184.216.34
Types of DNS Queries
| Query Type | Description |
|---|---|
| Recursive Query | Client asks resolver to get the full answer |
| Iterative Query | Server returns the best answer it knows (referral) |
Note: The query from client to local DNS is typically recursive; queries from local DNS to other servers are typically iterative.
Summary
The DNS name resolution process converts www.example.com into an IP address through a hierarchical chain: Local DNS Server → Root Server → TLD Server → Authoritative Server, ultimately returning the IP address to the requesting client.
2081 · 5 marks
What is the major purpose of DNS? Explain how DNS resolve its domain name. [5]
Show solved answerHide answer
Domain Name System (DNS)
Major Purpose of DNS
The major purpose of DNS (Domain Name System) is to translate human-readable domain names into machine-readable IP addresses (and vice versa).
Since computers communicate using numerical IP addresses (e.g., 192.168.1.1), but humans find it easier to remember names (e.g., www.google.com), DNS acts as a distributed hierarchical naming system that maps domain names to their corresponding IP addresses automatically, without requiring users to memorize numeric addresses.
How DNS Resolves a Domain Name
DNS resolution follows a step-by-step hierarchical query process:
DNS Resolution Steps
Example: Resolving www.example.com
Step 1: Browser Cache Check
- The user types
www.example.comin the browser. - The browser first checks its local cache to see if the IP address is already stored from a previous visit.
Step 2: OS / Local Hosts File Check
- If not found in browser cache, the OS checks the local hosts file and its own DNS cache.
Step 3: Query to Recursive Resolver (Local DNS Server)
- If still unresolved, the query is sent to the Recursive Resolver (usually provided by the ISP or configured manually, e.g.,
8.8.8.8). - The recursive resolver takes responsibility for finding the answer.
Step 4: Query to Root Name Server
- The recursive resolver contacts a Root Name Server (there are 13 sets globally).
- The root server does not know the IP of
www.example.com, but it refers the resolver to the TLD (Top-Level Domain) Name Server for.com.
Step 5: Query to TLD Name Server
- The resolver queries the TLD Name Server for
.com. - The TLD server responds with the address of the Authoritative Name Server for
example.com.
Step 6: Query to Authoritative Name Server
- The resolver queries the Authoritative Name Server for
example.com. - This server holds the actual DNS records and returns the IP address (e.g.,
93.184.216.34) forwww.example.com.
Step 7: Response Returned to Client
- The recursive resolver caches the result (for the TTL duration) and sends the IP address back to the client.
- The browser then uses the IP address to establish a connection with the web server.
Diagram of DNS Resolution
Client
|
v
Recursive Resolver (ISP/Local DNS)
|
v
Root Name Server --> "Go to .com TLD server"
|
v
TLD Name Server (.com) --> "Go to example.com Authoritative server"
|
v
Authoritative Name Server (example.com) --> Returns IP address
|
v
Recursive Resolver --> Client (IP delivered)
Summary Table
| Step | Component | Role |
|---|---|---|
| 1 | Browser/OS Cache | Check locally stored records |
| 2 | Recursive Resolver | Manages the full query on behalf of client |
| 3 | Root Name Server | Directs to correct TLD server |
| 4 | TLD Name Server | Directs to authoritative server |
| 5 | Authoritative Name Server | Returns the final IP address |
Note: DNS primarily uses UDP port 53 for queries and TCP port 53 for zone transfers.
DNS vs DHCP differences
2080 · 5 marks
What is the difference between DNS and DHCP? Explain with example [5]
DNS recursive resolution
2080 · 5 marks
Explain recursive resolution. What are its advantages? [5]
0 · 5 marks
Briefly explain recursive resolution, iterative resolution and caching [5]
NAT definition and types
Make Unit 9 stick
Practice BIT254 with flashcards & quizzes