Configuring static domain name resolution

Restrictions and guidelines

For the public network or a VPN instance, each host name maps to only one IPv4 address and one IPv6 address.

A maximum of 2048 DNS entries can be configured for the public network or each VPN instance. You can configure DNS entries for both public network and VPN instances.

Procedure

  1. Enter system view.

    system-view

  2. Configure a host name-to-address mapping. Choose the options to configure as needed:

    IPv4:

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

    IPv6:

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