No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

AR500, AR510, and AR530 V200R007

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
IPv6 DNS Configuration Commands

IPv6 DNS Configuration Commands

NOTE:

The AR502G-L-D-H, AR502GR-L-D-H, do not support IPv6 DNS function.

The AR510 series do not support IPv6 DNS function.

display dns ipv6 dynamic-host

Function

The display dns ipv6 dynamic-host command displays IPv6 dynamic DNS entries saved in the cache.

Format

display dns ipv6 dynamic-host [ domain-name | a6 ]

Parameters

Parameter

Description

Value

domain-name

Displays IPv6 entries specified the domain name suffix.

The value must be an existing domain name suffix.

a6

Displays IPv6 entries specified A6 query type.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After dynamic domain name resolution is completed, you can run the display dns ipv6 dynamic-host command to check dynamic IPv6 DNS entries in the domain name cache.

Example

# Display the IPv6 dynamic DNS entries saved in the cache.

<Huawei> display dns ipv6 dynamic-host
Host                  TTL    Type    Address(es) 
www.ipv6.com         88779   IPv6    FC00:1::1
Table 7-105  Description of the display dns ipv6 dynamic-host command output

Item

Description

Host

Domain name.

TTL

Time left before dynamic DNS entries saved in the domain name cache will be aged out, in seconds.

Type

Dynamic DNS entry type.

Address(es)

IPv6 address in a dynamic cache entry.

display dns ipv6 forward table

Function

The display dns ipv6 forward table command displays the DNS forwarding table, including the mapping entry of the source IPv6 address in a specified DNS query message.

Format

display dns ipv6 forward table [ source-ip ipv6-address ]

Parameters

Parameter

Description

Value

source-ip ipv6-address

Specifies the source IPv6 address in query messages.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

Two or more consecutive zeros in the address can be replaced by "::".

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After DNS proxy or DNS relay is enabled, you can run the display dns forward table command to view the DNS forwarding table of IPv6 addresses. When the DNS proxy or relay is attacked, the DNS forwarding table will be full. As a result, new DNS entries cannot be queried. You can run the reset dns ipv6 forward table command to delete all DNS entries.

Example

# Display the IPv6 DNS forwarding table on the DNS proxy or relay.

<Huawei> display dns ipv6 forward table
Domain name            : www.ipv6.com  
Source IPv6 address    : FC00:1::5
Source port            : 49154 
Source packet id       : 5 
Forward packet id      : 0 
Query type             : 28  
Table 7-106  Description of the display dns ipv6 forward table command output

Item

Description

Domain name

Domain name.

Source ipv6 address

Source IPv6 address of a query message.

Source Port

Source port of a query message.

Source packet id

ID of a query message.

Forward packet id

ID of the forwarded packet, which corresponds to the ID of the query message.

Query type

Query type
  • 28: AAAA query
  • 38: A6 query

display ipv6 host

Function

The display ipv6 host command displays the IPv6 static DNS table.

Format

display ipv6 host

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After running the ipv6 host command to configure IPv6 static DNS entries, you can run this command to check whether mappings between host names and IPv6 addresses are correct.

Example

# Display the IPv6 static DNS table.

<Huawei> display ipv6 host
Host                 Age        Flags    IPv6Address (es)
www.huawei.com        0        static          FC00:1::8   
www.sohu.com          0        static          FC00:1::9   
Table 7-107  Description of the display ipv6 host command output

Item

Description

Host

Host name.

Age

Aging time. The value 0 indicates that the entry is not aged out.

Flags

Identifiers. The value static indicates a static domain name.

IPv6Address (es)

IPv6 address mapping the domain name.

Related Topics

dns server ipv6

Function

The dns server ipv6 command configures the IPv6 address for the DNS server that resolves dynamic domain names.

The undo dns server ipv6 command deletes the configured IPv6 address for DNS server.

By default, no IPv6 address is configured for the DNS server that resolves dynamic domain names.

Format

dns server ipv6 ipv6-address [ interface-type interface-number ]

undo dns server ipv6 [ ipv6-address [ interface-type interface-number ] ]

Parameters

Parameter

Description

Value

ipv6-address

Specifies the IPv6 address for a DNS server.

The value consists of 128 octets, which are classified into 8 groups. Each group contains 4 hexadecimal numbers in the format X:X:X:X:X:X:X:X.

interface-type interface-number

Specifies the type and number of an outbound interface that communicates with the DNS server.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The DNS client must work with the DNS server to implement dynamic domain name resolution. You can run the dns server ipv6 command to specify the IPv6 address of the DNS server. The DNS client sends requests to the specified DNS server for domain name resolution.

Precautions

  • The IPv6 address of the DNS server must be a global unicast address or link-local address.
    • If a link-local address is configured as the IPv6 address of the DNS server, specify the outbound interface for communicating with the DNS server.
    • If a global unicast address is configured as the IPv6 address of the DNS server, do not specify the outbound interface for communicating with the DNS server.
  • A maximum of six DNS server IP (IPv4 and IPv6) addresses can be configured on the device. During dynamic domain name resolution, the device sends a query packet to the DNS servers according to the order in which they were configured. If the domain name query on the first DNS server times out, the device sends the query request to the second DNS server.

Example

# Configure the IPv6 address of the DNS server to fc00:1::1.

<Huawei> system-view
[Huawei] dns server ipv6 fc00:1::1

dns server ipv6 source-ip

Function

The dns server ipv6 source-ip command configures the source IPv6 address for the local end functioning as the DNS client to communicate with the DNS server.

The undo dns server ipv6 source-ip command deletes the source IPv6 address used for the local end functioning as the DNS client to communicate with the DNS server.

By default, no source IPv6 address is configured for the local end functioning as the DNS client to communicate with the DNS server.

Format

dns server ipv6 source-ip ipv6-address

undo dns server ipv6 source-ip

Parameters

Parameter

Description

Value

ipv6-address

Specifies the source IPv6 address of the local device.

The value consists of 128 octets, which are classified into 8 groups. Each group contains 4 hexadecimal numbers in the format X:X:X:X:X:X:X:X.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the source IPv6 address of the local device is specified, the device uses the specified source IPv6 address to communicate with the DNS server to ensure the security check. The DNS server returns the request for a domain name to the local device along the specified route. If no source IPv6 address is configured, the DNS client needs to select a source IPv6 address according to the destination address each time it sends an IPv6 DNS request.

Precautions

If only one route from the DNS server to the device with an IPv6 address is reachable, you need to specify the source IPv6 address in the DNS query message when the device sends a DNS query to the DNS server.

Example

# Configure the source IPv6 address of the local device to fc00:1::1.

<Huawei> system-view
[Huawei] dns server ipv6 source-ip fc00:1::1

dns spoofing ipv6

Function

The dns spoofing ipv6 command enables IPv6 DNS spoofing and specifies an IPv6 address in response messages.

The undo dns spoofing ipv6 command disables IPv6 DNS spoofing.

By default, IPv6 DNS spoofing is disabled.

Format

dns spoofing ipv6 ipv6-address

undo dns spoofing ipv6

Parameters

Parameter

Description

Value

ipv6-address

Specifies an IPv6 address in response messages.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If the DNS server address or route to the DNS server is not configured on the DNS proxy or relay, you can enable DNS spoofing on the device to spoof a response message with the configured IPv6 address. Currently, IPv6 DNS spoofing takes effect for only AAAA query (IPv6 address query based on domain names) and A6 query.

Prerequisites

DNS relay or DNS proxy has been enabled using the dns relay enable or dns proxy enable command in the system view.

Precautions

If you run the dns spoofing ipv6 command multiple times, only the latest configuration takes effect.

Example

# Enable DNS spoofing and specify the IPv6 address in response messages as fc00:1::8.

<Huawei> system-view
[Huawei] dns spoofing ipv6 fc00:1::8

ipv6 host

Function

The ipv6 host command configures IPv6 static DNS entries.

The undo ipv6 host command deletes IPv6 static DNS entries.

By default, no IPv6 static DNS entry is configured.

Format

ipv6 host host-name ipv6-address

undo ipv6 host host-name [ ipv6-address ]

Parameters

Parameter

Description

Value

host-name

Specifies the host name.

The value is a string of 1 to 24 case-sensitive characters without any space. The value must contain at least one letter, and can consist of letters, digits, hyphens (-), dots (.), and underscores (_).

ipv6-address

Specifies the IPv6 address mapping the host name.

The value consists of 128 octets, which are classified into 8 groups. Each group contains 4 hexadecimal numbers in the format X:X:X:X:X:X:X:X.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When device functions as a DNS proxy or DNS client and requests the IPv6 address mapping a domain name, the device searches for the specified domain name in the static DNS table to obtain the mapping IPv6 address. The ipv6 host command configures IPv6 static DNS entries.

Precautions

Each domain name supports a maximum of eight IPv6 addresses.

Example

# Configures IPv6 static DNS entries mapping the host named www.huawei.com.

<Huawei> system-view
[Huawei] ipv6 host www.huawei.com fc00:1::8
Related Topics

reset dns ipv6 dynamic-host

Function

The reset dns ipv6 dynamic-host command clears IPv6 dynamic DNS entries saved in the cache.

Format

reset dns ipv6 dynamic-host

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

DNS entries cannot be restored after being deleted. Confirm the action before you run the command.

Example

# Clear IPv6 dynamic DNS entries saved in the cache.

<Huawei> reset dns ipv6 dynamic-host

reset dns ipv6 forward table

Function

The reset dns ipv6 forward table command clears entries in the DNS forward table, including the mapping entry of the source IPv6 address in a specified DNS query message.

Format

reset dns ipv6 forward table [ source-ip ipv6-address ]

Parameters

Parameter

Description

Value

source-ip ipv6-address

Specifies the source IPv6 address in query messages.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

Views

User view

Default Level

3: Management level

Usage Guidelines

When the DNS proxy or relay is attacked, the DNS table will be full. As a result, new DNS entries cannot be queried. You can run the display dns ipv6 forward table command to view the DNS table, and run the reset dns ipv6 forward table command to clear entries in the DNS table.

Example

# Clear DNS entries in the DNS table on the DNS proxy or DNS relay.

<Huawei> reset dns ipv6 forward table
Translation
Download
Updated: 2019-02-18

Document ID: EDOC1000097293

Views: 35523

Downloads: 101

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next