- Table of Contents
-
- 04-Layer 3 Command Reference
- 00-Preface
- 01-Basic IP Routing Commands
- 02-Static Routing Commands
- 03-IPv6 Static Routing Commands
- 04-IP Addressing Commands
- 05-IPv6 Basics Commands
- 06-DHCP Commands
- 07-DHCPv6 Commands
- 08-DNS Commands
- 09-IPv6 DNS Commands
- 10-IP Performance Optimization Commands
- 11-ARP Commands
- 12-IP Forwarding Basics Commands
- 13-NAT Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
09-IPv6 DNS Commands | 84.05 KB |
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 |
Type of the mapping. 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: 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 host name and IPv6 address.
Use undo ipv6 host to remove a mapping between host name and 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: 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.
Usage guidelines
Each host name can correspond to only one IPv6 address. The IPv6 address you last assign to the host name overwrites the previous one if there is any.
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