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 192.168.0.1.
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 example.com can be translated to the IP address 188.8.131.52.
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 192.168.1.1, PC Client A 192.168.1.2, PC Client B 192.168.1.3, don’t forget to add a subnet mask of 255.255.255.0, respectively.
For PC Client, Default Gateway and DNS Server, the IP address of the PC Server is 192.168.1.1.
Also read: How to Set DHCP Server on Cisco Packet Tracer
3. Configure PC Server
Click PC Server → Services → DNS → 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 caraprima.com and test the name server by typing nslookup caraprima.com.
Why when I ping it doesn’t work and it says “ping request could not find host caraprima.com …”?
– 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