A static domain name resolution table is manually set up, describing the mappings between domain names and IP addresses. In addition, some common domain names are added to the table. Then, static domain name resolution can be performed according to the static domain name resolution table. When requiring the IP address corresponding to a domain name, the client firstly searches the static domain name resolution table for the specified domain name and obtains the corresponding IP address. In this manner, the efficiency of domain name resolution is improved. Static DNS entries are classified into IPv4 static DNS entries with the mapping between domain names and IPv4 addresses and IPv6 static DNS entries with the mapping between domain names and IPv6 addresses.
Run system-view
The system view is displayed.
Run ip host host-name ip-address
IPv4 static DNS entries are configured.
By default, no IPv4 static DNS entry is configured.
Each host name can be mapped to only one IPv4 address. When multiple IPv4 addresses are mapped to a host name, only the latest configuration takes effect.
Run system-view
The system view is displayed.
Run ipv6
The IPv6 function is enabled.
By default, a device is disabled from forwarding IPv6 unicast packets.
Run ipv6 host host-name ipv6-address
IPv6 static DNS entries are configured.
By default, no IPv6 static DNS entry is configured.
Each host name can be mapped to only one IPv6 address. When multiple IPv6 addresses are mapped to a host name, only the latest configuration takes effect.