The dns server ipv6 unnumbered command configures the device to use the IPv6 address of the DNS server obtained from a specified interface.
The undo dns server ipv6 unnumbered restores the default setting.
By default, the IPv6 address of the DNS server obtained from a specified interface cannot be directly used.
dns server ipv6 unnumbered interface interface-type interface-number { dhcpv6 | nd-ra }
undo dns server ipv6 unnumbered interface interface-type interface-number { dhcpv6 | nd-ra }
Parameter |
Description |
Value |
|---|---|---|
| interface interface-type interface-number | Specifies the interface from which the IPv6 address of the
DNS server is obtained.
|
- |
| dhcpv6 | Specifies DHCPv6 information of an interface from which the IPv6 address of the DNS server is obtained. |
- |
| dn-ra | Specifies ND information of an interface from which the IPv6 address of the DNS server is obtained. | - |
The IPv6 address of the DNS server can be specified using a command and obtained from the DHCPv6 or ND messages. However, the IPv6 address of the DNS server obtained from the DHCPv6 or ND messages cannot be directly used, and you must run the dns server ipv6 unnumbered interface interface-type interface-number { dhcpv6 | nd-ra } command to specify the interface from which the IPv6 address of the DNS server is obtained, namely, to specify the interface functioning as the DHCPv6 client or the interface to be enabled with the RA packet advertisement function on the device. The IPv6 address of the DNS server obtained from the specified interface can be used by the device only after this command is run.