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. You can use two colons (::) to represent consecutive zeros (but only once), remove leading zeros, and collapse a hextet of four zeros to a single 0. For example, this address 2222:0000:3333:0000:0000:0000:4444:0055 becomes 2222:0:3333::4444:55. Separate addresses with a space. A maximum of four IP addresses can be defined.

Authority

Administrators

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