Configuring domain name resolution, Configuring static domain name resolution, Configuring dynamic domain name resolution – H3C Technologies H3C WX3000 Series Unified Switches User Manual

Page 612: Dns configuration example

Advertising
background image

59-3

Configuring Domain Name Resolution

Configuring Static Domain Name Resolution

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
IP address

ip

host hostname ip-address

Required
No IP address is assigned to a host
name by default.

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

You may create up to 50 static mappings between domain names and IP addresses.

Configuring Dynamic Domain Name Resolution

Follow these steps to configure dynamic domain name resolution:

To do…

Use the command…

Remarks

Enter the system view

system-view

Enable dynamic domain
name resolution

dns resolve

Required
Disabled by default

Configure an IP address for
the DNS server

dns server ip-address

Required
No IP address is configured for the DNS
server by default.

Configure DNS suffixes

dns domain domain-name

Optional
No DNS suffix is configured by default

You may configure up to six DNS servers and ten DNS suffixes.

DNS Configuration Example

Static Domain Name Resolution Configuration Example

Network requirements

As shown in

Figure 59-2

, Switch uses static domain name resolution to access host 10.1.1.2 through

domain name host.com.

Advertising