Configure a Cisco router to use DNS

Posted January 1, 2004 by Quinn McHenry in Cisco router


To configure a Cisco router to use the following DNS information:

DNS servers:
10.12.20.53
10.12.30.51
Primary domain name:
tech-recipes.com
Search domains:
life-recipes.com

use the following commands:

conf t
ip domain-lookup
ip name-server 10.12.20.53
ip name-server 10.12.30.51
ip domain-name tech-recipes.com
ip domain-list life-recipes.com
^Z

The domain-list command sets the primary domain name associated with your device. This domain name will be added to relatively qualified names (host name only searches) when performing DNS queries.

The domain-list command allows additional domain names to be searched with DNS queries.

 

About Quinn McHenry

Quinn was one of the original co-founders of Tech-Recipes. He is currently crafting iOS applications as a senior developer at Small Planet Digital in Brooklyn, New York.
View more articles by Quinn McHenry

The Conversation

Follow the reactions below and share your own thoughts.