禁用域名解析,防止路由器自動對打錯的指令的進行DNS 查詢
Router1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)#no ip domain-lookup
Router1(config)#end
Router1#
如果需要啟用DNS 查詢主機名,但是又為了避免打錯指令查詢的情況可以使用如下的變通方法
禁用域名解析,防止路由器自動對打錯的指令的進行DNS 查詢
Router1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)#no ip domain-lookup
Router1(config)#end
Router1#
如果需要啟用DNS 查詢主機名,但是又為了避免打錯指令查詢的情況可以使用如下的變通方法