014 DNS

解析主机名
Router>en
Password:
Router#config t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#ip host r1
Router(config)#ip host r1 10.2.2.2
Router(config)#ip host ap 10.1.1.2
Router(config)#do show hosts
Default Domain is not set
Name/address lookup uses domain service
Name servers are 255.255.255.255
Codes: UN - unknown, EX - expired, OK - OK, ?? - revalidate
       temp - temporary, perm - permanent
       NA - Not Applicable None - Not defined
Host                      Port  Flags      Age Type   Address(es)
ap                        None  (perm, OK)  0   IP    10.1.1.2
r1                        None  (perm, OK)  0   IP    10.2.2.2
Router(config)#
 
DNS解析
Router#config t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#ip domain-lookup
Router(config)#ip name-server 192.168.0.70
Router(config)#ip domain-name lammle.com
Router(config)#


来自为知笔记(Wiz)


posted on 2016-12-09 17:21  sanyuanyanjin  阅读(139)  评论(0编辑  收藏  举报