Setting Up Dns - Cisco Catalyst 2960 series Configuration Manual

Consolidated platform configuration guide, ios release 15.2(4)e
Hide thumbs Also See for Catalyst 2960 series:
Table of Contents

Advertisement

How to Administer the Switch
Command or Action
Step 6
copy running-config startup-config
Example:
Switch# copy running-config startup-config

Setting Up 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 hostname that contains no periods (.), a period followed by the default domain name is appended
to the hostname before the DNS query is made to map the name to an IP address. The default domain name
is the value set by the ip domain-name global configuration command. If there is a period (.) in the hostname,
the Cisco IOS software looks up the IP address without appending any default domain name to the hostname.
Follow these steps to set up your switch to use the DNS:
SUMMARY STEPS
1. enable
2. configure terminal
3. ip domain-name name
4. ip name-server server-address1 [server-address2 ... server-address6]
5. ip domain-lookup [nsap | source-interface interface]
6. end
7. show running-config
8. copy running-config startup-config
DETAILED STEPS
Command or Action
Step 1
enable
Example:
Switch> enable
Step 2
configure terminal
Example:
Switch# configure terminal
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1538
Purpose
(Optional) Saves your entries in the configuration file.
Purpose
Enables privileged EXEC mode. Enter your password if prompted.
Enters the global configuration mode.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents