IP Name Server Command on CISCO Router/Switch

Other Cisco Other Cisco Material Original source

Command

IP Name Server

Use

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

Syntax

Router(config)#ip name-server

Example

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

Copy

2611XM(config)#ip name-server 10.10.2.1

2611XM(config)#do ping google.com



Translating “google.com”…domain server (10.10.2.1) [OK]



Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 209.85.171.100, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 32/33/36 ms
← All Other Cisco articles Home