< Home

ipv6 host

Function

The ipv6 host command configures an IPv6 static DNS entry.

The undo ipv6 host command deletes an IPv6 static DNS entry.

By default, no IPv6 static DNS entry is configured.

Format

ipv6 host host-name ipv6-address [ vpn-instance vpn-instance-name ]

undo ipv6 host host-name [ ipv6-address [ vpn-instance vpn-instance-name ] ]

Parameters

Parameter

Description

Value

host-name

Specifies the host name.

The value is a string of 1 to 255 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.

vpn-instance vpn-instance-name

Specifies the name of a VPN instance.

The value must be an existing VPN instance name.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When requesting the IPv6 address mapping a domain name, the DNS client searches for the specified domain name in the static DNS table to obtain the corresponding IPv6 address. The ipv6 host command configures an IPv6 static DNS entry.

Precautions

Each domain name supports a maximum of eight IPv6 addresses.

Example

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

<HUAWEI> system-view
[HUAWEI] ipv6 host www.huawei.com fc00:1::8
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >