dns-server
Use dns-server to specify a DNS server in a DHCPv6 address pool.
Use undo dns-server to remove the specified DNS server from a DHCPv6 address pool.
Syntax
dns-server ipv6-address
undo dns-server ipv6-address
Default
No DNS server address is specified.
Views
DHCPv6 address pool view
DHCPv6 option group view
Predefined user roles
network-admin
mdc-admin
Parameters
ipv6-address: Specifies the IPv6 address of a DNS server.
Usage guidelines
You can use the dns-server command to specify up to eight DNS servers in an address pool. A DNS server specified earlier has a higher preference.
Examples
# Specify the DNS server address 2:2::3 in DHCPv6 address pool 1.
<Sysname> system-view [Sysname] ipv6 dhcp pool 1 [Sysname-dhcp6-pool-1] dns-server 2:2::3
Related commands
display ipv6 dhcp pool