Configure Dynamic Domain Name Resolution
Network Requirements
- The IP address of the DNS server is 1.0.0.3/24, the IP address of Device is 1.0.0.1/24, and the IP address of PC is 1.0.0.2/24.
- The DNS server, Device, and PC are interconnected through a LAN, and the route is reachable. On the DNS server, the DNS record of host.xxyyzz.com and 1.0.0.2 exists.
- Device access PC through dynamic resolution of host.xxyyzz.com through the DNS server.
Network Topology
Figure 4-2 Networking for Configure Dynamic 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 the DNS server.(Omitted)
Step 4: Configure the DNS client.
#Specify a DNS server for the client, and the IP address is 1.0.0.3.
Device#configure terminal
Device(config)#ip name-server 1.0.0.3
Device(config)#exit
|
Step 5: 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 the DNS server.
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.