- Table of Contents
-
- 06-Layer 3 - IP Services Command Reference
- 00-Preface
- 01-ARP Commands
- 02-IP Addressing Commands
- 03-DHCP Commands
- 04-DNS Commands
- 05-NAT Commands
- 06-IP Forwarding Basics Commands
- 07-Adjacency Table Commands
- 08-IP Performance Optimization Commands
- 09-UDP helper Commands
- 10-IPv6 Basics Commands
- 11-DHCPv6 Commands
- 12-IPv6 DNS Commands
- 13-Tunneling Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
12-IPv6 DNS Commands | 66.62 KB |
display dns ipv6 server
Syntax
display dns ipv6 server [ dynamic ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default 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.
Description
Use display dns ipv6 server to display IPv6 DNS server information.
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 of the DNS server, which is assigned automatically by the system, starting from 1. |
Type |
DNS server type: · S—A statically 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, which is available only for a DNS server with an IPv6 link-local address configured. |
display ipv6 host
Syntax
display ipv6 host [ | { begin | exclude | include } regular-expression ]
View
Any view
Default 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.
Description
Use display ipv6 host to display the mappings between host names and IPv6 addresses in the static domain name resolution table.
Related commands: ipv6 host.
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. |
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: 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 dns server ipv6 to specify a DNS server.
Use undo dns server ipv6 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: 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: IPv6 address.
Description
Use ipv6 host to configure a mapping between host name and IPv6 address.
Use undo ipv6 host to remove a mapping between host name and IPv6 address.
No mappings are created by default.
Each host name has only one IPv6 address. The IPv6 address you last assign to the host name overwrites the previous one.
Related commands: display ipv6 host.
Examples
# Configure the mapping between a host name and an IPv6 address.
<Sysname> system-view
[Sysname] ipv6 host aaa 2001::1