7-50
Catalyst 2950 Desktop Switch Software Configuration Guide
78-14982-01
Chapter 7 Administering the Switch
Configur ing a System Nam e and Prompt

Default DNS Configuration

Table 7-3 shows the defaul t D NS c onfiguration .

Setting Up DNS

Beginning i n privileged EX EC mo de , follow these s teps to s et up you r s witc h to use th e DNS:
If you use the switch IP address as its hostname, the IP address is used and no DNS query occurs. If you
configure a ho stname tha t contai ns no periods (.), a period foll owed by the de fault domai n name is
appended to the hostnam e before the DNS query is made to map the name t o an IP address. The de faul t
Table 7-3 Default DNS Configuration
Feature Default Setting
DNS enable state Enabled.
DNS defa ult domai n name None configure d.
DNS servers No name server addresses are configured.
Command Purpose
Step 1 configure terminal Enter g lo bal c onfigurat ion m ode.
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
domai n n ame.
At start time, no domain name is configured; however, if the switch
configuration comes from a BOOTP or Dynamic Host Configurati on Protocol
(DHCP) server, the default domain name might be set by the BOO TP or DHCP
server (if the servers were configured with this information).
Step 3 ip name-server server-address1
[server-address2 ...
server-address6]
Specify th e address of one or more name servers to use fo r name and ad dress
resolution.
You can specif y up to six name ser vers. Separate each server addr ess 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 connecti vity 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 pr ivileged EX EC m ode.
Step 6 show running-config Verify your entries.
Step 7 copy running-config
startup-config (Optional) Save your entries in the configuration file.