Cisco Systems OL-6244-01 Switch User Manual


  Open as PDF
of 1438
 
2-356
Catalyst 6500 Series Switch Command Reference—Release 8.4
OL-6244-01
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
set ip dns server
set ip dns server
To set the IP address of a Domain Name System (DNS) server, use the set ip dns server command.
set ip dns server ip_addr [primary]
Syntax Description
Defaults This command has no default settings.
Command Types Switch command.
Command Modes Privileged.
Usage Guidelines You can configure up to three DNS name servers as backup. You can also configure any DNS server as
the primary server. The primary server is queried first. If the primary server fails, the backup servers are
queried.
If DNS is disabled, you must use the IP address with all commands that require explicit IP addresses or
manually define an alias for that address. The alias has priority over DNS.
Examples These examples show how to set the IP address of a DNS server:
Console> (enable) set ip dns server 198.92.30.32
198.92.30.32 added to DNS server table as primary server.
Console> (enable) set ip dns server 171.69.2.132 primary
171.69.2.132 added to DNS server table as primary server.
Console> (enable) set ip dns server 171.69.2.143 primary
171.69.2.143 added to DNS server table as primary server.
This example shows what happens if you enter more than three DNS name servers as backup:
Console> (enable) set ip dns server 161.44.128.70
DNS server table is full. 161.44.128.70 not added to DNS server table.
Related Commands clear ip dns server
show ip dns
ip_addr IP address of the DNS server.
primary (Optional) Configures a DNS server as the primary server.