Users Guide

Switch Management Commands 2043
User Guidelines
Server preference is determined by entry order.
Up to eight servers can be defined in one command or by using multiple
commands. Use the
show hosts
command to display the configured name
servers.
Example
The following example sets the available name server.
console(config)#ip name-server 176.16.1.18
ip name-server source-interface
Use the ip name-server source-interface command to select the interface
from which to use the IP address in the source IP address field of transmitted
DNS packets. To revert to the default IP address, use the no form of this
command.
Syntax
ip name-server source-interface {loopback loopback-id | tunnel tunnel-id |
vlan vlan-id }
no ip name-server source-interface
loopback-id— A loopback interface identifier.
tunnel-id— A tunnel identifier.
vlan-id— A VLAN identifier.
Default Configuration
By default, the switch uses the assigned switch IP address as the source IP
address for DNS packets. This address is either the IP address assigned to the
VLAN from which the DNS packet originates or the out-of-band interface IP
address.
Command Mode
Global Configuration mode