Configuring the ipv4 dns client, Configuring static domain name resolution, Configuring dynamic domain name resolution – H3C Technologies H3C S7500E Series Switches User Manual

Page 94

Advertising
background image

9-4

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…

Use the command…

Remarks

Enter system view

system-view

––

Configure a mapping between a host

name and an IPv4 address

ip host hostname ip-address

Required

Not configured by default.

z

The IPv4 address you last assign to the host name will overwrite the previous one if there is any.

z

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…

Use the command…

Remarks

Enter system view

system-view

Enable dynamic domain name

resolution

dns resolve

Required

Disabled by default.

Specify a DNS server

dns server ip-address

Required

Not specified by default.

Configure a DNS suffix

dns domain domain-name

Optional

Not configured by default, that is,

only the provided domain name is

resolved.

Advertising