How to Create a DNS Server in Cisco Packet Tracer

DNS (Domain Name System) is a system that stores and translates domain names into IP addresses. DNS works like a phone book on a computer network.

A computer basically has an IP address in the form of numbers separated by periods and each block cannot be more than the value 255. An example of an IP address version 4 is

On a network, the IP address of each computer cannot be the same.

Because the IP address of each computer is different, it is quite difficult for humans to remember it. To make things easier, since 1985 DNS has been used specifically for web pages on the Internet. So with DNS, the domain name can be translated to the IP address

Here we will simulate the implementation of DNS Server using the Cisco Packet Tracer application:

Also read: Cisco Packet Tracer Basics

1. Create a Topology

Draw a Server PC, a Switch and two Client PCs. Connect the three using a Straight cable as shown below.

2. Add IP Address on PC Server and PC Client

Give IP to Server, PC Client A, PC Client B, don’t forget to add a subnet mask of, respectively.

For PC Client, Default Gateway and DNS Server, the IP address of the PC Server is

Also read: How to Set DHCP Server on Cisco Packet Tracer

3. Configure PC Server

Click PC ServerServicesDNS → On DNS Service select On → Name fill in the domain name → Address filled with PC Server IP address → Add.

At this point we have finished creating a DNS Server. Furthermore, you can test directly with klik PC Client → Select Command Prompt → Do it test ping by typing ping the domain name, for example in this example ping and test the name server by typing nslookup

Why when I ping it doesn’t work and it says “ping request could not find host …”?

– Check whether the DNS Server field is filled in on the Client PC.
– Make sure the Address column on the PC Server is correct.
– Make sure the IP Address on the PC Server is correct.

Also read: How to Create VLAN Trunking in Cisco Packet Tracer