CÔNG TY TNHH CÔNG NGHỆ VIỆT THÁI DƯƠNG
Logo CNTTShop.vn

NTT03, Line 1, Thống Nhất Complex, Thanh Xuân, Hà Nội.
Danh mục sản phẩm

Configure Static Domain Name Resolution

Network Requirements

  • Device and PC are interconnected, and the route is reachable.
  • The host name of PC is host.xxyyzz.com, and the IP address is 1.0.0.2/24.
  • On Device, access the host host.xxyyzz.com through static domain name resolution.

Network Topology

Networking for Configure Static Domain Name Resolution

Figure 4-1 Networking for Configure Static Domain Name Resolution

Configuration Steps

Step 1: Create VLANs, and add ports to the required VLANs. (Omitted)

Step 2: Configure IP addresses for the ports. (Omitted)

Step 3: Configure a static domain name.

#On Device, configure the host name host.xxyyzz.com to correspond to IP address 1.0.0.2.

Device#configure terminal
Device(config)#ip host host.xxyyzz.com 1.0.0.2
Device(config)#exit

Step 4: Check the result.

#On Device, ping host host.xxyyzz.com. Device obtains the IP address 1.0.0.2 that corresponds to the host name through local domain name resolution.

Device#ping host.xxyyzz.com 
 
Press key (ctrl + shift + 6) interrupt it. 
Sending 5, 76-byte ICMP Echos to 1.0.0.2 , timeout is 2 seconds: 
!!!!! 
Success rate is 100% (5/5). Round-trip min/avg/max = 0/6/16 ms. 

note


  • In pinging a host name, the IPv6 address corresponding to the host name is first resolved, and then the IPv4 address.