4-17
Software Configuration Guide—Release 15.0(2)SG
OL-23818-01
Chapter 4 Administering the Switch Creating a Banner
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.

Displaying the DNS Configuration

To display the DNS configuration information, use the show running-config privileged EXEC
command.
Creating a Banner
You can configure a message-of-the-day (MOTD) and a login banner. The MOTD banner displays on
all connected terminals at login and is useful for sending messages that affect all network users (such as
impending system shutdowns).
The login banner also displays on all connected terminals. It appears after the MOTD banner and before
the login prompts.
Note For complete syntax and usage information for the commands used in this section, see the Cisco IOS
Configuration Fundamentals Command Reference, Release 12.3.
The contain this configuration information:
Default Banner Configuration, page 4-18
Configuring a Message-of-the-Day Login Banner, page 4-18
Configuring a Login Banner, page 4-19
Step 4 ip domain-lookup (Optional) Enables DNS-based hostname-to-address translation on your switch.
This feature is enabled by default.
To disable DNS on the switch, use the no ip domain-lookup global
configuration command.
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 Returns to privileged EXEC mode.
Step 6 show running-config Verifies your entries.
Step 7 copy running-config
startup-config (Optional) Saves your entries in the configuration file.
Command Purpose