dns-server
Syntax
dns-server <IPV4-ADDR-LIST>
no dns-server <IPV4-ADDR-LIST>
Description
Defines up to four DNS servers for the current DHCPv4 server pool.
The
no
form of this command removes the specified DNS servers from the pool.
Command context
config-dhcp-server-pool
Parameters
<IPV4-ADDR-LIST>
Specifies the IP addresses of the DNS servers in IPv4 format (
x.x.x.x
), wherex
is a decimal number from 0 to 255. You can remove leading zeros. For example, the address192.169.005.100
becomes192.168.5.100
. Separate addresses with a space. A maximum of four IP addresses can be defined.
Authority
Administrators
Example
Defines two DNS servers for the server pool primary-pool on VRF primary.
switch(config)# dhcp-server vrf primary switch(config-dhcp-server)# pool primary-pool switch(config-dhcp-server-pool)# dns-server 10.0.20.1
Deletes a DNS server from the server pool primary-pool on VRF primary.
switch(config)# dhcp-server vrf primary switch(config-dhcp-server)# pool primary-pool switch(config-dhcp-server-pool)# no dns-server 10.0.20.1