IPv6 DNS configuration examples
Static domain name resolution configuration example
Network requirements
As shown in
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 at 1::2.
Figure 60 Network diagram
Configuration procedure
# Configure a mapping between host name host.com and IPv6 address 1::2.
system-view
[Device] ipv6 host host.com 1::2
# Enable IPv6 packet forwarding.
[Device] ipv6
# 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.
[Device] ping ipv6 host.com
PING host.com (1::2):
56
data bytes, press CTRL_C to break
Reply from 1::2
bytes=56 Sequence=1 hop limit=128
Reply from 1::2
bytes=56 Sequence=2 hop limit=128
Reply from 1::2
bytes=56 Sequence=3 hop limit=128
Reply from 1::2
bytes=56 Sequence=4 hop limit=128
Reply from 1::2
bytes=56 Sequence=5 hop limit=128
--- 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
Figure
60, the device wants to access the host by using an easy-to-remember domain name
time = 3 ms
time = 1 ms
time = 1 ms
time = 2 ms
time = 2 ms
149