28-2
Catalyst 6000 Family Software Configuration Guide—Releases 6.3 and 6.4
78-13315-02
Chapter 28 Configuring DNS
Configuring DNS
Configuring DNS
These sections describe how to configure DNS:
•
Setting Up and Enabling DNS, page 28-2
•
Clearing a DNS Server, page 28-3
•
Clearing the DNS Domain Name, page 28-3
•
Disabling DNS, page 28-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
---------------------------------------- -------
dns_serv2
dns_serv1 primary
dns_serv3
Console> (enable)
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
]