Lab F: Configuring Domain Name Resolution on Cisco IOS Devices

Lab Objective:

The objective of this lab exercise is for you to learn and understand how to configure DNS on Cisco IOS devices.

Lab Purpose:

Configuring DNS on Cisco IOS devices is a fundamental skill. DNS provides hostnames to Layer 3 address resolution. DNS servers are typically used in large networks with many hosts and internetworking devices. As a Cisco engineer, as well as in the Cisco CCNA exam, you will be expected to know how to configure DNS on Cisco IOS devices.

Certification Level:

This lab is suitable for CCENT and CCNA certification exam preparation.

Lab Difficulty:

This lab has a difficulty rating of 3/10.

Readiness Assessment:

When you are ready for your certification exam, you should complete this lab in no more than 5 minutes.

IMPORTANT NOTE: The objective of this lab is to simply familiarize you with the steps required to configure a Cisco IOS device to communicate with a DNS server. Because there will be no real DNS server configured against which to perform testing, the sole objective of this lab is command familiarity.

Lab Topology:

Please use any single router or switch to complete this lab.

Task 1:

Configure a hostname on your router or switch.

Task 2:

Configure your router or switch as part of the domain. For name resolution, your device should forward traffic to DNS servers or

Configuration and Verification

Task 1:

For reference information on configuring hostnames, please refer to earlier labs.

Task 2:

R1#conf t 
Enter configuration commands, one per line.  End with CTRL/Z. 
R1(config)#ip domain-name 
R1(config)#ip name-server 
R1(config)#ip domain-lookup 

NOTE: If an actual DNS server was available and was providing name resolution, you could ping or connect to devices based on their hostnames as illustrated below:

R1#ping R3 

Translating “”...domain server ( [OK] 

Type escape sequence to abort. 
Sending 5, 100-byte ICMP Echos to, timeout is 2 seconds: 
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/11/16 ms 

R1#telnet R3 
Translating “R3”...domain server ( [OK] 
Trying ( Open 

User Access Verification
Password: R3#
Notify of

Inline Feedbacks
View all comments