< Home

Configuring the Static Domain Name Resolution

Context

A static domain name resolution table is manually set up, describing the mappings between domain names and IP addresses. Some common domain names are added to the table. Static domain name resolution can be performed based on the static domain name resolution table. To obtain the IP address by resolving a domain name, the client searches the static domain name resolution table for the specified domain name. In this manner, the efficiency of domain name resolution is improved.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run ip host host-name ip-address [ vpn-instance vpn-instance-name ]

    A static DNS entry is configured.

    By default, no static DNS entries are configured.

    Each host name can be mapped to only one IP address. When one host name is mapped to multiple IP addresses, only the latest configuration takes effect. If multiple host names need to be resolved, repeat this step.

    A maximum of 50 static DNS entries can be configured on the switch.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >