7-16
Catalyst 2950 and Catalyst 2955 Switch Software Configuration Guide
78-11380-12
Chapter 7      Administering the Switch
    Configuring a System Name and Prompt
This section contains this configuration information:
• Default DNS Configuration, page 7-16
• Setting Up DNS, page 7-16
• Displaying the DNS Configuration, page 7-17
Default DNS Configuration
Table 7-2 shows the default DNS configuration.
Setting Up DNS
Beginning in privileged EXEC mode, follow these steps to set up your switch to use the DNS:
Table 7-2 Default DNS Configuration
Feature Default Setting
DNS enable state Enabled.
DNS default domain name None configured.
DNS servers No name server addresses are configured.
Command Purpose
Step 1
configure terminal Enter global configuration mode.
Step 2
ip domain-name name Define a default domain name that the software uses to complete unqualified 
host names (names without a dotted-decimal domain name).
Do not include the initial period that separates an unqualified name from the 
domain name.
At boot time, no domain name is configured; however, if the switch 
configuration comes from a BOOTP or DHCP server, then the default domain 
name might be set by the BOOTP or DHCP server (if the servers were 
configured with this information).
Step 3
ip name-server server-address1 
[server-address2 ... 
server-address6]
Specify the address of one or more name servers to use for name and address 
resolution.
You can specify up to six name servers. Separate each server address with a 
space. The first server specified is the primary server. The switch sends DNS 
queries to the primary server first. If that query fails, the backup servers are 
queried.
Step 4
ip domain-lookup (Optional) Enable DNS-based host name-to-address translation on your switch. 
This feature is enabled by default. 
If your network devices require connectivity with devices in networks for which 
you do not control name assignment, you can dynamically assign device names 
that uniquely identify your devices by using the global Internet naming scheme 
(DNS).
Step 5
end Return to privileged EXEC mode.