Figure 1-2Network diagram for static DNS configuration

 

 

10.1 .1.1/24

10.1.1. 2/ 24

 

 

 

host.com

 

 

 

 

Switch

 

Host

 

 

 

Configuration procedure

# Configure a mapping between host name host.com and IP address 10.1.1.2.

<device> system-view

[device] ip host host.com 10.1.1.2

#Execute the ping host.com command to verify that the device can use static domain name resolution to get the IP address 10.1.1.2 corresponding to host.com.

[device] ping host.com

PING host.com (10.1.1.2): 56 data bytes, press CTRL_C to break

Reply from 10.1.1.2: bytes=56 Sequence=1 ttl=127 time=3 ms

Reply from 10.1.1.2: bytes=56 Sequence=2 ttl=127 time=3 ms

Reply from 10.1.1.2: bytes=56 Sequence=3 ttl=127 time=2 ms

Reply from 10.1.1.2: bytes=56 Sequence=4 ttl=127 time=5 ms

Reply from 10.1.1.2: bytes=56 Sequence=5 ttl=127 time=3 ms

--- host.com ping statistics ---

5 packet(s) transmitted

5 packet(s) received

0.00% packet loss

round-trip min/avg/max = 2/3/5 ms

Dynamic Domain Name Resolution Configuration Example

Network requirements

As shown in Figure 1-3, 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.

Figure 1-3Network diagram for dynamic DNS configuration

 

 

 

 

 

IP network

2.1.1.2/16

 

1.1.1.1/16

 

 

 

2.1.1.1/16

3.1.1.1/ 16

 

 

 

 

 

host. com

 

 

 

Switch

DNS server

 

Host

DNS client

 

 

 

1-4

Page 648
Image 648
3Com WX3000 Dynamic Domain Name Resolution Configuration Example, 2Network diagram for static DNS configuration