- Table of Contents
-
- 04-Layer 3 Command Reference
- 00-Preface
- 01-ARP Commands
- 02-IP Addressing Commands
- 03-DHCP Commands
- 04-DHCPv6 Commands
- 05-DNS Commands
- 06-IPv6 DNS Commands
- 07-NAT Commands
- 08-Adjacency Table Commands
- 09-Flow Classification Commands
- 10-IPv6 Basics Commands
- 11-IP Performance Optimization Commands
- 12-Basic IP Routing Commands
- 13-Static Routing Commands
- 14-IPv6 Static Routing Commands
- 15-GRE Commands
- 16-RIP Commands
- 17-RIPng Commands
- 18-Policy-Based Routing Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
06-IPv6 DNS Commands | 63.56 KB |
IPv6 DNS configuration commands
display dns ipv6 server
Use display dns ipv6 server to display IPv6 DNS server information.
Syntax
display dns ipv6 server [ dynamic ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
dynamic: Displays IPv6 DNS server information acquired dynamically through DHCP or other protocols.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display IPv6 DNS server information.
<Sysname> display dns ipv6 server
Type:
D:Dynamic S:Static
DNS Server Type IPv6 Address (Interface Name)
1 S 1::1
2 S FE80::1 Vlan999
Table 1 Command output
Field |
Description |
DNS Server |
Sequence number. |
Type |
Type of the DNS server: · S—A manually configured DNS server. · D—A DNS server obtained dynamically through DHCP or other protocols. |
IPv6 Address |
IPv6 address of the DNS server. |
Interface Name |
Interface name, available only for a DNS server with an IPv6 link-local address configured. |
display ipv6 host
Use display ipv6 host to display the mappings between host names and IPv6 addresses in the static domain name resolution table.
Syntax
display ipv6 host [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display the mappings between host names and IPv6 addresses in the static domain name resolution table.
<Sysname> display ipv6 host
Host Age Flags IPv6Address
aaa 0 static 2002::1
bbb 0 static 2002::2
Table 2 Command output
Field |
Description |
Host |
Host name. |
Age |
Time for the entry to live. 0 is displayed in the case of static configuration. |
Flags |
Mapping type. Static indicates a static mapping. |
IPv6Address |
IPv6 address of a host. |
ipv6 host
dns server ipv6
Use dns server ipv6 to specify a DNS server.
Use undo dns server ipv6 to remove the specified DNS server.
Syntax
dns server ipv6 ipv6-address [ interface-type interface-number ]
undo dns server ipv6 ipv6-address [ interface-type interface-number ]
Default
No DNS server is configured.
Views
System view
Default command 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.
Usage guidelines
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
Use ipv6 host to configure a mapping between a host name and an IPv6 address.
Use undo ipv6 host to remove a mapping between a host name and an IPv6 address.
Syntax
ipv6 host hostname ipv6-address
undo ipv6 host hostname [ ipv6-address ]
Default
No mappings are created.
Views
System view
Default command 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.
Usage guidelines
Each host name can correspond to only one IPv6 address. If you use the command multiple times, the most recent configuration takes effect.
Examples
# Configure the mapping between a host name and an IPv6 address.
<Sysname> system-view
[Sysname] ipv6 host aaa 2001::1
Related commands
display ipv6 host