S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m
43-28
Cisco MDS 9000 Family CLI Configuration Guide
OL-16184-01, Cisco MDS SAN-OS Release 3.x
Chapter 43 Configuring IP Services
DNS Server Configuration
•
The DNS server is not reachable because external reasons (reasons beyond our control).
Note
When accessing a Telnet host, if the DNS server is not reachable (for any reason) the switch login prompt
may take a longer time to appear. If so, verify that the DNS server is accurately configured and reachable.
To configure a DNS server, follow these steps:
Displaying DNS Host Information
Use the
show hosts
command to display the DNS configuration (see
Example 43-14
).
Command
Purpose
Step 1
switch#
config t
switch(config)#
Enters configuration mode.
Step 2
switch(config)#
ip domain-lookup
Enables the IP Domain Naming System (DNS)-based
host name-to-address translation.
switch(config)#
no
ip domain-lookup
Disables (default) the IP DNS-based host
name-to-address translation and reverts to the factory
default.
Step 3
switch(config)#
ip domain-name
cisco.com
Enables the default domain name feature used to
complete unqualified host names. Any IP host name that
does not contain a domain name (that is, any name
without a dot) will have the dot and cisco.com appended
to it before being added to the host table.
switch(config)#
no
ip domain-name
cisco.com
Disables (default) the domain name.
Step 4
switch(config)#
ip domain-list
harvard.edu
switch(config)#
ip domain-list
stanford.edu
switch(config)#
ip domain-list
yale.edu
Defines a filter of default domain names to complete
unqualified host names by using the
ip domain-list
global configuration command. You can define up to 10
domain names in this filter. To delete a name from a
filter, use the
no
form of this command.
switch(config)#
no
ip domain-list
Deletes the defined filter and reverts to factory default.
No domains are configured by default.
Note
If you have not configured a domain list, the domain name that you specified with the
ip
domain-name
global configuration command is used. If you configured a domain list, the
default domain name is not used. The
ip domain-list
command is similar to the
ip
domain-name
command, except that with the
ip domain-list
command you can define a list of
domains, each to be tried in turn.
Step 5
switch(config)#
ip name-server
15.1.0.1 2001:0db8:800:200c::417a
Specifies the first address (15.1.0.1) as the primary
server and the second address
(2001:0db8:800:200c::417a) as the secondary server.
You can configure a maximum of six servers.
switch(config)#
no
ip name-server
Deletes the configured server(s) and reverts to factory
default. No server is configured by default.
Step 6
Note
Alternatively, you can configure the DNS entry using the switch names (instead of IP
addresses). The configured switch name automatically looks up the corresponding IP address.