Configuring a System Name and Prompt
These sections contain this configuration information:
•
•
•
Default DNS Configuration
Table 4-2
Table 4-2
Feature
DNS enable state
DNS default domain name
DNS servers
Setting Up DNS
To set up your switch to use the DNS, perform this task:
Command
Step 1
configure terminal
Step 2
ip domain-name name
Step 3
ip name-server
server-address1
[
server-address2 ...
server-address6
Software Configuration Guide—Release IOS XE 3.3.0SG and IOS 15.1(1)SG
4-16
Default DNS Configuration, page 4-16
Setting Up DNS, page 4-16
Displaying the DNS Configuration, page 4-17
shows the default DNS configuration.
Default DNS Configuration
Purpose
Enters global configuration mode.
Defines a default domain name that the software uses to complete unqualified
hostnames (names without a dotted-decimal domain name).
To remove a domain name, use the no ip domain-name name global
configuration command.
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 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.
]
To remove a name server address, use the no ip name-server server-address
global configuration command.
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.
Chapter 4
Default Setting
Enabled.
None configured.
No name server addresses are configured.
Administering the Switch
OL-25340-01