106
dns server ipv6
Syntax
dns server
ipv6
ipv6-address
[
interface-type interface-number
]
undo dns server ipv6
ipv6-address
[
interface-type interface-number
]
View
System view
Default level
2: System level
Parameters
ipv6-address
: Specifies the IPv6 address of a DNS server.
interface-type interface-number
: Specifies an interface. When the IPv6 address of the DNS server is a
link-local address, the two arguments must be specified.
Description
Use the
dns server ipv6
command to specify a DNS server.
Use the
undo dns server ipv6
command to remove the specified DNS server.
By default, no DNS server is configured.
You can configure a maximum of six DNS servers, including those with IPv4 addresses.
Examples
# Specify a DNS server at 2002::1.
<Sysname> system-view
[Sysname] dns server ipv6 2002::1
ipv6 host
Syntax
ipv6 host
hostname
ipv6-address
undo ipv6 host
hostname
[
ipv6-address
]
View
System view
Default level
2: System level
Parameters
hostname
: Specifies the host name, a string of up to 255 characters. The character string can contain
letters, numbers, underscores (_), hyphens (-), or dots (.) and must contain at least one letter.
ipv6-address
: Specifies the IPv6 address.
Description
Use the
ipv6 host
command to configure a mapping between host name and IPv6 address.
Use the
undo ipv6 host
command to remove a mapping between host name and IPv6 address.