R21xx-HP FlexFabric 11900 Layer 3 IP Services Configuration Guide
95
3.
Configure the DNS client:
<DeviceB> system-view
# Specify the DNS server 2.1.1.2.
[DeviceB] dns server 2.1.1.2
Verifying the configuration
# Use the ping host.com command on Device B to verify the connection between the device and the host
is normal and that the translated destination IP address is 3.1.1.1.
[DeviceB] ping host.com
PING host.com (3.1.1.1): 56 data bytes
56 bytes from 3.1.1.1: icmp_seq=0 ttl=255 time=1.000 ms
56 bytes from 3.1.1.1: icmp_seq=1 ttl=255 time=1.000 ms
56 bytes from 3.1.1.1: icmp_seq=2 ttl=255 time=1.000 ms
56 bytes from 3.1.1.1: icmp_seq=3 ttl=255 time=1.000 ms
56 bytes from 3.1.1.1: icmp_seq=4 ttl=255 time=2.000 ms
--- host.com ping statistics ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/stddev = 1.000/1.200/2.000/0.400 ms
IPv6 DNS configuration examples
Static domain name resolution configuration example
Network requirements
As shown in Figure 40, the device wants to access the host by using an easy-to-remember domain name
rather than an IPv6 address. Configure static domain name resolution on the device so that the device
can use the domain name host.com to access the host whose IPv6 address is 1::2.
Figure 40 Network diagram
Configuration procedure
# Configure a mapping between host name host.com and IPv6 address 1::2.
<Device> system-view
[Device] ipv6 host host.com 1::2
# Use the ping ipv6 host.com command to verify that the device can use static domain name resolution
to resolve domain name host.com into IPv6 address 1::2.
[Sysname] ping ipv6 host.com
PING6(104=40+8+56 bytes) 1::1 --> 1::2










