Switch Management Commands 1959
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
User Guidelines
The source interface must have an assigned IP address (assigned either
manually or via another method such as DHCP).
The use of a source interface allows firewalls devices to identify DNS packets
as coming from a specific switch. If the source interface is not specified, the
primary address of the outbound interface is used as the source interface. If
the specified interface is down, the DNS client falls back to it’s original
(unconfigured) behavior.