Dynamic Domain Name
Resolution
Configuration Example
n
0.00% packet loss
round-trip min/avg/max = 2/3/5 ms
Network requirements
As shown in Figure 199, the switch serving as a DNS client uses dynamic domain
name resolution to access the host at 3.1.1.1/16 through its domain name host.
The DNS server has the IP address 2.1.1.2/16. The DNS suffix is com.
Network diagram
Figure 199 Network diagram for dynamic DNS configuration
2.1.1.2/16
2.1.1.1
/16
DNS server
DNS client
Configuration procedure
Before doing the following configuration, make sure that:
The routes between the DNS server, Switch, and Host are reachable.
■
Necessary configurations are done on the devices. For the IP addresses of the
■
interfaces, see the figure above.
There is a mapping between domain name host and IP address 3.1.1.1/16 on
■
the DNS server.
The DNS server works normally.
■
# Enable dynamic domain name resolution.
<4210> system-view
[4210] dns resolve
# Configure the IP address 2.1.1.2 for the DNS server.
[4210] dns server 2.1.1.2
# Configure com as the DNS suffix
[4210] dns domain com
Execute the ping host command on Switch to verify that the communication
between Switch and Host is normal and that the corresponding IP address is
3.1.1.1.
[4210] ping host
Trying DNS server (2.1.1.2)
PING host.com (3.1.1.1): 56
Reply from 3.1.1.1: bytes=56 Sequence=1 ttl=255 time=3 ms
IP network
1.
1.1.1/16
3.1.1.1/ 16
host . com
Switch
data bytes, press CTRL_C to break
DNS Configuration Example
Host
553