F3215-HP Load Balancing Module Network Management Configuration Guide-6PW101

158
Figure 108 Adding a mapping between domain name and IP address
Configure the DNS client:
# Enable dynamic domain name resolution.
<LB> system-view
[LB] dns resolve
# Specify the DNS server 2.1.1.2.
[LB] dns server 2.1.1.2
# Configure com as the name suffix.
[LB] dns domain com
Verifying the configuration
# Use the ping host command on LB to verify that the communication between LB and the host is normal
and that the corresponding destination IP address is 3.1.1.1.
[LB] ping host
Trying DNS resolve, press CTRL_C to break
Trying DNS server (2.1.1.2)
PING host.com (3.1.1.1):
56 data bytes, press CTRL_C to break
Reply from 3.1.1.1: bytes=56 Sequence=1 ttl=126 time=3 ms
Reply from 3.1.1.1: bytes=56 Sequence=2 ttl=126 time=1 ms
Reply from 3.1.1.1: bytes=56 Sequence=3 ttl=126 time=1 ms
Reply from 3.1.1.1: bytes=56 Sequence=4 ttl=126 time=1 ms
Reply from 3.1.1.1: bytes=56 Sequence=5 ttl=126 time=1 ms
--- host.com ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/1/3 ms