BIT254 ยท 2082 ยท 5 marks
What is DHCP? Explain DNS name resolution process with suitable example. [1+4]
What is DHCP? Explain DNS name resolution process with suitable example. [1+4]
Quick answer
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.
DHCP and DNS Name Resolution
What is DHCP? [1 Mark]
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.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.