IP Name Server Command on CISCO Router/Switch


IP Name Server


This command allows you to set which DNS server the router will query when trying to resolve domain names.


Router(config)#ip name-server <name>


In this example we configure the ip name-server command to allow a router to resolve hostnames.

2611XM(config)#ip name-server
2611XM(config)#do ping google.com

Translating “google.com”…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 = 32/33/36 ms