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), where x is a decimal number from 0 to 255.Separate addresses with a space.

Authority

Administrators or local user group members with execution rights for this command.

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