Configuring Dns On The Switch; Setting Up And Enabling Dns - Cisco WS-C2950SX-48-SI Configuration Manual

Catalyst 4500 series switches
Hide thumbs Also See for WS-C2950SX-48-SI:
Table of Contents

Advertisement

Configuring DNS on the Switch

Table 38-1 Default DNS Configuration (continued)
Feature
DNS default domain name
DNS servers
Configuring DNS on the Switch
The following sections describe how to configure DNS:

Setting Up and Enabling DNS

To set up and enable DNS on the switch, perform this task in privileged mode:
Task
Step 1
Specify the IP address of one or more DNS servers.
Step 2
Set the domain name.
Step 3
Enable DNS.
Step 4
Verify the DNS configuration.
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
----------------------------------------
dns_serv2
dns_serv1
dns_serv3
Console> (enable)
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2980G Switches Software Configuration Guide
38-2
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
Default Value
Null
None specified
Command
set ip dns server ip_addr [primary]
set ip dns domain name
set ip dns enable
show ip dns [noalias]
status
-------
primary
Release 8.1
Chapter 38
Configuring DNS
78-15486-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents