Purpose
Command or Action
Defines a default domain name that the software uses to complete
unqualified hostnames (names without a dotted-decimal domain name).
ip domain-name name
Example:
Switch(config)#
ip domain-name
Step 3
Do not include the initial period that separates an unqualified name from
the domain name.
Cisco.com
At boot time, no domain name is configured; however, if the switch
configuration comes from a BOOTP or Dynamic Host Configuration
Protocol (DHCP) server, then the default domain name might be set by
the BOOTP or DHCP server (if the servers were configured with this
information).
Specifies the address of one or more name servers to use for name and
address resolution.
ip name-server server-address1
[
server-address2 ... server-address6
]
Step 4
Example:
Switch(config)#
ip
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.
name-server 192.168.1.100
192.168.1.200 192.168.1.300
(Optional) Enables DNS-based hostname-to-address translation on your
switch. This feature is enabled by default.
ip domain-lookup
[
nsap
|
source-interface
interface
]
Step 5
Example:
Switch(config)#
ip domain-lookup
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).
Returns to privileged EXEC mode.
end
Example:
Switch(config)#
end
Step 6
Verifies your entries.
show running-config
Example:
Switch#
show running-config
Step 7
(Optional) Saves your entries in the configuration file.
copy running-config startup-config
Example:
Switch#
copy running-config
Step 8
startup-config
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1539
How to Administer the Switch
Summary of Contents for Catalyst 2960 Series
Page 96: ......
Page 196: ......
Page 250: ......
Page 292: ......
Page 488: ......
Page 589: ...P A R T VI Cisco Flexible NetFlow Configuring NetFlow Lite page 509 ...
Page 590: ......
Page 619: ...P A R T VII QoS Configuring QoS page 539 Configuring Auto QoS page 645 ...
Page 620: ......
Page 750: ......
Page 1604: ......
Page 1740: ......
Page 2105: ...P A R T XII Configuring Cisco IOS IP SLAs Configuring Cisco IP SLAs page 2025 ...
Page 2106: ......
Page 2118: ......
Page 2164: ......