R1 (config) #ip DNS server
(Make router ' a DNS server ')
R1 (config) #ip host?
WORD Name of Host
R1 (config) #ip host R1?
<0-65535> Default telnet port number
A.B.C.D Host IP Address
Additional Append addresses
MX Configure a MX record
NS Configure an NS record
SRV Configure a SRV record
More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/Network/lyjs/
R1 (config) #ip host R1 192.168.1.1
R1 (config) #ip host R2 192.168.1.2
(On the DNS server, create ' parse entries ')
R2 (config) #ip name-server 192.168.1.1
(Set DNS server, point to DNS server IP)
R2#telnet R1
(Execute telnet command for detection)
Translating "r1" ... domain server (192.168.1.1) [OK]
Trying R1 (192.168.1.1) ... Open
User Access Verification
Password:
r1>en
Password:
r1#
(Connection success, that is, ' parse ' success;
The prerequisite is that you must set the ' Enable password and vty password ';