38-2
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2948G-GE-TX, and Catalyst 2980G Switches Software Configuration Guide—Release 8.2GLX
78-15908-01
Chapter 38 Configuring DNS
Default DNS Configuration
Default DNS Configuration
Table 38-1 shows the default DNS configuration.
Configuring DNS on the Switch
The following sections describe how to configure DNS:
• Setting Up and Enabling DNS, page 38-2
• Clearing a DNS Server, page 38-3
• Clearing the DNS Domain Name, page 38-3
• Disabling DNS, page 38-3
Setting Up and Enabling DNS
To set up and enable DNS on the switch, perform this task in privileged mode:
This example shows how to set up and enable DNS on the switch and verify the configuration:
Console> (enable) set ip dns server 10.2.2.1
10.2.2.1 added to DNS server table as primary server.
Console> (enable) set ip dns server 10.2.24.54 primary
10.2.24.54 added to DNS server table as primary server.
Console> (enable) set ip dns server 10.12.12.24
10.12.12.24 added to DNS server table as backup server.
Console> (enable) set ip dns domain corp.com
Default DNS domain name set to corp.com
Console> (enable) set ip dns enable
DNS is enabled
Console> (enable) show ip dns
DNS is currently enabled.
The default DNS domain name is: corp.com
DNS name server status
---------------------------------------- -------
Table 38-1 Default DNS Configuration
Feature Default Value
DNS enable state Disabled
DNS default domain name Null
DNS servers None specified
Task Command
Step 1
Specify the IP address of one or more DNS servers. set ip dns server ip_addr [primary]
Step 2
Set the domain name. set ip dns domain name
Step 3
Enable DNS. set ip dns enable
Step 4
Verify the DNS configuration. show ip dns [noalias]