LAB 4: DNS SERVER SETUP USING CISCO PACKET TRACER
Objectives:
To configure and test a DNS (Domain Name System) server in Cisco Packet Tracer to enable domain name
resolution within a network, allowing client devices to access servers using domain names instead of IP
addresses.
Device Required:
• 1 Switch
• 3 PCs (C4, C5, C6)
• 1 HTTP Server
• 1 DNS Server
• Copper Straight-through Cables
Steps:
1. Create Network Topology
• Open Cisco Packet Tracer
• From the bottom device menu, drag and place the following on the workspace:
o 1 HTTP Server
o 1 DNS Server
o 1 Switch
o 3 PCs
• Connect the devices using Copper Straight-Through cables:
o Connect HTTP Server → Switch
o Connect DNS Server → Switch
o Connect C1 → Switch
o Connect C2 → Switch
o Connect C3 → Switch
2. Configure the DNS Server
• Click on the DNS Server device.
• Go to Desktop → IP Configuration
o Assign Static IP
IP: 10.10.10.24
Subnet Mask: 255.0.0.0
Gateway :10.10.10.1
DNS Server: 10.10.10.24
• Now go to Services tab
• Select DNS from the left-hand menu
• Click On to enable DNS Service
• Add a Record:
Name: www.hero.com
Address: 10.10.10.2 (HTTP server IP)
• Click on Save to save the record.
3. Configure the HTTP Server:
• Click on the DNS Server device.
• Go to Desktop → IP Configuration
o Assign Static IP:
IP: 10.10.10.2
Subnet Mask: 255.0.0.0
Gateway: 10.10.10.1
• Now go to Services tab
• Select HTTP form the left-hand menu
• Click On to enable HTTP Service
• Edit the default web page if desired.
4. Configure the PCs
• Click on C4
• Go to the Desktop tab → IP Configuration
o Assign Static IP:
IP: 10.10.10.6
Subnet Mask: 255.0.0.0
Default Gateway: 10.10.10.1
DNS Server: 10.10.10.24
• Repeat the same process for C5, C6
5. Testing the DNS Resolution:
• On PC4, go to Desktop → Web Browser
• In the URL field, type http://www.hero.com
Result:
The DNS server was successfully configured. All PCs were able to resolve the domain name www.hero.com
to its corresponding IP address and access the web page through the browser, confirming correct DNS
functionality in the network.