Configuring the IPv4 DNS Client
Configuring Static Domain Name Resolution
Configuring static domain name resolution refers to specifying the mappings between host names and
IPv4 addresses. Static domain name resolution allows applications such as Telnet to contact hosts by
using host names instead of IPv4 addresses.
Follow these steps to configure static domain name resolution:
To do...
Enter system view
Configure a mapping between a host
name and an IPv4 address
The IPv4 address you last assign to the host name will overwrite the previous one if there is any.
You may create up to 50 static mappings between domain names and IPv4 addresses.
Configuring Dynamic Domain Name Resolution
To send DNS queries to a correct server for resolution, dynamic domain name resolution needs to be
enabled and a DNS server needs to be configured.
In addition, you can configure a DNS suffix that the system will automatically add to the provided
domain name for resolution.
Follow these steps to configure dynamic domain name resolution:
To do...
Enter system view
Enable dynamic domain name
resolution
Specify a DNS server
Configure a DNS suffix
Use the command...
system-view
ip host hostname ip-address
Use the command...
system-view
dns resolve
dns server ip-address
dns domain domain-name
1-3
Remarks
––
Required
Not configured by default.
Remarks
—
Required
Disabled by default.
Required
Not specified by default.
Optional
Not configured by default, that
is, only the provided domain
name is resolved.