Name
ip name-server — global
Synopsis
ip name-serveraddress
[address
] no ip name-serveraddress
Configures
DNS server name
Default
None
Description
This command sets the name servers that the router uses for DNS queries. You can specify the address
es of up to 6 different DNS servers on one command line. Because you are configuring domain name service, be sure to use an IP address and not a hostname for the server!
Example
The first line configures one name server; the second line configures six name servers:
ip name-server 10.10.2.5 ip name-server 10.10.1.5 10.10.2.5 10.10.3.5 10.10.4.5 10.10.5.5 10.10.6.5
Get Cisco IOS in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.