< Home

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 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.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When device functions as a 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 1 IPv6 address.

Example

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

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