DNS Client Commands
OL-32830-01 Command Line Interface Reference Guide
15.8 ip name-server
Use the ip name-server command in Global Configuration mode to specify the
address of one or more name servers to use for name and address resolution.
Use the no form of this command to remove the static specified addresses.
Syntax
server1-address
ip name-server
server-address1
no ip name-server [
Parameters
•
server-address1
•
server-address2
name servers.
Default Configuration
No name server IP addresses are defined.
Command Mode
Global Configuration mode
User Guidelines
The preference of the servers is determined by the order in which they were
entered.
Each ip name-server command replaces the configuration defined by the previous
one (if one existed).
Example
The following example shows how to specify IPv4 hosts 172.16.1.111, 172.16.1.2,
and IPv6 host 2001:0DB8::3 as the name servers:
switchxxxxxx(config)#
server-address2...erver-address8
[
server-address8
...
—IPv4 or IPv6 addresses of a single name server.
...
server-address8
—IPv4 or IPv6 addresses of additional
ip name-server 172.16.1.111 172.16.1.2 2001:0DB8::3
15
]
]
360