H3C S7500E Series Ethernet Switches Operation Manual

Operation Manual – DNS
H3C S7500E Series Ethernet Switches Chapter 1 DNS Configuration
1-9
In Figure 1-6, right click zone com, and then select New Host to bring up a dialog box
as shown in
Figure 1-7. Enter host name host and IP address 3.1.1.1.
Figure 1-7 Add a mapping between domain name and IP address
2) Configure the DNS client
# Enable dynamic domain name resolution.
<Sysname> system-view
[Sysname] dns resolve
# Specify the DNS server 2.1.1.2.
[Sysname] dns server 2.1.1.2
# Configure com as the name suffix.
[Sysname] dns domain com
3) Configuration verification
# Execute the ping host command on the device to verify that the communication
between the device and the host is normal and that the corresponding destination IP
address is 3.1.1.1.
[Sysname] 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