beautypg.com

2 dns configuration example, I. network requirements, Ii. network diagram – H3C Technologies H3C S3100 Series Switches User Manual

Page 625: Iii. configuration procedure, 2 dns configuration example -4

background image

Operation Manual – DNS

H3C S3100-52P Ethernet Switch

Chapter 1 DNS Configuration

1-4

1.3.2 DNS Configuration Example

I. Network requirements

As shown in Figure 1-2, a device is used as a DNS Client with dynamic domain name
resolution to visit host 1 with IP address 3.1.1.1/16. The DNS Server has IP address
2.1.1.2/16. The DNS suffixes are com and net.

II. Network diagram

2.1.1.2/16

host1

3.1.1.1/16

DNS Client

DNS Server

Internet

2.1.1.1/16

1.1.1.1/16

2.1.1.2/16

host1

3.1.1.1/16

DNS Client

DNS Server

Internet

2.1.1.1/16

1.1.1.1/16

Figure 1-2

Network diagram for dynamic domain name resolution

III. Configuration procedure

Note:

Before doing the following configuration, make sure the route between the device and
host 1 is reachable, and configurations are done on both devices. The IP address of
each interface is shown on Figure 1-2. Make sure the DNS Server works well and has a
mapping between host 1 and IP address 3.1.1.1/16.


# Enable dynamic domain name resolution.

system-view

[H3C] dns resolve

# Configure IP address 2.1.1.2 to the DNS Server

[H3C] dns server 2.1.1.2

# Configure net as the DNS suffix

[H3C] dns domain net

# Configure com as the DNS suffix

[H3C] dns domain com

Ping host 1 to verify the configuration and the corresponding IP address should be
3.1.1.1.