Lukej2680 Tech Blog

DNS and ARP

This lab covers the configuring Cisco routers to use DNS and examining the ARP caches of each router.

Topology pic

In this lab:

  • Configure Cisco routers to use DNS
  • Examine router ARP caches

Configure Cisco routers to use DNS
The Domain Name System (DNS) protocol is used to translates domain names into their corresponding IP addresses. DNS uses port 53 and typically DNS records are stored on a DNS server either locally or externally. In this lab we will be configuring our routers to use the local DNS server at 10.10.10.10
On each router I will use the commands;

  • ip domain-lookup
  • ip name-server 10.10.10.10
R1

dns_R1

R2

dns_R2

R3

dns_R3

Now that we have all the routers configured to use 10.10.10.10 as their name server we can communicate with them using their hostnames instead of IP’s.

R1

ping_R1

Note:

Cisco routers can also be configured to act as DNS servers using the commands;

  • ip dns server
  • ip host <hostname> <ip>

Examine router ARP caches

Address Resolution Protocol (ARP) exists to identify layer 2 addresses with a devices physical interface. ARP is broadcast traffic which also means routers do not forward any ARP requests to the rest of the network. Because of this, as you’ll see below, each router will have a slightly different ARP cache.

R1

arp_R1

R2

arp_R2

R3

arp_R3

As you can see in the ARP tables R1 only has entries for the 10.10.10.0/24 network and R3 only has entries for the 10.10.20.0/24 network. This is because they are separated by R2 which does not forward ARP requests.
This is the same reason R2 has entries for both networks.

This lab is a lab taken from Neil Andersons CCNA Udemy course. All work is mine however the lab itself is not my property.
All Labs were done using Cisco Packet Tracer.