Lab Manual: Computer Communication Network - Lab - No# 4

Download as pdf or txt
Download as pdf or txt
You are on page 1of 12

CCN_LAB_NO# 4

LAB MANUAL
Computer Engineering Department

COMPUTER COMMUNICATION NETWORK_LAB_NO# 4

Submitted by:

MUHAMMAD WALEED KHAN_(45342)

Date: 12/8/2020

Submitted to:

ENGR. NAJEEBULLAH

Department of Telecom Engineering,


Faculty of Information & Communication Technology,
BUITEMS, Quetta.

Session Spring – 2020

pg. 1
CCN_LAB_NO# 4

LAB NO 4:“DNS SERVER CONFIGURATION IN CISCO PACKET TRACER”

OBJECTIVE:
 To understand the basic working of DNS server.

THEORY:
A Domain Name System (DNS) server resolves host names into IP addresses. Although we can access a
network host using its IP address, DNS makes it easier by allowing us use domain names which are
easier to remember. For example it’s much easier to access Google website by
typing http://www.google.com as compared to typing http://208.117.229.214. In either case, you’ll
access Google website, but using domain name is obviously easier.

Servers are the basic and essential components of a successful organization. This is because all the data
which are gathered by an organization can be stored only on a Server. So if you want to join any
company or organization using your networking skills then this is the basic need that you can be able to
configure Servers. Such as DHCP Server, DNS Server, Http Server, NTP Server, Syslog Server, and other
required servers. But at first, we all need to know about how the server works, why we use servers, and
why we do not use papers instead of Servers for data storing process in an organization.

Figure 4.1: Representation of DNS Server

pg. 2
CCN_LAB_NO# 4

LAB TASK: To Configure a DNS server in Packet Tracer.

APPARATUS:

 PC/laptop
 Cisco Packet Tracer.

PROCEDURE:

First step is to build a topology like this one in order to start the procedure. The Topology could be like
this one:

Figure 4.2: Basic Topology of DNS Server

This is the topology in which we take Switches, DNS Server, PCs, DHCP Server, HTTP Server, and
Connecting Wires. So, let’s start here how to configure Servers along with Switches.

pg. 3
CCN_LAB_NO# 4

Now, first of all, we configure DHCP Server so we can assign the automatic IP address on all other
systems. To do so go to the DHCP server and open it. Now in the desktop menu go to IP configuration
and assign IP statically to the server and also gives the DNS Server address as 10.0.0.2. The figure is
shown below:

Figure 4.3: Static IP for DNS Server

pg. 4
CCN_LAB_NO# 4

Now to make this Server as DHCP Server we need to enable DHCP service on this Server. To do so go to
its services menu and select DHCP in which fill the entries as your requirement and turn on the DHCP
server by choosing the ON option from it. The figure is shown below:

Figure 4.4: Service settings for DNS Server

pg. 5
CCN_LAB_NO# 4

Now we have to assign the IP addresses to both Fast Ethernet ports of Routers by going to the Config
mode of the Router as shown below:

Figure 4.5: Router Configuration settings

Here we will eventually select the two Fast Ethernet ports one by one from the column in left hand side
of the above window after which we will be assigning them the IP addresses and their respective
Subnet Masks as shown in the above illustration.

pg. 6
CCN_LAB_NO# 4

Now after assigning the IP addresses to the Router we will type few lines of code in the Command Line
Interface of the Router which will be as following:

Figure 4.6: Router CLI code

pg. 7
CCN_LAB_NO# 4

Subsequently after that we can see that our connected end devices will have their IP’s assigned
dynamically as shown in the following pictures:

Figure 4.7: IP addresses assigned to our PC & Laptop

pg. 8
CCN_LAB_NO# 4

Now we configure DNS Services on this Server so we can provide a platform to make communication
between Serves and clients. To do so go to services and select DNS then give the name and IP address
of the HTTP Server as given below and click on the add button to add these entries in DNS Server. After
that turn ON DNS Services on this Server:

Figure 4.8: Giving our page name and address

For instance here we have named our page as www.facebook.com and have assigned it an address
10.0.0.2 afterwards we have turned on the DNS server and exited.

pg. 9
CCN_LAB_NO# 4

Now all the servers are configured. So, now we assign the IP address to the PCs using DHCP Server. Now
in a browser type the name of our page facebook.com and as a result, our page will appear there on the
screen. This is done because the client’s request, first of all, goes to the DNS server where it directs it to
the HTTP server and then webpage loads from HTTP server to our computer using the name instead of
IP address.

Figure 4.9: Our page is accessible by our given address

pg. 10
CCN_LAB_NO# 4

The page is also accessible by its given name that was saved during the DNS procedure:

Figure 4.10: Our page is also accessible by the saved name.

pg. 11
CCN_LAB_NO# 4

Our Final topology looks like:

Figure 4.11: DNS server Topology

CONCLUSION:
By the end of this lab we can conclude that a simple Generic server can be used to assign the IP’s
dynamically using DHCP along with that the Router was used.

By using the DNS service we can dynamically assign the DNS to our respective End Devices.

We can Ping the hosts from one another using their names instead of their IP addresses. If the DNS
service is turned on and all IP configurations are okay, then ping should work.

---------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------

pg. 12

You might also like