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
- Run system-view
Access the system view.
- Run ip host host-name ip-address
Specify a host name and an IPv4 address mapped to the host name.
A host name is mapped to only a single IPv4 address. When you configure an IPv4 address for a host several times, only the IPv4 address configured at the latest is valid. Repeat 2 to allow the device to resolve several host names.