30-2
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
OL-8978-04
Chapter 30 Configuring DNS
DNS Default Configuration
DNS Default Configuration
Table 30-1
shows the default DNS configuration.
Configuring DNS on the Switch
These sections describe how to configure DNS:
•
Setting Up and Enabling DNS, page 30-2
•
Clearing a DNS Server, page 30-3
•
Clearing the DNS Domain Name, page 30-3
•
Disabling DNS, page 30-4
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
Table 30-1
DNS Default 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
]