dns-server

Syntax

dns-server <IPVv6-ADDR-LIST>

no dns-server <IPVv6-ADDR-LIST>

Description

Defines up to four DNS servers for the current DHCPv6 server pool.

The no form of this command removes the specified DNS servers from the pool.

Command context

config-dhcpv6-server-pool

Parameters

<IPVv6-ADDR-LIST>

Specifies the IP addresses of the DNS servers in IPv6 format (xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx), where x is a hexadecimal number from 0 to F. Separate addresses with a space. A maximum of four IP addresses can be defined.

Authority

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

Example

Defines DNS server 2001::13 for the server pool primary-pool on VRF primary.

switch(config)# dhcpv6-server vrf primary
switch(config-dhcpv6-server)# pool primary-pool
switch(config-dhcpv6-server-pool)# dns-server 2001::13

Deletes DNS server 2001::13 from the server pool primary-pool on VRF primary.

switch(config)# dhcpv6-server vrf primary
switch(config-dhcpv6-server)# pool primary-pool
switch(config-dhcpv6-server-pool)# no dns-server 2001::13